{"$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":"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":"D32","name":"Data Compliance (PII/GDPR)","shortDescription":{"text":"Data Compliance (PII/GDPR)"},"helpUri":"https://codehealth.canine.dev/dimensions/D32","relationships":[{"target":{"id":"CWE-359","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-312","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-359","CWE-312","CWE-200"]}},{"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"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"FieldSpec.fieldDefault (cyclomatic 49): FieldSpec.fieldDefault has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/FieldSpec.java"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"4039cf6fa71d16a0c1aad593f668f946e235c6a85f1964836e95cc768ab46fa3"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonConverter.convertToJson (cyclomatic 40): JsonConverter.convertToJson has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/json/src/main/java/org/apache/kafka/connect/json/JsonConverter.java"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"d537e5314bff1a31a79f19651aa4d12c72cc2a890d16bda005be1acb26a3e840"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectHeaders.checkSchemaMatches (cyclomatic 39): ConnectHeaders.checkSchemaMatches has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/api/src/main/java/org/apache/kafka/connect/header/ConnectHeaders.java"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd298d15755cfce3690645d1b424f177779c25d41caa4e8a1afdf763a401855"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonConverter.asConnectSchema (cyclomatic 39): JsonConverter.asConnectSchema has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/json/src/main/java/org/apache/kafka/connect/json/JsonConverter.java"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd76e867ad95e7282605d462d73d39122002ebe07a7f364f20e66ef7efff4495"}},{"ruleId":"D1","level":"warning","message":{"text":"IQv2StoreIntegrationTest.shouldHandleTimestampedRangeQueries (cyclomatic 39): IQv2StoreIntegrationTest.shouldHandleTimestampedRangeQueries has cyclomatic complexity 39 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/IQv2StoreIntegrationTest.java"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8f231bc5fa14ba03010b0116cbbd6400b24896e0248cd469e933dab6b4f8b3"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaGenerator.fieldTypeToSchemaType (cyclomatic 38): SchemaGenerator.fieldTypeToSchemaType has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/SchemaGenerator.java"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a14e4b98baf1577426feaf9097d93f72aa99e338b22acc59e1f4c2e6a8d7e7c"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigCommandOptions.checkArgs (cyclomatic 37): ConfigCommandOptions.checkArgs has cyclomatic complexity 37 (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":"tools/src/main/java/org/apache/kafka/tools/ConfigCommand.java"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7a004bd8ed308486e1f77a998d644df6c4391d548f3d6ba92976adcbb6f448"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigDef.parseType (cyclomatic 35): ConfigDef.parseType has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/config/ConfigDef.java"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8230a75e87409eba5348e762a8209cc4ebb0815820eeb6744ad606d711085a"}},{"ruleId":"D1","level":"warning","message":{"text":"GroupMetadataManager.streamsGroupHeartbeat (cyclomatic 34): GroupMetadataManager.streamsGroupHeartbeat has cyclomatic complexity 34 (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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":2054}}}],"partialFingerprints":{"codehealthFindingId/v1":"081ba601454b212df8300a3e21a423bb781ea8446594a040eda3da9c46290b35"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigCommand.alterConfig (cyclomatic 34): ConfigCommand.alterConfig has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/src/main/java/org/apache/kafka/tools/ConfigCommand.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88693123702054922fdac4dc3143ed7dcd2c0541c0d69c725e10921d7eabfe8"}},{"ruleId":"D1","level":"warning","message":{"text":"Selector.pollSelectionKeys (cyclomatic 32): Selector.pollSelectionKeys 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":"clients/src/main/java/org/apache/kafka/common/network/Selector.java"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f28c7237a59259dbba1731491647abd82a6cef1553eaa148ed86cb46b4409d"}},{"ruleId":"D1","level":"warning","message":{"text":"SharePartition.acquire (cyclomatic 32): SharePartition.acquire has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2cde036b426caa9d58c5d5c53583bf02b6df2e57106c0c8a125fea31de8f2c"}},{"ruleId":"D1","level":"warning","message":{"text":"DistributedHerder.tick (cyclomatic 29): DistributedHerder.tick 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb806ed80fb093a997997c83f1172823ddb60be08ab8bd74929efee207c812f7"}},{"ruleId":"D1","level":"warning","message":{"text":"CoordinatorClient.main (cyclomatic 29): CoordinatorClient.main 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":"trogdor/src/main/java/org/apache/kafka/trogdor/coordinator/CoordinatorClient.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f54c6ffbbadd8b7fe4e2855d616ee020a602d7fd2bcf7e1323302c58074369b"}},{"ruleId":"D1","level":"warning","message":{"text":"ShareConsumeRequestManager.poll (cyclomatic 28): ShareConsumeRequestManager.poll 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"1961fd24d83b808742e58de2d9f42c0c10adfcd0c2164834d1deec49f619be6e"}},{"ruleId":"D1","level":"warning","message":{"text":"SslTransportLayer.read (cyclomatic 28): SslTransportLayer.read 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":"clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd467204b725ccd30f36b151de75087ffa56e9d6f19907840f756a1d377157d"}},{"ruleId":"D1","level":"warning","message":{"text":"RLMExpirationTask.cleanupExpiredRemoteLogSegments (cyclomatic 28): RLMExpirationTask.cleanupExpiredRemoteLogSegments 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":"storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3ff12155ea198c6e35ba8f440af5360a137cad44dade6e6ae2c064cd4e2be8"}},{"ruleId":"D1","level":"warning","message":{"text":"ShareGroupCommandOptions.checkArgs (cyclomatic 28): ShareGroupCommandOptions.checkArgs 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":"tools/src/main/java/org/apache/kafka/tools/consumer/group/ShareGroupCommandOptions.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd2a90da41a3e47d211a944e3361e1aab4bf82dde553f6c2a4988e3598f8e07"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageDataGenerator.generateVariableLengthFieldSize (cyclomatic 27): MessageDataGenerator.generateVariableLengthFieldSize 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":"generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa32a0f04fa9fda87fe05fbefbbddd3074dae0b00105e98d915fa4fd399e5c3a"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigCommand.describeResourceConfig (cyclomatic 26): ConfigCommand.describeResourceConfig 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":"tools/src/main/java/org/apache/kafka/tools/ConfigCommand.java"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ae8506ec507f553c7903393685a38878f368f2e3708a2f8ff3fc90e54a36cd"}},{"ruleId":"D1","level":"warning","message":{"text":"SharePartition.maybeInitialize (cyclomatic 26): SharePartition.maybeInitialize has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0607fd6734c5e68b8b6012d4bdf317a5de87676c3a19f63cd962d44e78c45e7"}},{"ruleId":"D1","level":"warning","message":{"text":"KerberosLogin.login (cyclomatic 25): KerberosLogin.login 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":"clients/src/main/java/org/apache/kafka/common/security/kerberos/KerberosLogin.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf2d9ba95e10687e4cc5a8c712e1c8ba2d8f4e333eed1a94d3a2556c0c61893"}},{"ruleId":"D1","level":"warning","message":{"text":"Authorizer.authorizeByResourceType (cyclomatic 25): Authorizer.authorizeByResourceType 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":"clients/src/main/java/org/apache/kafka/server/authorizer/Authorizer.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f60d93678e26c2066b0b24353301352feba3cfffa37259e6fed1fe0dc40e01"}},{"ruleId":"D1","level":"warning","message":{"text":"ReplicationControlManager.createTopic (cyclomatic 25): ReplicationControlManager.createTopic 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":"metadata/src/main/java/org/apache/kafka/controller/ReplicationControlManager.java"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f4ed3a3cf011db37e325bbd70e6f10a6a71285a573de12c542ea4d48671421a"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskManager.handleRevocation (cyclomatic 25): TaskManager.handleRevocation has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"29adbe9185610041a571426dc48bdff7ef0bed34986c00cbdb17aecaeff7163d"}},{"ruleId":"D1","level":"warning","message":{"text":"SaslClientAuthenticator.authenticate (cyclomatic 24): SaslClientAuthenticator.authenticate 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":"clients/src/main/java/org/apache/kafka/common/security/authenticator/SaslClientAuthenticator.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"798e86f266e10e1ce9fa541c24396e3027345933ba34fd09ebd3a218e518241f"}},{"ruleId":"D1","level":"warning","message":{"text":"FieldSpecPairIterator.hasNext (cyclomatic 24): FieldSpecPairIterator.hasNext 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":"generator/src/main/java/org/apache/kafka/message/checker/FieldSpecPairIterator.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e554c4a32838585096f635e4f849bd86ef488bc9c6072de72526cf6bedfa10"}},{"ruleId":"D1","level":"warning","message":{"text":"TxnOffsetCommitHandler.handleResponse (cyclomatic 23): TxnOffsetCommitHandler.handleResponse 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":"clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java"},"region":{"startLine":1959}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f7d8249cafd211dadd9bd3fee0094ca939bdc36f56d71d70c73218976b5bed"}},{"ruleId":"D1","level":"warning","message":{"text":"FieldSpec.\u003Cinit\u003E (cyclomatic 23): FieldSpec.\u003Cinit\u003E 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":"generator/src/main/java/org/apache/kafka/message/FieldSpec.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"785dd20b3ee6b7c87be8d5228098c5852c1fa9ee20ca0b9753037327ff00f1b4"}},{"ruleId":"D1","level":"warning","message":{"text":"ClusterControlManager.registerBroker (cyclomatic 23): ClusterControlManager.registerBroker 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":"metadata/src/main/java/org/apache/kafka/controller/ClusterControlManager.java"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8fabf424c4fad24a793d1ef5062735f649d3785d1ee2b0f6cffbcf6b3dcc35"}},{"ruleId":"D1","level":"warning","message":{"text":"ConsumerGroupCommandOptions.checkArgs (cyclomatic 23): ConsumerGroupCommandOptions.checkArgs 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":"tools/src/main/java/org/apache/kafka/tools/consumer/group/ConsumerGroupCommandOptions.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1589f3ff47ad045db2fd8e71c5e5ccc22c62309882e44c89adc9ba9fa7ed088"}},{"ruleId":"D1","level":"warning","message":{"text":"OffsetCommitResponseHandler.handle (cyclomatic 22): OffsetCommitResponseHandler.handle 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"c757509d6ba0bd3f9e0abea2ce88519cdb8d2fd2a5cb4a05079732e2675a357c"}},{"ruleId":"D1","level":"warning","message":{"text":"SslTransportLayer.doHandshake (cyclomatic 22): SslTransportLayer.doHandshake 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":"clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"1328cd209570f0fcc274c316b90368f95717010f321633275afba09d8b432df6"}},{"ruleId":"D1","level":"warning","message":{"text":"FileStreamSourceTask.poll (cyclomatic 22): FileStreamSourceTask.poll 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":"connect/file/src/main/java/org/apache/kafka/connect/file/FileStreamSourceTask.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a507511aa2fe8ecdb6d5aede0d982a648ad72c8700dc59c083f610034048a1c"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonConverter.asJsonSchema (cyclomatic 22): JsonConverter.asJsonSchema has cyclomatic complexity 22 (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":"connect/json/src/main/java/org/apache/kafka/connect/json/JsonConverter.java"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"02cdeaea8b25ac48f7f83d3eeb001292675fdd5130339995f07d564b6db67a45"}},{"ruleId":"D1","level":"warning","message":{"text":"TransactionMetadata.completeTransitionTo (cyclomatic 22): TransactionMetadata.completeTransitionTo 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":"transaction-coordinator/src/main/java/org/apache/kafka/coordinator/transaction/TransactionMetadata.java"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d91a50117263ac52bf408b4e64ad54cc9b6038bd8904c856f3182746fc3c7aa"}},{"ruleId":"D1","level":"warning","message":{"text":"ConsumerCoordinator.onJoinPrepare (cyclomatic 21): ConsumerCoordinator.onJoinPrepare 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9df32315f4a375a515191302acb47ae2c563affb8d52c1be0eafd1a70d9f42"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonConverter.convertToConnect (cyclomatic 21): JsonConverter.convertToConnect 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":"connect/json/src/main/java/org/apache/kafka/connect/json/JsonConverter.java"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"15dae694ecdc2f15a1aba095b9665bd19a3f114c17b7ba5c74e4757acfb18b76"}},{"ruleId":"D1","level":"warning","message":{"text":"MetaPropertiesEnsemble.verify (cyclomatic 21): MetaPropertiesEnsemble.verify 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":"server-common/src/main/java/org/apache/kafka/metadata/properties/MetaPropertiesEnsemble.java"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"163e999675b65c2388402699c32b7a92d291fde62d23b96371dc0a1ca8953678"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedLog.fetchOffsetByTimestamp (cyclomatic 21): UnifiedLog.fetchOffsetByTimestamp 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/UnifiedLog.java"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"5812b15a866750ea593e8c48fcd50949a7b7446f66c1013de508251de48373e9"}},{"ruleId":"D1","level":"warning","message":{"text":"KTableKTableForeignKeyJoinIntegrationTest.shouldIgnoreOutOfOrderRecordsIffVersioned (cyclomatic 21): KTableKTableForeignKeyJoinIntegrationTest.shouldIgnoreOutOfOrderRecordsIffVersioned 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":"streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/KTableKTableForeignKeyJoinIntegrationTest.java"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a2bc3f77131f8df24b4f64dfbbad35dc21a58446105ebbc8f811d2ccc3a95e"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamThread.resetOffsets (cyclomatic 21): StreamThread.resetOffsets 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java"},"region":{"startLine":1658}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f3bac054cb0b1cbf3855272f256450b8b36d247d86bc305c9332f22c47e2cd"}},{"ruleId":"D1","level":"warning","message":{"text":"KafkaStreams.query (cyclomatic 21): KafkaStreams.query 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":"streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java"},"region":{"startLine":2128}}}],"partialFingerprints":{"codehealthFindingId/v1":"0698742341f2f044af475ac510460d71e482e5d9f007eaf226d0ff0ec980ea3f"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigPostProcessor.\u003Cinit\u003E (cyclomatic 21): ConfigPostProcessor.\u003Cinit\u003E 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":"tools/src/main/java/org/apache/kafka/tools/ProducerPerformance.java"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bcf2b08d94bb8d08aa1dccfca519b4ac3a111a51355b07cc4191de14819812"}},{"ruleId":"D1","level":"warning","message":{"text":"OffsetCommitRequestState.onResponse (cyclomatic 20): OffsetCommitRequestState.onResponse 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77608b3fdc7648616267acaeaff5594c81b5d7f15210e3ffb2cb960338b6cf4"}},{"ruleId":"D1","level":"warning","message":{"text":"ShareConsumeRequestManager.handleShareFetchSuccess (cyclomatic 20): ShareConsumeRequestManager.handleShareFetchSuccess 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f9d387d5d96f25e00d7fd9febd96138afed06dd29f8417f637ca4eb9e414af"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageDataGenerator.generateClassWriter (cyclomatic 20): MessageDataGenerator.generateClassWriter has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b42be79dba5c84f718488ae7cecb5a28deea4889344d2c045fc96589a51a0a"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamsPartitionAssignor.assignTasksToThreads (cyclomatic 20): StreamsPartitionAssignor.assignTasksToThreads 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsPartitionAssignor.java"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"055056acc9fb5b5fc9e2bd23a7e0bb4c7852f1b29ff28ecef76c8ace319e6adf"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultMessageFormatter.writeTo (cyclomatic 20): DefaultMessageFormatter.writeTo 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":"tools/src/main/java/org/apache/kafka/tools/consumer/DefaultMessageFormatter.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"898b3e91c316d6a3bb248ad1e5b4c84fa6c4be8e9436c45afef64b47f4e7f6a0"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamsResetter.maybeResetInputAndSeekToEndIntermediateTopicOffsets (cyclomatic 20): StreamsResetter.maybeResetInputAndSeekToEndIntermediateTopicOffsets has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/src/main/java/org/apache/kafka/tools/StreamsResetter.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2dd30e48ad3d901b7114160cf1886d739dba2b596642143e967f31ad761484e"}},{"ruleId":"D1","level":"warning","message":{"text":"JoinGroupResponseHandler.handle (cyclomatic 19): JoinGroupResponseHandler.handle 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"f695d5705d264c876c2ae84ee2f2481aafdb2628d4e4139cdf99931111fe309a"}},{"ruleId":"D1","level":"warning","message":{"text":"LogManager.loadLogs (cyclomatic 19): LogManager.loadLogs 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogManager.java"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4e6e15244a4c4e17ffe530fd5bf30a3d17057ac043a15bf585d096d7c28309"}},{"ruleId":"D1","level":"warning","message":{"text":"LogValidator.validateMessagesAndAssignOffsetsCompressed (cyclomatic 19): LogValidator.validateMessagesAndAssignOffsetsCompressed 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogValidator.java"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe13d70a25fb174caa63b461b60b7810bfbf0aa0e5aa2f68566713b7cb9344b"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedLog.analyzeAndValidateRecords (cyclomatic 19): UnifiedLog.analyzeAndValidateRecords 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/UnifiedLog.java"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fdb30ea5cdb88f27e24a44340421fcc34250c4e1c0275b4a2b743420b86015"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamThread.runLoop (cyclomatic 19): StreamThread.runLoop has cyclomatic complexity 19 (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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a39903b9561634836e195fe31bdcf09a718903aa04d46cf5f6f8e37ea84d68"}},{"ruleId":"D1","level":"warning","message":{"text":"ProducerPerformance.start (cyclomatic 19): ProducerPerformance.start 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":"tools/src/main/java/org/apache/kafka/tools/ProducerPerformance.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfcde5ae9eb73b9ae6f6e63e0a141edaf53ee6cc00fe102b38d3273bb6f2fd82"}},{"ruleId":"D1","level":"warning","message":{"text":"KafkaApisBuilder.build (cyclomatic 19): KafkaApisBuilder.build has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/builders/KafkaApisBuilder.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28a9b28427716bdb808f65495d2c138dd9810a4e54c2d0343a10ed4e9a1ed4c"}},{"ruleId":"D1","level":"warning","message":{"text":"SaslServerAuthenticator.authenticate (cyclomatic 18): SaslServerAuthenticator.authenticate 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":"clients/src/main/java/org/apache/kafka/common/security/authenticator/SaslServerAuthenticator.java"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"615ff538b9642fb207e340afeb5f7b513adb0e05b2ee88f9890099051d286904"}},{"ruleId":"D1","level":"warning","message":{"text":"Builder.build (cyclomatic 18): Builder.build has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntime.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"756ebae768a7b3b6e3cb41216fffecd42439df6b53b39ccf8ef2450800b6abf9"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigurationControlManager.validateAlterConfig (cyclomatic 18): ConfigurationControlManager.validateAlterConfig has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/ConfigurationControlManager.java"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e159d5050c0bfe94224d72742ccab82e68bc372b4c93ed815abf5a71694b16d"}},{"ruleId":"D1","level":"warning","message":{"text":"EventHandler.handleEvents (cyclomatic 18): EventHandler.handleEvents 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":"server-common/src/main/java/org/apache/kafka/queue/KafkaEventQueue.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"537e381e51a355cc466e679ac906492f35271264749d34bb8b7ea7c390333c8e"}},{"ruleId":"D1","level":"warning","message":{"text":"LogLoader.load (cyclomatic 18): LogLoader.load 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogLoader.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"a754725730ce6917e9347c5d3cd04b410bf93e279c693523b28c70bae4b66d6f"}},{"ruleId":"D1","level":"warning","message":{"text":"UnifiedLog.append (cyclomatic 18): UnifiedLog.append 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/UnifiedLog.java"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8990a4315d248965938efc7fa9610b065d6ee6e40bba73b2e5fc89570b1f597"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamThread.runOnceWithoutProcessingThreads (cyclomatic 18): StreamThread.runOnceWithoutProcessingThreads 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5641935414af4360e13855003597f04ebddff9e401ffbcf45008e28234aaa31"}},{"ruleId":"D1","level":"warning","message":{"text":"SharePartition.acquireSubsetBatchRecords (cyclomatic 18): SharePartition.acquireSubsetBatchRecords has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":1959}}}],"partialFingerprints":{"codehealthFindingId/v1":"55296626808a15c1f891d2ad79963d0487e783b84fa5bea5bd4a1959ee38274f"}},{"ruleId":"D1","level":"warning","message":{"text":"SharePartition.nextFetchOffset (cyclomatic 18): SharePartition.nextFetchOffset has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a3c6c21f7cbae802ff557fa3a08c53868f78fa6e0a02fe949125f07fcf06f5"}},{"ruleId":"D1","level":"warning","message":{"text":"GeneralAssignmentBuilder.performReassignments (cyclomatic 17): GeneralAssignmentBuilder.performReassignments 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractStickyAssignor.java"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e9b48ad8bdca16f9092402ed4a8943d0e7d1e79c8d106090ac20da5859e2f1"}},{"ruleId":"D1","level":"warning","message":{"text":"OffsetFetcherUtils.handleListOffsetResponse (cyclomatic 17): OffsetFetcherUtils.handleListOffsetResponse has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/OffsetFetcherUtils.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"98adeb096a75149a39964da9893a1b7e442c6eae8d67ccc249fca244e6380085"}},{"ruleId":"D1","level":"warning","message":{"text":"AddPartitionsToTxnHandler.handleResponse (cyclomatic 17): AddPartitionsToTxnHandler.handleResponse has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java"},"region":{"startLine":1620}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e822984ff0c276ee3729755919533118287af10cbd4bb424bf5d26f1673bf5"}},{"ruleId":"D1","level":"warning","message":{"text":"FetchSessionHandler.handleResponse (cyclomatic 17): FetchSessionHandler.handleResponse 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":"clients/src/main/java/org/apache/kafka/clients/FetchSessionHandler.java"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"78022bab5ebdb290d009640c61c3e34f884deee93ac465100c9b2047f678e0a6"}},{"ruleId":"D1","level":"warning","message":{"text":"SaslClientCallbackHandler.handle (cyclomatic 17): SaslClientCallbackHandler.handle 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":"clients/src/main/java/org/apache/kafka/common/security/authenticator/SaslClientCallbackHandler.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c98796454e3f7bdde4475b005e2be549ad8920b2c981d3953c6a202bab619a"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteLogManager.read (cyclomatic 17): RemoteLogManager.read has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java"},"region":{"startLine":1852}}}],"partialFingerprints":{"codehealthFindingId/v1":"4777993dba36968bcc10899ba2dd6d6f76c8a9df3e4bb355e368cae963886a44"}},{"ruleId":"D1","level":"warning","message":{"text":"UniformHomogeneousAssignmentBuilder.maybeRevokePartitions (cyclomatic 17): UniformHomogeneousAssignmentBuilder.maybeRevokePartitions 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/UniformHomogeneousAssignmentBuilder.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"556c88309354149b050559c82659ca0898b7d4a891963cb1c6da0c59c271217c"}},{"ruleId":"D1","level":"warning","message":{"text":"FieldSpec.fieldAbstractJavaType (cyclomatic 17): FieldSpec.fieldAbstractJavaType 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":"generator/src/main/java/org/apache/kafka/message/FieldSpec.java"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2df0c14ba8a8af24be9a9b5bac961a3f2c95c34b0983c8587e1fdc12a84210"}},{"ruleId":"D1","level":"warning","message":{"text":"FieldType.parse (cyclomatic 17): FieldType.parse has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/FieldType.java"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3ea7baa2c55e8de58ab048eed5d26f709392aa19834e62a6c11e681d66dc49"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageSpec.\u003Cinit\u003E (cyclomatic 17): MessageSpec.\u003Cinit\u003E 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":"generator/src/main/java/org/apache/kafka/message/MessageSpec.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fd34f5bc1dfed92f95cc60be25d91fdff2cb22d3e6ba7ed6243e2bc6dc4822"}},{"ruleId":"D1","level":"warning","message":{"text":"FeatureControlManager.updateFeature (cyclomatic 17): FeatureControlManager.updateFeature has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/FeatureControlManager.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"77555b495da0da77fe3c2cc3c6ee7f989f3fb79e12b306d747d5fe453de231b5"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientQuotasImage.describe (cyclomatic 17): ClientQuotasImage.describe 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":"metadata/src/main/java/org/apache/kafka/image/ClientQuotasImage.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"242e68c87d128740389099a23db245594a19fb541c453f602e38d3653da54b3b"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobComponent.toRegularExpression (cyclomatic 17): GlobComponent.toRegularExpression 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":"shell/src/main/java/org/apache/kafka/shell/glob/GlobComponent.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4495e72373bf9254c69281d799a27f53b2bebc1abe312b01cd29a3b72855e5"}},{"ruleId":"D1","level":"warning","message":{"text":"KTableKTableForeignKeyJoinIntegrationTest.joinShouldProduceNullsWhenValueHasNonMatchingForeignKey (cyclomatic 17): KTableKTableForeignKeyJoinIntegrationTest.joinShouldProduceNullsWhenValueHasNonMatchingForeignKey has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/KTableKTableForeignKeyJoinIntegrationTest.java"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b71c20bf4cf364c1f9726c90862ffab4bc2eb318c3a8096425871a7e868319"}},{"ruleId":"D1","level":"warning","message":{"text":"AclCommandOptions.checkArgs (cyclomatic 17): AclCommandOptions.checkArgs has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/src/main/java/org/apache/kafka/tools/AclCommand.java"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"c180afd734966f299b5184a97b34a532fdd3d05c180d59ebe9aaf5a0702e8744"}},{"ruleId":"D1","level":"warning","message":{"text":"SharePartition.acknowledgePerOffsetBatchRecords (cyclomatic 17): SharePartition.acknowledgePerOffsetBatchRecords has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":2297}}}],"partialFingerprints":{"codehealthFindingId/v1":"480c8e34396dbdc9c6e6da433c75402edfe7645e9122498546ed970b4f1a1892"}},{"ruleId":"D1","level":"warning","message":{"text":"HeartbeatThread.run (cyclomatic 16): HeartbeatThread.run has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1a01365c5f0181ac7d57b45ccdaf7099b7edea7437fc85e9b6f71263f12474"}},{"ruleId":"D1","level":"warning","message":{"text":"ShareSessionHandler.newShareFetchBuilder (cyclomatic 16): ShareSessionHandler.newShareFetchBuilder 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareSessionHandler.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2b09e6f24f3bae4fb9f920033356538e13d38fef853afd5db7dfc863310178"}},{"ruleId":"D1","level":"warning","message":{"text":"MockConsumer.poll (cyclomatic 16): MockConsumer.poll 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":"clients/src/main/java/org/apache/kafka/clients/consumer/MockConsumer.java"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"83997877998eae8f4852e25e79f1dcf1a853557372f045913814a30a76cccaeb"}},{"ruleId":"D1","level":"warning","message":{"text":"Builder.build (cyclomatic 16): Builder.build 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":"clients/src/main/java/org/apache/kafka/clients/FetchSessionHandler.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb4d778b18fdfdff1956151bebaeae425507ca0050e3abc8c39ec92070c2daa"}},{"ruleId":"D1","level":"warning","message":{"text":"SaslServerAuthenticator.handleSaslToken (cyclomatic 16): SaslServerAuthenticator.handleSaslToken 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":"clients/src/main/java/org/apache/kafka/common/security/authenticator/SaslServerAuthenticator.java"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e841a192ca467b1e69cd52f9accaf7eb68d45ada235ac34fc33876fca5e13a"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultSslEngineFactory.createKeystore (cyclomatic 16): DefaultSslEngineFactory.createKeystore 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":"clients/src/main/java/org/apache/kafka/common/security/ssl/DefaultSslEngineFactory.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa13090308b1ec78397b4931423a27906072e397c398e8dc3499c98fe6e0868"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientQuotaManager.updateQuotaTypes (cyclomatic 16): ClientQuotaManager.updateQuotaTypes 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":"server/src/main/java/org/apache/kafka/server/quota/ClientQuotaManager.java"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70293669c626ca12454c87dfa848c4db0c574c2b2c1e4688b1ae61e45beab95"}},{"ruleId":"D1","level":"warning","message":{"text":"DelayedRemoteListOffsets.tryComplete (cyclomatic 16): DelayedRemoteListOffsets.tryComplete 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":"storage/src/main/java/org/apache/kafka/server/purgatory/DelayedRemoteListOffsets.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ac34b16e128350c1f5b56924a27cf8df5783238130fa627e62b09588b8dbe6"}},{"ruleId":"D1","level":"warning","message":{"text":"InitializeStateHandler.handleRequestResponse (cyclomatic 16): InitializeStateHandler.handleRequestResponse 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"e580a1845b0161e2cfbecf6b8149e5362dff65d7d33c51ffe4915b58d346307a"}},{"ruleId":"D1","level":"warning","message":{"text":"WriteStateHandler.handleRequestResponse (cyclomatic 16): WriteStateHandler.handleRequestResponse 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7afa0567d4063c5e012c739b91c40b46d33e118814930057a8319d1cce75379"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadStateHandler.handleRequestResponse (cyclomatic 16): ReadStateHandler.handleRequestResponse 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cf3482d97b5bd340fcd5e281f36c5aa5885dec88924a07485610bddddfe306"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadStateSummaryHandler.handleRequestResponse (cyclomatic 16): ReadStateSummaryHandler.handleRequestResponse 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f83ccb04d2983a697e9616d1e79ba27524aca2020d363fc99f8414bd431e69"}},{"ruleId":"D1","level":"warning","message":{"text":"DeleteStateHandler.handleRequestResponse (cyclomatic 16): DeleteStateHandler.handleRequestResponse 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d0087181674317177fe6035ed44394596aa1dff15b317295098d8e2b9ff673"}},{"ruleId":"D1","level":"warning","message":{"text":"BrokerHeartbeatResponseEvent.run (cyclomatic 16): BrokerHeartbeatResponseEvent.run has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/java/org/apache/kafka/server/BrokerLifecycleManager.java"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74f182dbcd254243df851eacebbfa4f71d0d593a8381f6b05b550654566b531"}},{"ruleId":"D1","level":"warning","message":{"text":"Values.append (cyclomatic 16): Values.append 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":"connect/api/src/main/java/org/apache/kafka/connect/data/Values.java"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f101676b01f6f76fa09d231ddfca4786643d482664b398f7fddc22b6f45ade8"}},{"ruleId":"D1","level":"warning","message":{"text":"CoordinatorLoaderImpl.processMemoryRecords (cyclomatic 16): CoordinatorLoaderImpl.processMemoryRecords 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":"coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/CoordinatorLoaderImpl.java"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"df05eca9e1d0d3348fa673e56b756fb3595e03de7887f4433c489a0b62124f24"}},{"ruleId":"D1","level":"warning","message":{"text":"GroupMetadataManager.maybeUpdateRegularExpressions (cyclomatic 16): GroupMetadataManager.maybeUpdateRegularExpressions 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":3566}}}],"partialFingerprints":{"codehealthFindingId/v1":"42dfb7e94404567bddb6f083bdbb870660b280d3690e5f8723cf2c3a60d24982"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageDataGenerator.generateVariableLengthWriter (cyclomatic 16): MessageDataGenerator.generateVariableLengthWriter 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":"generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ced509b0e0facd49a55327f60ec347510fe7406e8d1e001d1b6f4308a8e651"}},{"ruleId":"D1","level":"warning","message":{"text":"ScramControlManager.alterCredentials (cyclomatic 16): ScramControlManager.alterCredentials 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":"metadata/src/main/java/org/apache/kafka/controller/ScramControlManager.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41cc6f3b130340bd6ec81b147d3bea8fe0ee9c73f5907eb4c890287163db069"}},{"ruleId":"D1","level":"warning","message":{"text":"EventHandler.enqueue (cyclomatic 16): EventHandler.enqueue 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":"server-common/src/main/java/org/apache/kafka/queue/KafkaEventQueue.java"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b598463881d1b5199c122aa4593ed7247fc575cf875b06d67141ea4b2fcb1d"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskManager.tryCloseCleanActiveTasks (cyclomatic 16): TaskManager.tryCloseCleanActiveTasks has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"0102c588256fc20bfa31b0e8082bbbd4c8cbf1d4fa3916db4b3a2713e42e8ffd"}},{"ruleId":"D1","level":"warning","message":{"text":"GlobalStateStoreProvider.stores (cyclomatic 16): GlobalStateStoreProvider.stores 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/GlobalStateStoreProvider.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbb8b1f0053ff51d7a68e8fd244b612851bc96cf772b6ab2d7c3f9aaca494e3"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamThreadStateStoreProvider.validateAndCastStores (cyclomatic 16): StreamThreadStateStoreProvider.validateAndCastStores 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/StreamThreadStateStoreProvider.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4fce6e4d1b98062ea6c9b7524a751785b8bbb4702583534c19353f7b864751"}},{"ruleId":"D1","level":"warning","message":{"text":"TopologyConfig.\u003Cinit\u003E (cyclomatic 16): TopologyConfig.\u003Cinit\u003E 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":"streams/src/main/java/org/apache/kafka/streams/TopologyConfig.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f12f943c90eecaf3d3d63e0bec05640de8cf2f53d3256f91f846ecc85521e3"}},{"ruleId":"D1","level":"warning","message":{"text":"ConsumerGroupService.printMembers (cyclomatic 16): ConsumerGroupService.printMembers 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":"tools/src/main/java/org/apache/kafka/tools/consumer/group/ConsumerGroupCommand.java"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34ffe7acbeaecf3a55cca1664801cf3442781550b89947797be04691b64c821"}},{"ruleId":"D1","level":"warning","message":{"text":"LineMessageReader.configure (cyclomatic 16): LineMessageReader.configure 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":"tools/src/main/java/org/apache/kafka/tools/LineMessageReader.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab0b06fce8c71b21549ae8fb3bb9f0cfad47afd6e39a19468e8fa6d2cfac4de"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaGenerator.fieldTypeToSchemaType (cognitive 261): SchemaGenerator.fieldTypeToSchemaType has cognitive complexity 261 (threshold 15). Drivers by points: if/else 138, ternaries 123 (nesting depth added 219). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/SchemaGenerator.java"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"17da6ec90ce840059ef18dd956df2b14482413ad8dc2a91f74f7f060bf14a1e1"}},{"ruleId":"D2","level":"warning","message":{"text":"FieldSpec.fieldDefault (cognitive 201): FieldSpec.fieldDefault has cognitive complexity 201 (threshold 15). Drivers by points: if/else 142, error handling 56, boolean chains 3 (nesting depth added 140). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/FieldSpec.java"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e49fa6d440d48d04d0a02d01bbfbbebd0ea04e81d996b50ba8cef3ba2e5b19"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigCommand.alterConfig (cognitive 92): ConfigCommand.alterConfig has cognitive complexity 92 (threshold 15). Drivers by points: if/else 80, boolean chains 10, error handling 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":"tools/src/main/java/org/apache/kafka/tools/ConfigCommand.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a93b6535165e213d0d703eee6cc2d2971ac4bc11d5696b762975571caf47cc"}},{"ruleId":"D2","level":"warning","message":{"text":"Selector.pollSelectionKeys (cognitive 85): Selector.pollSelectionKeys has cognitive complexity 85 (threshold 15). Drivers by points: if/else 57, ternaries 17, boolean chains 6, error handling 4, loops 1 (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":"clients/src/main/java/org/apache/kafka/common/network/Selector.java"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"76dbd66a04be00b460fb3c546320d8176cfba262a9828d05c291d04f2ed8da20"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectHeaders.checkSchemaMatches (cognitive 83): ConnectHeaders.checkSchemaMatches has cognitive complexity 83 (threshold 15). Drivers by points: if/else 75, boolean chains 5, match/switch 3 (nesting depth added 56). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/api/src/main/java/org/apache/kafka/connect/header/ConnectHeaders.java"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"428cd590e87cae90a0fe62f3aec47bc28518e9244105db6ee96129e95d446be3"}},{"ruleId":"D2","level":"warning","message":{"text":"KerberosLogin.login (cognitive 73): KerberosLogin.login has cognitive complexity 73 (threshold 15). Drivers by points: if/else 42, error handling 23, loops 6, boolean chains 2 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/security/kerberos/KerberosLogin.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc53dc6d87434722ac9b6eecd82a327157792b7de3aafafca7e7498af8575ccb"}},{"ruleId":"D2","level":"warning","message":{"text":"OffsetCommitResponseHandler.handle (cognitive 67): OffsetCommitResponseHandler.handle has cognitive complexity 67 (threshold 15). Drivers by points: if/else 59, boolean chains 5, loops 3 (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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba5b1293a9891692664974f521c1946f7eec3b019cb963f106b79d8d6b00687"}},{"ruleId":"D2","level":"warning","message":{"text":"SslTransportLayer.read (cognitive 66): SslTransportLayer.read has cognitive complexity 66 (threshold 15). Drivers by points: if/else 54, boolean chains 6, error handling 3, loops 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":"clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b78c30d97c42ca09274dba184a63e491232a582c43a5205d1f8b427d98be04"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonConverter.convertToJson (cognitive 60): JsonConverter.convertToJson has cognitive complexity 60 (threshold 15). Drivers by points: if/else 34, ternaries 13, loops 9, boolean chains 2, error handling 1, match/switch 1 (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":"connect/json/src/main/java/org/apache/kafka/connect/json/JsonConverter.java"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed34a7ad9e253b51d8f4bcb660883ee42a78a47d4067daa577c9c2c028e1e643"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedLog.fetchOffsetByTimestamp (cognitive 60): UnifiedLog.fetchOffsetByTimestamp has cognitive complexity 60 (threshold 15). Drivers by points: if/else 31, ternaries 18, loops 7, boolean chains 4 (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":"storage/src/main/java/org/apache/kafka/storage/internals/log/UnifiedLog.java"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb564174420e1438ad124d551f920064e234b24f83967bbf2ad255ee46e7658"}},{"ruleId":"D2","level":"warning","message":{"text":"RLMExpirationTask.cleanupExpiredRemoteLogSegments (cognitive 59): RLMExpirationTask.cleanupExpiredRemoteLogSegments has cognitive complexity 59 (threshold 15). Drivers by points: if/else 44, loops 11, 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":"storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"2011d26c1ff4379b4618034b0f4ce727383d853db3ab312b70a48531744bf747"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicationControlManager.createTopic (cognitive 59): ReplicationControlManager.createTopic has cognitive complexity 59 (threshold 15). Drivers by points: if/else 30, loops 11, ternaries 11, error handling 5, boolean chains 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/ReplicationControlManager.java"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d84ba3747c2d16cef4b7d4814ad77175966766de775b3cbd43cdf0cab5a405"}},{"ruleId":"D2","level":"warning","message":{"text":"ShareConsumeRequestManager.poll (cognitive 57): ShareConsumeRequestManager.poll has cognitive complexity 57 (threshold 15). Drivers by points: if/else 52, boolean chains 4, loops 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07672a311df02f53a22ec987cba50ade5c43281057a44bc42c453309bfc581f"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamsPartitionAssignor.assignTasksToThreads (cognitive 57): StreamsPartitionAssignor.assignTasksToThreads has cognitive complexity 57 (threshold 15). Drivers by points: if/else 37, loops 19, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsPartitionAssignor.java"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26aa38c81d5115a5f07b5839388d0dacc08fa5fe14abdc76e7df77616ad0ab0"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaStreams.query (cognitive 57): KafkaStreams.query has cognitive complexity 57 (threshold 15). Drivers by points: if/else 31, ternaries 14, loops 7, boolean chains 5 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java"},"region":{"startLine":2128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26b2ea8e8640eb40dbb09abee4881d24e1768c4a3a9141b1997a3fd787e3f58"}},{"ruleId":"D2","level":"warning","message":{"text":"UniformHomogeneousAssignmentBuilder.maybeRevokePartitions (cognitive 56): UniformHomogeneousAssignmentBuilder.maybeRevokePartitions has cognitive complexity 56 (threshold 15). Drivers by points: if/else 47, loops 8, 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/UniformHomogeneousAssignmentBuilder.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6959475e4c360cd26935c528e497a5dc665fcf6106d80114ba6cc909e9e0bbd"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalStateManagerImpl.reprocessState (cognitive 55): GlobalStateManagerImpl.reprocessState has cognitive complexity 55 (threshold 15). Drivers by points: if/else 32, error handling 17, loops 6 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/GlobalStateManagerImpl.java"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"237217d352538b722a9b38e349001b0e2528e60f20085bda4b3a3ab40676a38d"}},{"ruleId":"D2","level":"warning","message":{"text":"FileStreamSourceTask.poll (cognitive 54): FileStreamSourceTask.poll has cognitive complexity 54 (threshold 15). Drivers by points: if/else 31, error handling 10, loops 8, ternaries 3, boolean chains 2 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/file/src/main/java/org/apache/kafka/connect/file/FileStreamSourceTask.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e3391b82e010825fdb1bb0183d9f98405994b0293aa4a19b132515fb3aa9d2"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageDataGenerator.generateVariableLengthFieldSize (cognitive 54): MessageDataGenerator.generateVariableLengthFieldSize has cognitive complexity 54 (threshold 15). Drivers by points: if/else 52, 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":"generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"581fdf7d7c4342c6b91beec890706bad73780ab6ab4be8f67ce43e3619e71d67"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigCommand.describeResourceConfig (cognitive 54): ConfigCommand.describeResourceConfig has cognitive complexity 54 (threshold 15). Drivers by points: if/else 44, ternaries 5, boolean chains 3, 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":"tools/src/main/java/org/apache/kafka/tools/ConfigCommand.java"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e71cfe8e85977f39bdf0c930018b583f54dd8828c360ac692af117081dda7d"}},{"ruleId":"D2","level":"warning","message":{"text":"AddPartitionsToTxnHandler.onComplete (cognitive 53): AddPartitionsToTxnHandler.onComplete has cognitive complexity 53 (threshold 15). Drivers by points: if/else 28, loops 18, ternaries 5, boolean chains 2 (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/org/apache/kafka/server/transaction/AddPartitionsToTxnManager.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe68dd554f619e892e52b0df95697c948cfb1f21f7281af10437cf5150f3eaaa"}},{"ruleId":"D2","level":"warning","message":{"text":"CoordinatorClient.main (cognitive 53): CoordinatorClient.main has cognitive complexity 53 (threshold 15). Drivers by points: if/else 36, error handling 8, loops 6, boolean chains 2, match/switch 1 (nesting depth added 28). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"trogdor/src/main/java/org/apache/kafka/trogdor/coordinator/CoordinatorClient.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"168d5e103c336ab503bb3e43c9fea4d676a0f4d186b5e42a4c51019b7f1250b9"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigDef.parseType (cognitive 52): ConfigDef.parseType has cognitive complexity 52 (threshold 15). Drivers by points: if/else 49, error handling 2, match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/config/ConfigDef.java"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b4601039a086d7d9cc731f87dad960538fb74f70d6399715dd1e53199072f8"}},{"ruleId":"D2","level":"warning","message":{"text":"BrokerHeartbeatResponseEvent.run (cognitive 51): BrokerHeartbeatResponseEvent.run has cognitive complexity 51 (threshold 15). Drivers by points: if/else 45, match/switch 6 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/java/org/apache/kafka/server/BrokerLifecycleManager.java"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"601b167038406813d1880f529e8346618525b33330b3447ec971f2ae483722b1"}},{"ruleId":"D2","level":"warning","message":{"text":"SharePartition.acquire (cognitive 49): SharePartition.acquire has cognitive complexity 49 (threshold 15). Drivers by points: if/else 39, boolean chains 9, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51929c0a776a2311f757927b2d1debdcd37894dacf6af6357ef7fa9a783d64d"}},{"ruleId":"D2","level":"warning","message":{"text":"Values.append (cognitive 47): Values.append has cognitive complexity 47 (threshold 15). Drivers by points: if/else 37, loops 10 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/api/src/main/java/org/apache/kafka/connect/data/Values.java"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0f7b37801b01dcfc2a7728a2a55cc82bf2a5564c0fb6d098b16c476cd00407"}},{"ruleId":"D2","level":"warning","message":{"text":"DistributedHerder.tick (cognitive 47): DistributedHerder.tick has cognitive complexity 47 (threshold 15). Drivers by points: if/else 32, error handling 7, ternaries 6, boolean chains 1, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4002d8ac641fa59b5b370bf08b7fde4897dd52731945553cb93ac64f58deed1"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamThread.resetOffsets (cognitive 46): StreamThread.resetOffsets has cognitive complexity 46 (threshold 15). Drivers by points: if/else 39, loops 4, error handling 3 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java"},"region":{"startLine":1658}}}],"partialFingerprints":{"codehealthFindingId/v1":"7147effa392cef79c47a8489a445dc972f6388a46aeec8bf6ef2507cb2df5e48"}},{"ruleId":"D2","level":"warning","message":{"text":"GeneralAssignmentBuilder.performReassignments (cognitive 45): GeneralAssignmentBuilder.performReassignments has cognitive complexity 45 (threshold 15). Drivers by points: if/else 30, loops 11, 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractStickyAssignor.java"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cc085a6d67e8fb88342e61794929495a2dd6ce469a1b63c3dff4f69664c6b56"}},{"ruleId":"D2","level":"warning","message":{"text":"Authorizer.authorizeByResourceType (cognitive 45): Authorizer.authorizeByResourceType has cognitive complexity 45 (threshold 15). Drivers by points: if/else 29, loops 7, match/switch 5, boolean chains 4 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/server/authorizer/Authorizer.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60f8812218b4bbd52b75807bafd62db30a800211281ef33172198c746249223"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicationControlManager.handleAssignReplicasToDirs (cognitive 45): ReplicationControlManager.handleAssignReplicasToDirs has cognitive complexity 45 (threshold 15). Drivers by points: if/else 31, ternaries 8, loops 6 (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":"metadata/src/main/java/org/apache/kafka/controller/ReplicationControlManager.java"},"region":{"startLine":2320}}}],"partialFingerprints":{"codehealthFindingId/v1":"786b40166249c16ea88486a0aa75f27acb7bffbeec752993d613cbf6ef715511"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalTopologyBuilder.subtopologyToTopicsInfo (cognitive 45): InternalTopologyBuilder.subtopologyToTopicsInfo has cognitive complexity 45 (threshold 15). Drivers by points: if/else 34, loops 10, boolean chains 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopologyBuilder.java"},"region":{"startLine":1201}}}],"partialFingerprints":{"codehealthFindingId/v1":"fadd79e0f6a030e259e46ecaaf0ccab937fa0ebc099e59a3d43983fa3269582c"}},{"ruleId":"D2","level":"warning","message":{"text":"StoreChangelogReader.unregister (cognitive 45): StoreChangelogReader.unregister has cognitive complexity 45 (threshold 15). Drivers by points: if/else 17, ternaries 14, error handling 13, loops 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StoreChangelogReader.java"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bf6d89de0f6e9f3ae57c85afa7eea197f72f3dee53e6509705bece826eb58c"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupMetadataManager.streamsGroupHeartbeat (cognitive 44): GroupMetadataManager.streamsGroupHeartbeat has cognitive complexity 44 (threshold 15). Drivers by points: if/else 32, boolean chains 9, ternaries 3 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":2054}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bed1517192ab7a896dc1969b9ef2457a27a93475caea764aa952c06afcc9615"}},{"ruleId":"D2","level":"warning","message":{"text":"FieldSpec.fieldAbstractJavaType (cognitive 44): FieldSpec.fieldAbstractJavaType has cognitive complexity 44 (threshold 15). Drivers by points: if/else 44 (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":"generator/src/main/java/org/apache/kafka/message/FieldSpec.java"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"8621ff1b56fac4b491ecad49366e31baba3a062b575f2bd38fcbbe364daede3c"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigCommandOptions.checkArgs (cognitive 44): ConfigCommandOptions.checkArgs has cognitive complexity 44 (threshold 15). Drivers by points: if/else 27, boolean chains 14, ternaries 2, error handling 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"tools/src/main/java/org/apache/kafka/tools/ConfigCommand.java"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29f2a8253a11032b64173dcec0445804f02c24e3e5e246bff68393e334fd02a"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicaBuffer.verifyCheckSum (cognitive 44): ReplicaBuffer.verifyCheckSum has cognitive complexity 44 (threshold 15). Drivers by points: if/else 32, loops 8, error handling 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":"tools/src/main/java/org/apache/kafka/tools/ReplicaVerificationTool.java"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"672b1be2bddb3f616c4ae01c82c5570a6532e3480e3a24730ee93d672e836e90"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifiableShareConsumer.onComplete (cognitive 44): VerifiableShareConsumer.onComplete has cognitive complexity 44 (threshold 15). Drivers by points: if/else 37, loops 5, boolean chains 1, ternaries 1 (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":"tools/src/main/java/org/apache/kafka/tools/VerifiableShareConsumer.java"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"75653dbb7ade05cb7fa62bfc8307c380169bfa7f27dbf8dc4bed96933fe24ab5"}},{"ruleId":"D2","level":"warning","message":{"text":"SaslClientCallbackHandler.handle (cognitive 43): SaslClientCallbackHandler.handle has cognitive complexity 43 (threshold 15). Drivers by points: if/else 38, boolean chains 4, loops 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/security/authenticator/SaslClientCallbackHandler.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"75248d91c60cc2a3237c29c3b438708d3f38affb5ffaca96be8fcf953b27b23a"}},{"ruleId":"D2","level":"warning","message":{"text":"OffsetCommitRequestState.onResponse (cognitive 42): OffsetCommitRequestState.onResponse has cognitive complexity 42 (threshold 15). Drivers by points: if/else 23, ternaries 12, boolean chains 4, loops 3 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5da2311621664829dd1c5f29bf169415958071fbedb9f7bdb39a93ad6e7a76"}},{"ruleId":"D2","level":"warning","message":{"text":"FetchSessionHandler.handleResponse (cognitive 42): FetchSessionHandler.handleResponse has cognitive complexity 42 (threshold 15). Drivers by points: if/else 41, boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/FetchSessionHandler.java"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b78728b113c189c50fb6f40531d8c7df92e3d9ac6e0da5364facaeec4b1c35"}},{"ruleId":"D2","level":"warning","message":{"text":"CoordinatorLoaderImpl.processMemoryRecords (cognitive 42): CoordinatorLoaderImpl.processMemoryRecords has cognitive complexity 42 (threshold 15). Drivers by points: if/else 26, error handling 9, loops 7 (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":"coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/CoordinatorLoaderImpl.java"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"d822d5ffe2344cf777436c0092d1b9abb99c1d4da11d020ebac8bc3ac50d8d70"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupMetadataManager.classicGroupJoinExistingMember (cognitive 42): GroupMetadataManager.classicGroupJoinExistingMember has cognitive complexity 42 (threshold 15). Drivers by points: if/else 31, ternaries 7, error handling 4 (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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":7155}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2c7cae80481b7c34578e202293a5a23d2ac4d5f1eb046a2ef4a3c89bdf24fa"}},{"ruleId":"D2","level":"warning","message":{"text":"IQv2StoreIntegrationTest.verifyStore (cognitive 42): IQv2StoreIntegrationTest.verifyStore has cognitive complexity 42 (threshold 15). Drivers by points: if/else 41, error handling 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/IQv2StoreIntegrationTest.java"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"503fdb42050ee53998fec99453c229104759233709f76e2b07d8392fd9972cfc"}},{"ruleId":"D2","level":"warning","message":{"text":"JoinGroupResponseHandler.handle (cognitive 41): JoinGroupResponseHandler.handle has cognitive complexity 41 (threshold 15). Drivers by points: if/else 39, boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ba13e109ce35edba5c8ea205b027d1e15bd1259f5ff6f0e52c8f16661220da"}},{"ruleId":"D2","level":"warning","message":{"text":"EventHandler.handleEvents (cognitive 40): EventHandler.handleEvents has cognitive complexity 40 (threshold 15). Drivers by points: if/else 32, ternaries 3, boolean chains 2, error handling 2, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-common/src/main/java/org/apache/kafka/queue/KafkaEventQueue.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1da9adbeca3178e5d5cb50c23baba035e89f9c34566e32ab9c32307651a5ca"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamThread.maybeGetClientInstanceIds (cognitive 40): StreamThread.maybeGetClientInstanceIds has cognitive complexity 40 (threshold 15). Drivers by points: error handling 24, if/else 15, boolean chains 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb2b98a5811c145f4d3049a5aa6bb5b2a967b0c9975dcb68524c1ce5565bb7f"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamThread.runOnceWithoutProcessingThreads (cognitive 40): StreamThread.runOnceWithoutProcessingThreads has cognitive complexity 40 (threshold 15). Drivers by points: if/else 25, ternaries 11, boolean chains 2, loops 2 (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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12604f7449175bb9fefaaabe6cca43f8848b5e1928fe9358df120960538ae58"}},{"ruleId":"D2","level":"warning","message":{"text":"InMemoryTimeOrderedKeyValueChangeBuffer.restoreBatch (cognitive 40): InMemoryTimeOrderedKeyValueChangeBuffer.restoreBatch has cognitive complexity 40 (threshold 15). Drivers by points: if/else 23, ternaries 16, 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/InMemoryTimeOrderedKeyValueChangeBuffer.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa8cb0272c5d3f16f10dd563a8c1ece037a99f3f2a9cd40290d17a157fbeb31"}},{"ruleId":"D2","level":"warning","message":{"text":"DistributedHerder.doFenceZombieSourceTasks (cognitive 39): DistributedHerder.doFenceZombieSourceTasks has cognitive complexity 39 (threshold 15). Drivers by points: if/else 37, boolean chains 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7e7d6e48c10370cabef3001e1a27cedfdef8d00f6ffd5df9158c60da24f901"}},{"ruleId":"D2","level":"warning","message":{"text":"Cleaner.buildOffsetMapForSegment (cognitive 39): Cleaner.buildOffsetMapForSegment has cognitive complexity 39 (threshold 15). Drivers by points: if/else 28, loops 8, error handling 2, boolean chains 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/Cleaner.java"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d25c87caa8565c9b6e09f27ce2165c41ad9fd399b4c65b4f8c3896b52684498"}},{"ruleId":"D2","level":"warning","message":{"text":"ShareGroupCommandOptions.checkArgs (cognitive 39): ShareGroupCommandOptions.checkArgs has cognitive complexity 39 (threshold 15). Drivers by points: if/else 28, boolean chains 10, ternaries 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":"tools/src/main/java/org/apache/kafka/tools/consumer/group/ShareGroupCommandOptions.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa87e6cd43bfb9d1ddbc69dbf1012cf8071b2a25466abb140766e3e1cf522d8"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonConverter.asConnectSchema (cognitive 38): JsonConverter.asConnectSchema has cognitive complexity 38 (threshold 15). Drivers by points: if/else 24, boolean chains 9, loops 4, match/switch 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":"connect/json/src/main/java/org/apache/kafka/connect/json/JsonConverter.java"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"735bbbc4b5fc0aa46a8e51dbc9bd299639017a698d99923fc2004262fac6d5bf"}},{"ruleId":"D2","level":"warning","message":{"text":"LogValidator.validateMessagesAndAssignOffsetsCompressed (cognitive 38): LogValidator.validateMessagesAndAssignOffsetsCompressed has cognitive complexity 38 (threshold 15). Drivers by points: if/else 31, boolean chains 4, loops 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogValidator.java"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"6caee1591c84d317083d426c886c28d57391e865ad6774fe0034aa9fec0e175b"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedLog.analyzeAndValidateRecords (cognitive 38): UnifiedLog.analyzeAndValidateRecords has cognitive complexity 38 (threshold 15). Drivers by points: if/else 31, boolean chains 5, loops 1, ternaries 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/UnifiedLog.java"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"770dd13d75f2581cdfb403eda83894bbc18e2f8029ec877314237b042e902dad"}},{"ruleId":"D2","level":"warning","message":{"text":"IQv2StoreIntegrationTest.shouldHandleTimestampedRangeQueries (cognitive 38): IQv2StoreIntegrationTest.shouldHandleTimestampedRangeQueries has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 38. 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":"streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/IQv2StoreIntegrationTest.java"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"0021a7b76d698480d6e8ee22b431b4d2a912dfb350f9d9e88a2bf1ec0fcdabd9"}},{"ruleId":"D2","level":"warning","message":{"text":"Sender.handleProduceResponse (cognitive 37): Sender.handleProduceResponse has cognitive complexity 37 (threshold 15). Drivers by points: if/else 21, loops 14, boolean chains 1, ternaries 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a2bbbe28950e350f969564d81160231f0b0eece18463201769268f15678c61"}},{"ruleId":"D2","level":"warning","message":{"text":"DelayedRemoteListOffsets.tryComplete (cognitive 37): DelayedRemoteListOffsets.tryComplete has cognitive complexity 37 (threshold 15). Drivers by points: if/else 23, ternaries 7, error handling 4, boolean chains 3 (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":"storage/src/main/java/org/apache/kafka/server/purgatory/DelayedRemoteListOffsets.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"3764af8dbf78f09987edd4b568f361d37bdc86eff6d7bbac22779945e8f1de26"}},{"ruleId":"D2","level":"warning","message":{"text":"MetaPropertiesEnsemble.verify (cognitive 37): MetaPropertiesEnsemble.verify has cognitive complexity 37 (threshold 15). Drivers by points: if/else 36, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-common/src/main/java/org/apache/kafka/metadata/properties/MetaPropertiesEnsemble.java"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"50965f43f0104b553e507a0faad86d353ec211fd2d334cde30e5ca6b0b79022a"}},{"ruleId":"D2","level":"warning","message":{"text":"FetchCollector.handleInitializeErrors (cognitive 36): FetchCollector.handleInitializeErrors has cognitive complexity 36 (threshold 15). Drivers by points: if/else 34, boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/FetchCollector.java"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"f406bf709db8616e6c1ce66b46cc08cfa4a611f5f92546d55f466854c38c375f"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalTopicManager.cleanUpCreatedTopics (cognitive 36): InternalTopicManager.cleanUpCreatedTopics has cognitive complexity 36 (threshold 15). Drivers by points: if/else 20, error handling 10, loops 6 (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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopicManager.java"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae209e1bd157c1e08efa4330f0bda0b00abae31a7df21698a79d2c294ec9629"}},{"ruleId":"D2","level":"warning","message":{"text":"PartitionGroup.readyToProcess (cognitive 36): PartitionGroup.readyToProcess has cognitive complexity 36 (threshold 15). Drivers by points: if/else 31, loops 4, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/PartitionGroup.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08d4dd5a050e60eb15dd0a02f48ee9fa20d69d6de107d4a00a0007c759dc196"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskManager.handleRevocation (cognitive 36): TaskManager.handleRevocation has cognitive complexity 36 (threshold 15). Drivers by points: error handling 15, if/else 13, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"6302cf61daabce85fbe297bc2ade535c6af4fbf2bd28b62f007941398548b7e2"}},{"ruleId":"D2","level":"warning","message":{"text":"SharePartition.acknowledgePerOffsetBatchRecords (cognitive 36): SharePartition.acknowledgePerOffsetBatchRecords has cognitive complexity 36 (threshold 15). Drivers by points: if/else 28, ternaries 5, boolean chains 2, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":2297}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77ed35d54f07fef6d2a5f3050c6eef6d7cf56a8713531a36cb226fdf3170961"}},{"ruleId":"D2","level":"warning","message":{"text":"SingleFieldPath.buildFieldPathV2 (cognitive 35): SingleFieldPath.buildFieldPathV2 has cognitive complexity 35 (threshold 15). Drivers by points: if/else 29, loops 4, 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":"connect/transforms/src/main/java/org/apache/kafka/connect/transforms/field/SingleFieldPath.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ded3bf1d8debf739fcde6f3ed3b5d6e8ca0d5fc310894eb566878a888964ca"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageDataGenerator.generateFieldToString (cognitive 35): MessageDataGenerator.generateFieldToString has cognitive complexity 35 (threshold 15). Drivers by points: if/else 34, boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java"},"region":{"startLine":1568}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90bb21f24f569d837c3ef72c9931587070721a1393a24f49d0d51e9ceba6ac9"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterControlManager.registerBroker (cognitive 35): ClusterControlManager.registerBroker has cognitive complexity 35 (threshold 15). Drivers by points: if/else 28, loops 3, boolean chains 2, ternaries 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":"metadata/src/main/java/org/apache/kafka/controller/ClusterControlManager.java"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"5922abeb337a435af1bef529feba700c91b54eac101ad0f1e80f059ad3e3e559"}},{"ruleId":"D2","level":"warning","message":{"text":"ScramControlManager.alterCredentials (cognitive 35): ScramControlManager.alterCredentials has cognitive complexity 35 (threshold 15). Drivers by points: if/else 29, loops 5, boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/ScramControlManager.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4912dd88cc899827b073e8a03f9fca23dfd84bbc7462a2e7e3e09c1dfaf1d5"}},{"ruleId":"D2","level":"warning","message":{"text":"KTableKTableForeignKeyJoinIntegrationTest.shouldIgnoreOutOfOrderRecordsIffVersioned (cognitive 35): KTableKTableForeignKeyJoinIntegrationTest.shouldIgnoreOutOfOrderRecordsIffVersioned has cognitive complexity 35 (threshold 15). Drivers by points: if/else 34, ternaries 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":"streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/KTableKTableForeignKeyJoinIntegrationTest.java"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf7edd7a79d9aa766034023ac723bbde7ba2d6aca65aa15765dbe21d1745a59"}},{"ruleId":"D2","level":"warning","message":{"text":"SharePartition.maybeInitialize (cognitive 35): SharePartition.maybeInitialize has cognitive complexity 35 (threshold 15). Drivers by points: if/else 28, boolean chains 3, error handling 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"190c4e0dbd5451569d6dde3decf1744a73b3f851f78decca696111c1869634a8"}},{"ruleId":"D2","level":"warning","message":{"text":"ConstrainedAssignmentBuilder.assignRackAwareRoundRobin (cognitive 34): ConstrainedAssignmentBuilder.assignRackAwareRoundRobin has cognitive complexity 34 (threshold 15). Drivers by points: if/else 29, ternaries 3, boolean chains 1, loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractStickyAssignor.java"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d8effbbfd3e3ff71be7f22c50f9ae1ff53840d2dc84a186a3b8e6af75a67423"}},{"ruleId":"D2","level":"warning","message":{"text":"ShareConsumeRequestManager.processAcknowledgements (cognitive 34): ShareConsumeRequestManager.processAcknowledgements has cognitive complexity 34 (threshold 15). Drivers by points: if/else 28, loops 6 (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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80478599f988f8604f9102ab323fed780dd00dbfbe502c7289592d251785625"}},{"ruleId":"D2","level":"warning","message":{"text":"TxnOffsetCommitHandler.handleResponse (cognitive 34): TxnOffsetCommitHandler.handleResponse has cognitive complexity 34 (threshold 15). Drivers by points: if/else 23, boolean chains 6, loops 3, ternaries 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":"clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java"},"region":{"startLine":1959}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a77ad4dfada6840275fb6cddbe1791a17cc5dbc58de2f8c2b653eb79982feb"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientUtils.parseAndValidateAddresses (cognitive 34): ClientUtils.parseAndValidateAddresses has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21, error handling 6, loops 5, boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/ClientUtils.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9472eb91f6ba088f07db123a8e862c228060fd5a55641f0e985d052a65d9462"}},{"ruleId":"D2","level":"warning","message":{"text":"BalanceSubtopologyGraphConstructor.constructEdges (cognitive 34): BalanceSubtopologyGraphConstructor.constructEdges has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19, loops 10, ternaries 4, boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/BalanceSubtopologyGraphConstructor.java"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"476647283f7c6150e155e475eac792b020732ca895975c0719fe8300f628006c"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamThread.runLoop (cognitive 34): StreamThread.runLoop has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15, error handling 13, boolean chains 5, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a76b6a7cd6e93f5eb83f13eda99b9773f1e7825231194edb4e87f02ac8830c"}},{"ruleId":"D2","level":"warning","message":{"text":"TopicMetadataFetcher.getTopicMetadata (cognitive 33): TopicMetadataFetcher.getTopicMetadata has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22, loops 9, boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/TopicMetadataFetcher.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad0be68125bc770f3d2503d6f88247d55156fbcad009d9f1b9992dcfc46a32e"}},{"ruleId":"D2","level":"warning","message":{"text":"SslTransportLayer.doHandshake (cognitive 33): SslTransportLayer.doHandshake has cognitive complexity 33 (threshold 15). Drivers by points: if/else 29, loops 2, boolean chains 1, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfeefafef9bb8b1e05635d7fc98ce08e905566a0a111a8b3323946cc33d8ffd1"}},{"ruleId":"D2","level":"warning","message":{"text":"TopicAssignmentPartialBuilder.assignRemainingPartitions (cognitive 33): TopicAssignmentPartialBuilder.assignRemainingPartitions has cognitive complexity 33 (threshold 15). Drivers by points: if/else 28, loops 4, ternaries 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHeterogeneousAssignmentBuilder.java"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b8130f055efb43158e11b0d2772f181a0abb133d3119ea7dee8c41e05b5117"}},{"ruleId":"D2","level":"warning","message":{"text":"FieldSpecPairIterator.hasNext (cognitive 33): FieldSpecPairIterator.hasNext has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 19, match/switch 8, loops 5, if/else 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":"generator/src/main/java/org/apache/kafka/message/checker/FieldSpecPairIterator.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7bea99a7c20dfc4b9f45f06d73dc8b2f8cd35411eddfa1121c9c5e1615bbca"}},{"ruleId":"D2","level":"warning","message":{"text":"FieldSpec.generateNonDefaultValueCheck (cognitive 33): FieldSpec.generateNonDefaultValueCheck has cognitive complexity 33 (threshold 15). Drivers by points: if/else 27, ternaries 5, 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":"generator/src/main/java/org/apache/kafka/message/FieldSpec.java"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d50b548deeb8f429c3558b68811e46b20c90e9557b17027e35341f285c7741"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientQuotasImage.matches (cognitive 33): ClientQuotasImage.matches has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19, loops 13, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/image/ClientQuotasImage.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d911b47f5bcc9b3897e73ce57b12472becd52d162e9d451640e6fb04ac6a1a"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaRaftClient.handleFetchResponse (cognitive 33): KafkaRaftClient.handleFetchResponse has cognitive complexity 33 (threshold 15). Drivers by points: if/else 28, ternaries 4, 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":"raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aeccd9effc9eee44a3632ebb4fbca80ef2040541269b89c2c75e00b617597fe"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedLog.analyzeAndValidateProducerState (cognitive 33): UnifiedLog.analyzeAndValidateProducerState has cognitive complexity 33 (threshold 15). Drivers by points: if/else 26, boolean chains 3, ternaries 3, loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"storage/src/main/java/org/apache/kafka/storage/internals/log/UnifiedLog.java"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"073d55a09b557a522d644421bb02753fac197c307d8edb51a66b8bc79f69b8fa"}},{"ruleId":"D2","level":"warning","message":{"text":"SharePartition.nextFetchOffset (cognitive 33): SharePartition.nextFetchOffset has cognitive complexity 33 (threshold 15). Drivers by points: if/else 24, boolean chains 4, loops 4, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"def6ebaae80b77815cd85d95f8ad6aa3131fd05db288d6ef505e4e10f575917d"}},{"ruleId":"D2","level":"warning","message":{"text":"ShareSessionHandler.newShareFetchBuilder (cognitive 32): ShareSessionHandler.newShareFetchBuilder has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20, loops 11, 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareSessionHandler.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ca3bc41f6695ce1d0b67057b730f9ac68864fd69a71cbedcac42a6383f8305"}},{"ruleId":"D2","level":"warning","message":{"text":"Sender.completeBatch (cognitive 32): Sender.completeBatch has cognitive complexity 32 (threshold 15). Drivers by points: if/else 28, boolean chains 4 (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":"clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"858269236a4d76a18d7fd72dc31585f12a68684f4b5135f1fbd52a9dddd795c9"}},{"ruleId":"D2","level":"warning","message":{"text":"FetchManager.newContext (cognitive 32): FetchManager.newContext has cognitive complexity 32 (threshold 15). Drivers by points: if/else 24, ternaries 5, boolean chains 3 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/java/org/apache/kafka/server/FetchManager.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a49fb9f567f5971097ef747b5dbb38eb2548afb5d219a4062c0f4a7d0b0e20"}},{"ruleId":"D2","level":"warning","message":{"text":"TopicAdmin.createOrFindTopics (cognitive 32): TopicAdmin.createOrFindTopics has cognitive complexity 32 (threshold 15). Drivers by points: if/else 25, error handling 4, loops 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/runtime/src/main/java/org/apache/kafka/connect/util/TopicAdmin.java"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a4df14364abf6f76861d33bc89fef810d0438e2e104ae43600b8ea6cbd8d9d"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleHomogeneousAssignmentBuilder.assignRemainingPartitions (cognitive 32): SimpleHomogeneousAssignmentBuilder.assignRemainingPartitions has cognitive complexity 32 (threshold 15). Drivers by points: if/else 28, loops 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHomogeneousAssignmentBuilder.java"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"0789e4c9f06687d04ee6c666a20a7edfe72bca4124363b6f25f9739f9fb0c91e"}},{"ruleId":"D2","level":"warning","message":{"text":"FeatureControlManager.updateFeature (cognitive 32): FeatureControlManager.updateFeature has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21, error handling 11 (nesting depth added 13). 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":"metadata/src/main/java/org/apache/kafka/controller/FeatureControlManager.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"d004e0cd5ac8f4aa2d94795a9483f900a94b6428b34518d10690228881f43ef3"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedLog.append (cognitive 32): UnifiedLog.append has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20, ternaries 6, loops 5, 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/UnifiedLog.java"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"3963b263d0be4c25c27e5a062599d086c786f3f7c0db968bba56cc499ed25449"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessorStateManager.commit (cognitive 32): ProcessorStateManager.commit has cognitive complexity 32 (threshold 15). Drivers by points: if/else 21, error handling 7, boolean chains 2, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorStateManager.java"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"1014e89526602af627919f70388a1f92eab3383e1a38e021f58cbc5801c662f8"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamsConfig.checkIfUnexpectedUserSpecifiedClientConfig (cognitive 32): StreamsConfig.checkIfUnexpectedUserSpecifiedClientConfig has cognitive complexity 32 (threshold 15). Drivers by points: if/else 31, loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/StreamsConfig.java"},"region":{"startLine":1814}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9881e8d5baeb391ceafc38f5313defabbcb5b1566d48f87d9fe3f4645fbd35"}},{"ruleId":"D2","level":"warning","message":{"text":"ConstrainedAssignmentBuilder.assignOwnedPartitions (cognitive 31): ConstrainedAssignmentBuilder.assignOwnedPartitions has cognitive complexity 31 (threshold 15). Drivers by points: if/else 19, loops 11, 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractStickyAssignor.java"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76a85ec271bc432061adfd360b6f3403f44fe3b1bb8cd92ca6e2a7e5246604c"}},{"ruleId":"D2","level":"warning","message":{"text":"ShareConsumeRequestManager.handleShareFetchSuccess (cognitive 31): ShareConsumeRequestManager.handleShareFetchSuccess has cognitive complexity 31 (threshold 15). Drivers by points: if/else 27, boolean chains 2, loops 1, ternaries 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"375a19842a2f2a65b4c5b354cfae54ad80f8dc7a862bf6a5d624c9ea664ef308"}},{"ruleId":"D2","level":"warning","message":{"text":"ShareFetchCollector.collect (cognitive 31): ShareFetchCollector.collect has cognitive complexity 31 (threshold 15). Drivers by points: if/else 24, error handling 5, boolean chains 1, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareFetchCollector.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c051478805e6e2096b2a2a28d436bf8855e58c8cf72dafd48fc0ce8ff350eb1"}},{"ruleId":"D2","level":"warning","message":{"text":"SaslServerAuthenticator.handleSaslToken (cognitive 31): SaslServerAuthenticator.handleSaslToken has cognitive complexity 31 (threshold 15). Drivers by points: if/else 21, error handling 4, ternaries 4, boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/security/authenticator/SaslServerAuthenticator.java"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"094c10159d297a9bf4d08adc1c3ca02c911ab225ed3d6caf4af78dbe41724ec4"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleHomogeneousAssignmentBuilder.revokeUnassignablePartitions (cognitive 31): SimpleHomogeneousAssignmentBuilder.revokeUnassignablePartitions has cognitive complexity 31 (threshold 15). Drivers by points: if/else 24, loops 7 (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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHomogeneousAssignmentBuilder.java"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46eb6308e5c97d0d4f5292b8164e6fc05fab5e0b99ebe13447bd8ca8be01ac6"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageSpec.\u003Cinit\u003E (cognitive 31): MessageSpec.\u003Cinit\u003E has cognitive complexity 31 (threshold 15). Drivers by points: if/else 26, boolean chains 3, 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":"generator/src/main/java/org/apache/kafka/message/MessageSpec.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45a4bc7532c57eaa121d72f704f5ab381632346b8ed9a0e0ee8c1757f9aa44c"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicationControlManager.alterPartition (cognitive 31): ReplicationControlManager.alterPartition has cognitive complexity 31 (threshold 15). Drivers by points: if/else 23, loops 6, boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/ReplicationControlManager.java"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"318fc4d4a1991bb155b7eb7b26fc35bc372f8593ad25a838d51a758ae6f1e41c"}},{"ruleId":"D2","level":"warning","message":{"text":"RepartitionTopics.computePartitionCount (cognitive 31): RepartitionTopics.computePartitionCount has cognitive complexity 31 (threshold 15). Drivers by points: if/else 26, loops 4, boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/RepartitionTopics.java"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8887ab5799dc106cdd703b25266d80d0aa5ba3ea1d89bdfcd52be2bb5d5ce1"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalStreamsBuilder.mergeDuplicateSourceNodes (cognitive 31): InternalStreamsBuilder.mergeDuplicateSourceNodes has cognitive complexity 31 (threshold 15). Drivers by points: if/else 25, loops 6 (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":"streams/src/main/java/org/apache/kafka/streams/kstream/internals/InternalStreamsBuilder.java"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"81817eb7fdc303ccbcfa2feb9881e291f8e45c9a1e087770ea8cb303553dbff4"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsumerGroupCommandOptions.checkArgs (cognitive 31): ConsumerGroupCommandOptions.checkArgs has cognitive complexity 31 (threshold 15). Drivers by points: if/else 23, boolean chains 7, ternaries 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":"tools/src/main/java/org/apache/kafka/tools/consumer/group/ConsumerGroupCommandOptions.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c99e29b331c30f9382bcf74a58be81be05d31c4ab91a81b8654c5492eb2b6e7"}},{"ruleId":"D2","level":"warning","message":{"text":"MockConsumer.poll (cognitive 30): MockConsumer.poll has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22, loops 5, boolean chains 3 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/MockConsumer.java"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc584067b58f2bb113a2b03397e903c501e4a2e6da9a682c44ad94e27ec4d26"}},{"ruleId":"D2","level":"warning","message":{"text":"IncrementalCooperativeAssignor.handleLostAssignments (cognitive 30): IncrementalCooperativeAssignor.handleLostAssignments has cognitive complexity 30 (threshold 15). Drivers by points: if/else 21, loops 6, boolean chains 3 (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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/IncrementalCooperativeAssignor.java"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af70972ebf35654775f5d31a28295d0e739bcd4286e4e00d732cc4a79112d73"}},{"ruleId":"D2","level":"warning","message":{"text":"StickyTaskAssignor.assignStandby (cognitive 30): StickyTaskAssignor.assignStandby has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22, loops 6, boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/assignor/StickyTaskAssignor.java"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85bbbb6ead1d767b406c55c675fbb26d130ac9f21ac63ccae43e28ff7302c1f"}},{"ruleId":"D2","level":"warning","message":{"text":"BrokerHeartbeatManager.calculateNextBrokerState (cognitive 30): BrokerHeartbeatManager.calculateNextBrokerState has cognitive complexity 30 (threshold 15). Drivers by points: if/else 29, match/switch 1 (nesting depth added 16). 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":"metadata/src/main/java/org/apache/kafka/controller/BrokerHeartbeatManager.java"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"007a8083e2c0e11f9ab2036f642b410857b798add696b599f129b0357c91fcaf"}},{"ruleId":"D2","level":"warning","message":{"text":"BrokersToIsrs.update (cognitive 30): BrokersToIsrs.update has cognitive complexity 30 (threshold 15). Drivers by points: if/else 29, 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":"metadata/src/main/java/org/apache/kafka/controller/BrokersToIsrs.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c1f2692c31a0f8879c88434a24b8cfb0bfd90511c421a455483bca58899e32"}},{"ruleId":"D2","level":"warning","message":{"text":"TopicDelta.localChanges (cognitive 30): TopicDelta.localChanges has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22, boolean chains 5, error handling 2, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/image/TopicDelta.java"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88060ed227e7707e17fe731a618244eab9e959b2fc20e6465ab58499ad4e7cb"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedLog.rebuildProducerState (cognitive 30): UnifiedLog.rebuildProducerState has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16, loops 5, ternaries 5, boolean chains 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/UnifiedLog.java"},"region":{"startLine":2534}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6372abc95db6b0d06f987799440056dc30132b17e37498d65187ccea9d8ae2c"}},{"ruleId":"D2","level":"warning","message":{"text":"IQv2StoreIntegrationTest.data (cognitive 30): IQv2StoreIntegrationTest.data has cognitive complexity 30 (threshold 15). Drivers by points: loops 21, if/else 7, boolean chains 2 (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/IQv2StoreIntegrationTest.java"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b718d8d465ae6f31f7f63859108550eadffd814815f4a79ff12b85ff6ecf67c"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskManager.tryCloseCleanActiveTasks (cognitive 30): TaskManager.tryCloseCleanActiveTasks has cognitive complexity 30 (threshold 15). Drivers by points: error handling 13, if/else 12, loops 4, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da3b2fbecf59e876bc4f2b9ab5ac3210a600fec5d645aa8dd36074493d644ba"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamThreadStateStoreProvider.stores (cognitive 30): StreamThreadStateStoreProvider.stores has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15, ternaries 7, loops 6, boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/state/internals/StreamThreadStateStoreProvider.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca656166a67d1b828ff8f03b2b0fce8bb7ce6b5c73b4b28cd7f6b40b96c34496"}},{"ruleId":"D2","level":"warning","message":{"text":"SmokeTestDriver.verify (cognitive 30): SmokeTestDriver.verify has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22, loops 6, 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":"streams/upgrade-system-tests-32/src/test/java/org/apache/kafka/streams/tests/SmokeTestDriver.java"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"0387b433f33d88760226bd6faebae023203d5935168bb0c80927ff89cb1e6e48"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractCoordinator.joinGroupIfNeeded (cognitive 29): AbstractCoordinator.joinGroupIfNeeded has cognitive complexity 29 (threshold 15). Drivers by points: if/else 26, boolean chains 2, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcde53176535d464e21d5b883fbfe9a1698f5e8cda7d6c52583f9e0f3c0752d"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncGroupResponseHandler.handle (cognitive 29): SyncGroupResponseHandler.handle has cognitive complexity 29 (threshold 15). Drivers by points: if/else 25, boolean chains 4 (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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e9b23fd73becfbb32c5483d01255affb34418d3e316ea3e3b73bc079790e685"}},{"ruleId":"D2","level":"warning","message":{"text":"CompletedFetch.nextFetchedRecord (cognitive 29): CompletedFetch.nextFetchedRecord has cognitive complexity 29 (threshold 15). Drivers by points: if/else 26, boolean chains 2, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/CompletedFetch.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c01e1eeeb45017919a4d03035fa954a649ecb3465888a6f2557f6247314dc0f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsumerCoordinator.onJoinPrepare (cognitive 29): ConsumerCoordinator.onJoinPrepare has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, boolean chains 4, match/switch 2, ternaries 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc369c25d2eee9264e763aa137dc6a35f88a6b1a43d97f1830a8aa539c4785c"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsumerCoordinator.poll (cognitive 29): ConsumerCoordinator.poll has cognitive complexity 29 (threshold 15). Drivers by points: if/else 24, ternaries 4, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b820dcebf694ea5a04b6ed2cc13ddc345bfa04c026573b2294492fbdcb7d901"}},{"ruleId":"D2","level":"warning","message":{"text":"InitializeStateHandler.handleRequestResponse (cognitive 29): InitializeStateHandler.handleRequestResponse has cognitive complexity 29 (threshold 15). Drivers by points: if/else 20, match/switch 6, loops 2, boolean chains 1 (nesting depth added 20). 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"9492b4842359d182fa58b0a267b92f8f5de4fa485f532fccaad156f3c7217ea0"}},{"ruleId":"D2","level":"warning","message":{"text":"WriteStateHandler.handleRequestResponse (cognitive 29): WriteStateHandler.handleRequestResponse has cognitive complexity 29 (threshold 15). Drivers by points: if/else 20, match/switch 6, loops 2, boolean chains 1 (nesting depth added 20). 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0651ec9ed184bd36434ab2cb666800416ec26bb26b21bead9b1d422b96b581d"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadStateHandler.handleRequestResponse (cognitive 29): ReadStateHandler.handleRequestResponse has cognitive complexity 29 (threshold 15). Drivers by points: if/else 20, match/switch 6, loops 2, boolean chains 1 (nesting depth added 20). 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0ba29650181f777db669052b2554194e4d91f585469d337c7ce711f04097d9"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadStateSummaryHandler.handleRequestResponse (cognitive 29): ReadStateSummaryHandler.handleRequestResponse has cognitive complexity 29 (threshold 15). Drivers by points: if/else 20, match/switch 6, loops 2, boolean chains 1 (nesting depth added 20). 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"587b47f3afa05aec047491bb0ae98252edae23515d2d7a355d072c17b3523bac"}},{"ruleId":"D2","level":"warning","message":{"text":"DeleteStateHandler.handleRequestResponse (cognitive 29): DeleteStateHandler.handleRequestResponse has cognitive complexity 29 (threshold 15). Drivers by points: if/else 20, match/switch 6, loops 2, boolean chains 1 (nesting depth added 20). 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ef9abc85a8b1b49cc0d2264c9c46f4cef1d3bb01b049f84b7de7c4c5ebc0b7"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageDataGenerator.generateVariableLengthReader (cognitive 29): MessageDataGenerator.generateVariableLengthReader has cognitive complexity 29 (threshold 15). Drivers by points: if/else 26, boolean chains 2, ternaries 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":"generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d1ede9183855d7d96e72c389cf5463be6bdc0e54d4c83d812dbd5390c35537"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageDataGenerator.generateVariableLengthWriter (cognitive 29): MessageDataGenerator.generateVariableLengthWriter has cognitive complexity 29 (threshold 15). Drivers by points: if/else 28, 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":"generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f304bed780c8e8f3c309308ddd915c285e5a2f2180f7ab63f5f194db594225"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigurationControlManager.incrementalAlterConfigResource (cognitive 29): ConfigurationControlManager.incrementalAlterConfigResource has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17, loops 9, match/switch 2, boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/ConfigurationControlManager.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a759f48a0111f98c012c15f7df91afb836992ae4939d5e9692178f224ae4e6"}},{"ruleId":"D2","level":"warning","message":{"text":"ScramImage.describe (cognitive 29): ScramImage.describe has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17, loops 11, 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":"metadata/src/main/java/org/apache/kafka/image/ScramImage.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"f334d1b7de6a543bff7995b27c82737e42819348fc9570619b567d4446314e92"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoricalIterator.hasNext (cognitive 29): HistoricalIterator.hasNext has cognitive complexity 29 (threshold 15). Drivers by points: if/else 19, loops 9, boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-common/src/main/java/org/apache/kafka/timeline/SnapshottableHashTable.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdeb180028da97a35b61a7c4ebcf51a1cd0d7be3f0b68dbb808df42ca74ff15e"}},{"ruleId":"D2","level":"warning","message":{"text":"OffsetFetchRequestState.onSuccess (cognitive 28): OffsetFetchRequestState.onSuccess has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22, loops 3, ternaries 2, 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"893c009fe6e6b41393694b50d2e2e045344fb4429b1537a45d6bf95facf601ab"}},{"ruleId":"D2","level":"warning","message":{"text":"Metadata.handleMetadataResponse (cognitive 28): Metadata.handleMetadataResponse has cognitive complexity 28 (threshold 15). Drivers by points: if/else 23, loops 4, 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":"clients/src/main/java/org/apache/kafka/clients/Metadata.java"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bbd34bf9e86ca10ea95c0fc0906a0769dc8cfba119fafd4ee20aba717f7336"}},{"ruleId":"D2","level":"warning","message":{"text":"RLMCopyTask.copyLogSegmentsToRemote (cognitive 28): RLMCopyTask.copyLogSegmentsToRemote has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15, loops 9, error handling 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":"storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"c491ce8a42978b598678b973bc8b7ed2a58222b048da8fac3cac0c5045c02ea8"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientQuotasImageNode.decodeEntity (cognitive 28): ClientQuotasImageNode.decodeEntity has cognitive complexity 28 (threshold 15). Drivers by points: if/else 23, match/switch 4, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/image/node/ClientQuotasImageNode.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"511394e14de092928203f61ef02b0819be073cd93fcffc1b10e8217cd5ac2793"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobComponent.toRegularExpression (cognitive 28): GlobComponent.toRegularExpression has cognitive complexity 28 (threshold 15). Drivers by points: if/else 24, match/switch 2, boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shell/src/main/java/org/apache/kafka/shell/glob/GlobComponent.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"09139399c594181dd7db1102862f1c7f820d8a6483307fb3a3bd58e73cdcdcc1"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalStreamThread.run (cognitive 28): GlobalStreamThread.run has cognitive complexity 28 (threshold 15). Drivers by points: error handling 15, if/else 11, boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/GlobalStreamThread.java"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"3050b02366cd14d3303f371a2831ff8d05964e18f57fb64bab998a5c96875d57"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamThreadStateStoreProvider.validateAndCastStores (cognitive 28): StreamThreadStateStoreProvider.validateAndCastStores has cognitive complexity 28 (threshold 15). Drivers by points: if/else 25, 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/StreamThreadStateStoreProvider.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"be793eeacb7e0dffc9417d4b3bd7cc80411db72746f31f5ea4222cc27331e823"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultMessageFormatter.writeTo (cognitive 28): DefaultMessageFormatter.writeTo has cognitive complexity 28 (threshold 15). Drivers by points: if/else 18, boolean chains 6, loops 3, error handling 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":"tools/src/main/java/org/apache/kafka/tools/consumer/DefaultMessageFormatter.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"94649dae05feaa42ff6edbd86f375ae5a443d98ab32251d1ba499709da1c0ee0"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamsResetter.maybeResetInputAndSeekToEndIntermediateTopicOffsets (cognitive 28): StreamsResetter.maybeResetInputAndSeekToEndIntermediateTopicOffsets has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17, loops 9, boolean chains 1, error handling 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/src/main/java/org/apache/kafka/tools/StreamsResetter.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9981c5f22c75b78f7300b6b354af7563eda875d024bcbe89828780f1e2a6d05"}},{"ruleId":"D2","level":"warning","message":{"text":"AdminClientRunnable.handleResponses (cognitive 27): AdminClientRunnable.handleResponses has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22, error handling 4, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e41d7e2cabbaa9f0eee3c9541f4815bef51e431747e07e4fc57845771e6b26"}},{"ruleId":"D2","level":"warning","message":{"text":"1.handleResponse (cognitive 27): 1.handleResponse has cognitive complexity 27 (threshold 15). Drivers by points: if/else 26, 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":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":1834}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89012d1f90927259147aec3eeac3775afd5c7cded0e48d462cbec3cffaae1d5"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordAccumulator.partitionReady (cognitive 27): RecordAccumulator.partitionReady has cognitive complexity 27 (threshold 15). Drivers by points: if/else 23, boolean chains 3, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/producer/internals/RecordAccumulator.java"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5370d1e799535cd1fc9243747015fe5b52e35aabfd1d26b103c0a503fd9cfb"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaPostDiscoveryFilter.apply (cognitive 27): KafkaPostDiscoveryFilter.apply has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19, ternaries 6, 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":"test-common/test-common-util/src/main/java/org/apache/kafka/common/test/junit/KafkaPostDiscoveryFilter.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8063686e9b4a18d90ef64a84fc8a0dd5e7b9db388ccdfc925a7369a949e4a7"}},{"ruleId":"D2","level":"warning","message":{"text":"RLMExpirationTask.buildRetentionSizeData (cognitive 27): RLMExpirationTask.buildRetentionSizeData has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, loops 5, boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java"},"region":{"startLine":1612}}}],"partialFingerprints":{"codehealthFindingId/v1":"328562463aaa22d5c3469cabf327bac0db0a059733c0bda64796c9ca38807736"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginUtils.pluginUrls (cognitive 27): PluginUtils.pluginUrls has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22, error handling 3, loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/isolation/PluginUtils.java"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa44cad49b15a644fe4032b010da44a9b2e7d300d62d2bd0492ba4b98eb1564"}},{"ruleId":"D2","level":"warning","message":{"text":"CoordinatorContext.append (cognitive 27): CoordinatorContext.append has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20, loops 4, error handling 3 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntime.java"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54e352020228718c5b2fcd89bf9ef3db1ded6ad4cd84e71a0c1ba835db7977e"}},{"ruleId":"D2","level":"warning","message":{"text":"FieldSpec.\u003Cinit\u003E (cognitive 27): FieldSpec.\u003Cinit\u003E has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16, boolean chains 6, ternaries 5 (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":"generator/src/main/java/org/apache/kafka/message/FieldSpec.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d56629605fedc91a2b5c01c506874a3358a64634101ee7cca9475b998cd0b2"}},{"ruleId":"D2","level":"warning","message":{"text":"LogLoader.load (cognitive 27): LogLoader.load has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20, loops 3, error handling 2, boolean chains 1, ternaries 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogLoader.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"abed05104071cd82a3d38158af8494a9f2cea053734346f132d8cccf3072e14b"}},{"ruleId":"D2","level":"warning","message":{"text":"LogManager.loadLogs (cognitive 27): LogManager.loadLogs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13, error handling 9, loops 4, ternaries 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogManager.java"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c97acdbc53f7c7492cd413fc973860b5e52c959c680157efd7706322b5a1bc"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessorNode.process (cognitive 27): ProcessorNode.process has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14, error handling 5, loops 4, ternaries 4 (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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorNode.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce383b75b9109eb847e5747aff4d28b213550d8408014d1744574afb1c81920"}},{"ruleId":"D2","level":"warning","message":{"text":"TopologyConfig.\u003Cinit\u003E (cognitive 27): TopologyConfig.\u003Cinit\u003E has cognitive complexity 27 (threshold 15). Drivers by points: if/else 23, boolean chains 3, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"streams/src/main/java/org/apache/kafka/streams/TopologyConfig.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"71bcb3995012a1330206d36794beb8111cf77ada77c1ea75d8cdd1eb6a9d2c3a"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsumerGroupService.printMembers (cognitive 27): ConsumerGroupService.printMembers has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10, ternaries 8, boolean chains 6, loops 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":"tools/src/main/java/org/apache/kafka/tools/consumer/group/ConsumerGroupCommand.java"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"548d3fdd01cc4d25333e2b1b446732550a30b41c408c5f9bd7e59c3deda9b652"}},{"ruleId":"D2","level":"warning","message":{"text":"1.hasNext (cognitive 27): 1.hasNext has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 12, if/else 10, 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":"tools/src/main/java/org/apache/kafka/tools/LineMessageReader.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"941b684fe0bdc320404b63b4642b06ff843daff9d247570369e8f3a924720543"}},{"ruleId":"D2","level":"warning","message":{"text":"ProducerPerformance.start (cognitive 27): ProducerPerformance.start has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, boolean chains 4, error handling 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/src/main/java/org/apache/kafka/tools/ProducerPerformance.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfebb53f48f72b8ce71851f015aafaf0d4be96332c553904ddebf3571263bd1e"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionalMessageCopier.runEventLoop (cognitive 27): TransactionalMessageCopier.runEventLoop has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10, error handling 7, loops 4, ternaries 4, boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/src/main/java/org/apache/kafka/tools/TransactionalMessageCopier.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"103b5a8d485e3395062a9ac98636ddf2cded854c8c077c192e36283e294a7a1d"}},{"ruleId":"D2","level":"warning","message":{"text":"FetchCollector.collectFetch (cognitive 26): FetchCollector.collectFetch has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, error handling 5, boolean chains 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/FetchCollector.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"27485bf6e4863c5ee00d3d24cb5cf5b6f6020d2a69d3618a82cfd72f60e62be1"}},{"ruleId":"D2","level":"warning","message":{"text":"FetchCollector.fetchRecords (cognitive 26): FetchCollector.fetchRecords has cognitive complexity 26 (threshold 15). Drivers by points: if/else 26 (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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/FetchCollector.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"03310f03f73346f130cf5f8e95fe9047c45ffa8496482c0591a4260f40c6e411"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionManager.canRetry (cognitive 26): TransactionManager.canRetry has cognitive complexity 26 (threshold 15). Drivers by points: if/else 23, 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":"clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"83bb7a67af2d68cd60f63e3e1f7094f5a80173b668593bceb395c0a238ac1e88"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaProducer.close (cognitive 26): KafkaProducer.close has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17, error handling 7, boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"934adeae0c658df547d45c5ab81fc3c5f5254146d1e85d15009c8699b9267110"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.build (cognitive 26): Builder.build has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21, boolean chains 2, loops 2, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/FetchSessionHandler.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54386a414e55fce3d2216f25096f875a97ee20261f37ff2f95e051701fab213"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteLogManager.findOffsetByTimestamp (cognitive 26): RemoteLogManager.findOffsetByTimestamp has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16, loops 8, boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"b640528b978124533f595ef68202c047a5186b6d463a3f55bfaa8877e9fc82a2"}},{"ruleId":"D2","level":"warning","message":{"text":"RackAwareTaskAssignor.validateTopicPartitionRack (cognitive 26): RackAwareTaskAssignor.validateTopicPartitionRack has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14, loops 9, error handling 2, boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/RackAwareTaskAssignor.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ec19344bd2806f65f78c8adbfcfdc925c2892f2afa1be8c911375442baf2be"}},{"ruleId":"D2","level":"warning","message":{"text":"ChangelogTopics.setup (cognitive 26): ChangelogTopics.setup has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15, loops 11 (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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/ChangelogTopics.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"729a7856d14a98d041cb661e753c0ceca89210cb84786d586455c99aac569bdd"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalTopicManager.processCreateTopicResults (cognitive 26): InternalTopicManager.processCreateTopicResults has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15, error handling 8, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopicManager.java"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f3678c9a3eac039fcd1301b863166b9e3358df804689f4da9b86aad0b5940f"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessorStateManager.close (cognitive 26): ProcessorStateManager.close has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19, error handling 3, boolean chains 2, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorStateManager.java"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"3720a4a5ca0ee996de500398dcbc4516fe08190302e5ab0c5f0a186f1dea3ba0"}},{"ruleId":"D2","level":"warning","message":{"text":"DumpLogSegments.dumpTimeIndex (cognitive 26): DumpLogSegments.dumpTimeIndex has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20, loops 5, 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":"tools/src/main/java/org/apache/kafka/tools/DumpLogSegments.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"484935f275bd753ef796b6aff8414f4f470e9d31f07aa8b8293305817a31a70c"}},{"ruleId":"D2","level":"warning","message":{"text":"SharePartition.acquireSubsetBatchRecords (cognitive 26): SharePartition.acquireSubsetBatchRecords has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, boolean chains 7, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":1959}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad02bf10d22d25516d42ff1f3066e6bf31b52718bf7d4e6d7544913d03f3d4c2"}},{"ruleId":"D2","level":"warning","message":{"text":"HeartbeatThread.run (cognitive 25): HeartbeatThread.run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19, error handling 4, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"605524c0a33f4da890cbe7fb71e39b9323fde7f6c213c6099239c05fcaf8e670"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractFetch.handleFetchSuccess (cognitive 25): AbstractFetch.handleFetchSuccess has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20, loops 3, 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractFetch.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4068f485f1a520f4786273fcdad3cec47b9b188b2f167b2fb1fa08a059683064"}},{"ruleId":"D2","level":"warning","message":{"text":"OffsetFetchResponseHandler.handle (cognitive 25): OffsetFetchResponseHandler.handle has cognitive complexity 25 (threshold 15). Drivers by points: if/else 21, 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0c4ca10ec3e1b7539549f33f47b9e4cb6ab55ca002df0c6f2635cc4e2f7873"}},{"ruleId":"D2","level":"warning","message":{"text":"ShareCompletedFetch.fetchRecords (cognitive 25): ShareCompletedFetch.fetchRecords has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16, loops 6, error handling 2, 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareCompletedFetch.java"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff848099253c333df8e8c7ff6e1baaff2bdf14389567bea37d1d0384e8c2f92"}},{"ruleId":"D2","level":"warning","message":{"text":"ScramSaslServer.evaluateResponse (cognitive 25): ScramSaslServer.evaluateResponse has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16, error handling 7, boolean chains 1, 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":"clients/src/main/java/org/apache/kafka/common/security/scram/internals/ScramSaslServer.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da93be8811e9196dadccfd3f3118077e5b07d9dde762fd11987958c3b169ffd"}},{"ruleId":"D2","level":"warning","message":{"text":"1.onComplete (cognitive 25): 1.onComplete has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, error handling 7 (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":"server/src/main/java/org/apache/kafka/server/KRaftTopicCreator.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3c12e308d54eb9ddfafd604657ac419fc92f2d6c514fc4a2b53a2ae604a7cf"}},{"ruleId":"D2","level":"warning","message":{"text":"RepartitionTopics.computeRepartitionTopicPartitionCount (cognitive 25): RepartitionTopics.computeRepartitionTopicPartitionCount has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15, loops 9, 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/topics/RepartitionTopics.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73b539f92496570663f0d84d04918a1492907da852bc4d70afe4c25642d47c7"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupCoordinatorConfig.consumerGroupAssignors (cognitive 25): GroupCoordinatorConfig.consumerGroupAssignors has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13, error handling 9, 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorConfig.java"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb7f92a0a80e1836fd317a511876e2d8abf22e82e45d276a8caec78a52f3120"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageDataGenerator.generateClassWriter (cognitive 25): MessageDataGenerator.generateClassWriter has cognitive complexity 25 (threshold 15). Drivers by points: if/else 21, boolean chains 2, loops 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9414759637c246beea862fbf6c27a03278a1ffc9f2923166c0a45b3177d22dd"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalStateManagerImpl.initialize (cognitive 25): GlobalStateManagerImpl.initialize has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12, loops 7, error handling 6 (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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/GlobalStateManagerImpl.java"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fefbc73afcb8ceed3a284a4681f0067b4522a41fb9995e84e33e0ad86eefca0"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalTopologyBuilder.buildProcessorNode (cognitive 25): InternalTopologyBuilder.buildProcessorNode has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17, ternaries 5, loops 2, boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopologyBuilder.java"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61339995a018f222652b1fe95390849f41d80f10cbe90d0967d808f74a82992"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordCollectorImpl.recordSendError (cognitive 25): RecordCollectorImpl.recordSendError has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, loops 5, error handling 4, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/RecordCollectorImpl.java"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"74258dd821554f23668460d7e72477ed2bd5b164e80743f538c667e3c535bccc"}},{"ruleId":"D2","level":"warning","message":{"text":"RocksDBVersionedStore.finishPut (cognitive 25): RocksDBVersionedStore.finishPut has cognitive complexity 25 (threshold 15). Drivers by points: if/else 25 (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":"streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBVersionedStore.java"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f65fa4e7aa03f0c06f8e56a927ca5990c3a8e24903363ff630ed202e910bfc"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaStreams.removeStreamThread (cognitive 25): KafkaStreams.removeStreamThread has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20, boolean chains 3, 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":"streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15f58d67c43214800dccc5ba5c729948a278d0399e7f35dfdddb1c8b1e5714e"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamsGroupService.resetOffsets (cognitive 25): StreamsGroupService.resetOffsets has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16, error handling 6, boolean chains 1, match/switch 1, ternaries 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":"tools/src/main/java/org/apache/kafka/tools/streams/StreamsGroupCommand.java"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"619cf587e45ec9be948904a90248154148dccbef038939db1e0bc0749d4834f5"}},{"ruleId":"D2","level":"warning","message":{"text":"ListShareGroupOffsetsHandler.handleResponse (cognitive 24): ListShareGroupOffsetsHandler.handleResponse has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12, ternaries 8, loops 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":"clients/src/main/java/org/apache/kafka/clients/admin/internals/ListShareGroupOffsetsHandler.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bf24eacacc40245d7ba00a251c0e8f9508d3e1779a522c9994186fef808aa5"}},{"ruleId":"D2","level":"warning","message":{"text":"GeneralAssignmentBuilder.isBalanced (cognitive 24): GeneralAssignmentBuilder.isBalanced has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15, loops 9 (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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractStickyAssignor.java"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"bacae91e59a89d29317e09e995386671de02d6244ee92db570571c8fcb3669dd"}},{"ruleId":"D2","level":"warning","message":{"text":"BufferPool.allocate (cognitive 24): BufferPool.allocate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, boolean chains 4, 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":"clients/src/main/java/org/apache/kafka/clients/producer/internals/BufferPool.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3cb42ecce638841ad4ddcada983da4d51196d8593a510f54bfaef7c935dd43"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkClient.leastLoadedNode (cognitive 24): NetworkClient.leastLoadedNode has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21, 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":"clients/src/main/java/org/apache/kafka/clients/NetworkClient.java"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"8953c71589fd6d00f46b3e8c9285d01d8677db6fdc0375e14660aeb5326c2274"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelBuilders.create (cognitive 24): ChannelBuilders.create has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15, loops 3, ternaries 3, boolean chains 2, 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":"clients/src/main/java/org/apache/kafka/common/network/ChannelBuilders.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26241524b4806accc38e00af4de0100dcd201d68d01f33ce70da471a2109277"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryRecords.filterTo (cognitive 24): MemoryRecords.filterTo has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20, boolean chains 3, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/record/internal/MemoryRecords.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"369f8d7d91abd55dbe8cd2b543bb6efb1e6058cffda9436365134dc40cbb12e4"}},{"ruleId":"D2","level":"warning","message":{"text":"DistributedHerder.validateSourceConnectorExactlyOnceSupport (cognitive 24): DistributedHerder.validateSourceConnectorExactlyOnceSupport has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20, error handling 3, 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d877b2077449ba3c20492613ccfc3803a2d8f4a6702eb31fe8ef79a6720a9ae"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientQuotasImage.describe (cognitive 24): ClientQuotasImage.describe has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17, boolean chains 4, match/switch 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/image/ClientQuotasImage.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffae2673c772a5f82167910b910944653fff94492fad88be1afb66bad122a717"}},{"ruleId":"D2","level":"warning","message":{"text":"11.process (cognitive 24): 11.process has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, error handling 3, 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":"streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/EosIntegrationTest.java"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"4552015dfc5c2cf93ef85c123c187955524b69119d1c67f54e7f86e490d7bbb6"}},{"ruleId":"D2","level":"warning","message":{"text":"StateUpdaterThread.addTask (cognitive 24): StateUpdaterThread.addTask has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13, ternaries 11 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/DefaultStateUpdater.java"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dcb3ab0268dc00a42d9a487c8aa5c88a394964b91b7c4e4a48ef8468ecce812"}},{"ruleId":"D2","level":"warning","message":{"text":"StoreChangelogReader.prepareChangelogs (cognitive 24): StoreChangelogReader.prepareChangelogs has cognitive complexity 24 (threshold 15). Drivers by points: error handling 11, if/else 10, loops 2, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StoreChangelogReader.java"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e3bf417999ea17c885ffc29c05ec35d08fe745567961c4c970703bbb3ba818"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskAssignmentUtils.validateTaskAssignment (cognitive 24): TaskAssignmentUtils.validateTaskAssignment has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16, loops 6, 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":"streams/src/main/java/org/apache/kafka/streams/processor/assignment/TaskAssignmentUtils.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30bd092207726f1ae2e976d0adae16687baa6de19345517fa460120dbfcad2c"}},{"ruleId":"D2","level":"warning","message":{"text":"TimeOrderedCachingWindowStore.putAndMaybeForward (cognitive 24): TimeOrderedCachingWindowStore.putAndMaybeForward has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21, boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/state/internals/TimeOrderedCachingWindowStore.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b6b34f9250e001e8d1cd0f2d344b8a9b62bf1e43fc6920cd2e31fddf5672c7"}},{"ruleId":"D2","level":"warning","message":{"text":"ReassignPartitionsCommand.parsePartitionReassignmentData (cognitive 24): ReassignPartitionsCommand.parsePartitionReassignmentData has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17, loops 7 (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":"tools/src/main/java/org/apache/kafka/tools/reassign/ReassignPartitionsCommand.java"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea57ae46813e52a3681422017cde20b5c3dfb5fdf36619acc99e2e2ea9421bc"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerUtils.createTopics (cognitive 24): WorkerUtils.createTopics has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10, loops 9, error handling 3, boolean chains 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":"trogdor/src/main/java/org/apache/kafka/trogdor/common/WorkerUtils.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bbf0b9f0d7a8f72534f44e954241144c7cad1dcc2c3d0f074396132dae7a9f"}},{"ruleId":"D2","level":"warning","message":{"text":"SharePartition.acknowledgeBatchRecords (cognitive 24): SharePartition.acknowledgeBatchRecords has cognitive complexity 24 (threshold 15). Drivers by points: if/else 22, boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":2194}}}],"partialFingerprints":{"codehealthFindingId/v1":"0771117af73cdc80e1846b443a579744c0a29713de369ed548ba38283b00ab76"}},{"ruleId":"D2","level":"warning","message":{"text":"SharePartition.filterRecordBatchesFromAcquiredRecords (cognitive 24): SharePartition.filterRecordBatchesFromAcquiredRecords has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21, boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":3217}}}],"partialFingerprints":{"codehealthFindingId/v1":"865cae0d4563d45b6953b8b58764004c63a54c5d9732c2f8b572c24494ba6ab3"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaAdminClient.alterUserScramCredentials (cognitive 23): KafkaAdminClient.alterUserScramCredentials has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, boolean chains 5, error handling 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":4409}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8122b759eddd119bfb828f7d600e37f86081732a7491bf6386d578114cbf1c"}},{"ruleId":"D2","level":"warning","message":{"text":"AdminClientRunnable.sendEligibleCalls (cognitive 23): AdminClientRunnable.sendEligibleCalls has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, error handling 3, loops 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":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcbd935831cc84d42f68ff401968ffa5d5532534567f3eb07876abc327d3b5f"}},{"ruleId":"D2","level":"warning","message":{"text":"32.handleResponse (cognitive 23): 32.handleResponse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, loops 8, match/switch 1 (nesting depth added 13). 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":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":4659}}}],"partialFingerprints":{"codehealthFindingId/v1":"994a8b3052149a5c7e0cb8ac4df2d5cf02dbd78f839d5e4bf3a843e7136ad4cd"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractStickyAssignor.allSubscriptionsEqual (cognitive 23): AbstractStickyAssignor.allSubscriptionsEqual has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, loops 3, boolean chains 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractStickyAssignor.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1656ff6416d7a9a2beae56797f81575f661e168e42fdc41fcb326cc3db1ad0"}},{"ruleId":"D2","level":"warning","message":{"text":"SubscriptionState.maybeCompleteValidation (cognitive 23): SubscriptionState.maybeCompleteValidation has cognitive complexity 23 (threshold 15). Drivers by points: if/else 22, 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/SubscriptionState.java"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a627b910aa3511df768bdb27b216e4d7ce12933b285bb4e817728947b9c7a2"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkThread.run (cognitive 23): WorkThread.run has cognitive complexity 23 (threshold 15). Drivers by points: error handling 13, loops 6, if/else 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":"connect/runtime/src/main/java/org/apache/kafka/connect/util/KafkaBasedLog.java"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3382b88dadfe4353e831b06d2b647dd07e137bc18b26846a8f9611f235ac831"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonConverter.convertToConnect (cognitive 23): JsonConverter.convertToConnect has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, boolean chains 3, match/switch 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":"connect/json/src/main/java/org/apache/kafka/connect/json/JsonConverter.java"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bf60e1b742a8fd8d36882d2484b9a0bfa062a05306f63c90b8b69bb95acbcf"}},{"ruleId":"D2","level":"warning","message":{"text":"StandardAuthorizerData.findResult (cognitive 23): StandardAuthorizerData.findResult has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, match/switch 3, boolean chains 1, ternaries 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":"metadata/src/main/java/org/apache/kafka/metadata/authorizer/StandardAuthorizerData.java"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"4497b99d9a47fce97a8d66ca6dfd515e9624b1fca04a5a1485e956f2aa3a942c"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaRaftClient.handleVoteResponse (cognitive 23): KafkaRaftClient.handleVoteResponse has cognitive complexity 23 (threshold 15). Drivers by points: if/else 22, 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":"raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ca5e3be78269c7b14687113e3c81e53416ff6b7e8e591e738afe5ea5df8c0b"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseHashTable.baseRemove (cognitive 23): BaseHashTable.baseRemove has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, ternaries 6, 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":"server-common/src/main/java/org/apache/kafka/timeline/BaseHashTable.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"964a2a7bffae87c37ef6b4aa157d944612312935de304b9ec6f7c650ffac08e0"}},{"ruleId":"D2","level":"warning","message":{"text":"MinTrafficGraphConstructor.constructTaskGraph (cognitive 23): MinTrafficGraphConstructor.constructTaskGraph has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, loops 7, ternaries 3, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/MinTrafficGraphConstructor.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ce3cbd976335c255ccf98b0fbc7a0e19d89adac33c12742a0d0758e6df35df"}},{"ruleId":"D2","level":"warning","message":{"text":"StateUpdaterThread.maybeGetClientInstanceIds (cognitive 23): StateUpdaterThread.maybeGetClientInstanceIds has cognitive complexity 23 (threshold 15). Drivers by points: error handling 12, if/else 7, ternaries 4 (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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/DefaultStateUpdater.java"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"39baddaf8a83fa97c7e8df0875281c437a9f2aa86058a655ed1ba5830b2473b3"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalTopicManager.createTopics (cognitive 23): InternalTopicManager.createTopics has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, error handling 4, boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopicManager.java"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"310886a31e6a9224b4632a8cb3af4e6f1c4a8ac734854f562a8ee65afb47ba44"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessorStateManager.flushCache (cognitive 23): ProcessorStateManager.flushCache has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, error handling 3, loops 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorStateManager.java"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"741fb823241d215d0dcfa2cfb40df15a4430580719e28c615a51b8008549a012"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordCollectorImpl.send (cognitive 23): RecordCollectorImpl.send has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, loops 5, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/RecordCollectorImpl.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9bf49343f1e3b63ddc412b7b923a1f6e2d7558f67a2bf3e3c100624b77f815"}},{"ruleId":"D2","level":"warning","message":{"text":"FeatureCommand.handleUpgradeOrDowngrade (cognitive 23): FeatureCommand.handleUpgradeOrDowngrade has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, error handling 7, boolean chains 3, 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":"tools/src/main/java/org/apache/kafka/tools/FeatureCommand.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3461b9b1815f0239253dfd43f2bf5e5d1277cd8eb3216bab9161b877ebf9eb4"}},{"ruleId":"D2","level":"warning","message":{"text":"SharePartition.findLastOffsetAcknowledgedAndMetadata (cognitive 23): SharePartition.findLastOffsetAcknowledgedAndMetadata has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, loops 4, 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":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":2794}}}],"partialFingerprints":{"codehealthFindingId/v1":"500bf0a976f346d704534366a6693e6500a91c89753effbf9131230e80ca0807"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncKafkaConsumer.processBackgroundEvents (cognitive 22): AsyncKafkaConsumer.processBackgroundEvents has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, error handling 3, loops 2, 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java"},"region":{"startLine":2352}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef68a03d3b7e2cbfd9474e829cae0ece25405cb62b7a0edd8a77985a4dac31a9"}},{"ruleId":"D2","level":"warning","message":{"text":"RackAwareTestAssignor.assign (cognitive 22): RackAwareTestAssignor.assign has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, loops 8 (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":"clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/consumer/RackAwareTestAssignor.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a5c491554ada454da436d23428341cc88be27a9ea4c98c5732d5db412b86e0"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkReceive.readFrom (cognitive 22): NetworkReceive.readFrom has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, 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":"clients/src/main/java/org/apache/kafka/common/network/NetworkReceive.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"389d3fe9e68f98ce8a5447160fb9dfd9d653ac3b18f231b63a532f5cd503d1b8"}},{"ruleId":"D2","level":"warning","message":{"text":"Protocol.schemaToBnfHtml (cognitive 22): Protocol.schemaToBnfHtml has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, 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":"clients/src/main/java/org/apache/kafka/common/protocol/Protocol.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14454a10b0e5b7b0432ba440f14a6c05f6395906426c11118bd8f81049721da"}},{"ruleId":"D2","level":"warning","message":{"text":"DeepRecordsIterator.\u003Cinit\u003E (cognitive 22): DeepRecordsIterator.\u003Cinit\u003E has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, boolean chains 2, error handling 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/record/internal/AbstractLegacyRecordBatch.java"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"957eee19dd4679ea9e559786e1e6082d0c09bd7c6f22a9981d63573391d64d1f"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultSslEngineFactory.createKeystore (cognitive 22): DefaultSslEngineFactory.createKeystore has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"clients/src/main/java/org/apache/kafka/common/security/ssl/DefaultSslEngineFactory.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae773ba1ec141498cb41904ebc25b54447b7a894af0b2f5e4fb25e2fb9ca181e"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsumeCallback.onCompletion (cognitive 22): ConsumeCallback.onCompletion has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, 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":"connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2fcc533585f33d9b8f202031bd9e5788d952203ff4f8f0513cc1ac0a88917ea"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigurationControlManager.describeConfigs (cognitive 22): ConfigurationControlManager.describeConfigs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, loops 9, 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":"metadata/src/main/java/org/apache/kafka/controller/ConfigurationControlManager.java"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"61fc9cc5f0c56bd459318a5675e6ca80b4fa4fea423512c35fdad39ca1b1b8f8"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigurationControlManager.validateAlterConfig (cognitive 22): ConfigurationControlManager.validateAlterConfig has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, error handling 2, loops 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/ConfigurationControlManager.java"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8dda2c2c24023274601c1993e53e8fa36fe3635ad1e9b2d3f63ef1e4e838f3"}},{"ruleId":"D2","level":"warning","message":{"text":"LogLoader.loadSegmentFiles (cognitive 22): LogLoader.loadSegmentFiles has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, error handling 8, 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogLoader.java"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"7513af18284c11918efb209ea5e95ac08b8449c17b23f4a5c8680b665a5c1249"}},{"ruleId":"D2","level":"warning","message":{"text":"LogValidator.assignOffsetsNonCompressed (cognitive 22): LogValidator.assignOffsetsNonCompressed has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, loops 3, 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogValidator.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0aa47312e654cc0ff4352b8d8988f82b83ca005455152c800a2f883b20e5974"}},{"ruleId":"D2","level":"warning","message":{"text":"LogValidator.validateBatch (cognitive 22): LogValidator.validateBatch has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19, boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogValidator.java"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec32f228bf78b1e901847b8f540d28bd091e4b098644029f76b13a333e8b93b"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalTopicManager.getTopicPartitionInfo (cognitive 22): InternalTopicManager.getTopicPartitionInfo has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, error handling 4, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopicManager.java"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6bb5bef2d8d7ce94c360e48d645333890351b9bd6bcf74276da7344dc99a32f"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalTopologyBuilder.setRegexMatchedTopicToStateStore (cognitive 22): InternalTopologyBuilder.setRegexMatchedTopicToStateStore has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, loops 9 (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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopologyBuilder.java"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19f3eea8455063d434ec6b07ca360732ee52a9cba9c2e9da99e2b1adf76a123"}},{"ruleId":"D2","level":"warning","message":{"text":"StoreChangelogReader.restoreChangelog (cognitive 22): StoreChangelogReader.restoreChangelog has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, error handling 9, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StoreChangelogReader.java"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5beb22c203c43f8ef5d968c6c5acd2e542f9143650ac8e22a1defda3ad9d7e9"}},{"ruleId":"D2","level":"warning","message":{"text":"InMemorySessionTransactionBuffer.flushToBase (cognitive 22): InMemorySessionTransactionBuffer.flushToBase has cognitive complexity 22 (threshold 15). Drivers by points: if/else 21, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/state/internals/InMemorySessionTransactionBuffer.java"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3949afd03524c973e86b283093cb11c77cbc8696e2d617dd2a3697d6cc1c46"}},{"ruleId":"D2","level":"warning","message":{"text":"LogicalSegmentIterator.maybeFillIterator (cognitive 22): LogicalSegmentIterator.maybeFillIterator has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, loops 5, ternaries 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/state/internals/LogicalSegmentIterator.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"d001c9f24db358e9f3dd7ce88b5ae6f5818fa196ac4ce405ba1acbdf3c19d05e"}},{"ruleId":"D2","level":"warning","message":{"text":"RocksDBVersionedStore.get (cognitive 22): RocksDBVersionedStore.get has cognitive complexity 22 (threshold 15). Drivers by points: if/else 21, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBVersionedStore.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7a27362ae31e84350cde61934e56e7300068e38456041bbdd26251a58d82ac"}},{"ruleId":"D2","level":"warning","message":{"text":"StagedMergeIterator.computeNext (cognitive 22): StagedMergeIterator.computeNext has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, ternaries 2, boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/state/internals/StagedMergeIterator.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ae03b378c4f165af38b40abadb50e6eb1363083dbf9aeb3e3e5ccc27a37445"}},{"ruleId":"D2","level":"warning","message":{"text":"SmokeTestDriver.verifyTAgg (cognitive 22): SmokeTestDriver.verifyTAgg has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, loops 6 (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":"streams/upgrade-system-tests-32/src/test/java/org/apache/kafka/streams/tests/SmokeTestDriver.java"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"e909ea90c3ea6dde2ab5a84e2b5fab95a0eb3548b89a0affb20287570481ac8e"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsumerPerformance.consume (cognitive 22): ConsumerPerformance.consume has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, loops 3, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/src/main/java/org/apache/kafka/tools/ConsumerPerformance.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9f389cc26d28445f31c7ce099dbd55196b76fdb9bb165c83e42844c83fcd22"}},{"ruleId":"D2","level":"warning","message":{"text":"EndToEndLatency.validateHeaders (cognitive 22): EndToEndLatency.validateHeaders has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8, ternaries 8, boolean chains 4, 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":"tools/src/main/java/org/apache/kafka/tools/EndToEndLatency.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"033fd2284647afee24b2496081ed1f3fa95285b4e52b5642788dbdf38c988e48"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifiableShareConsumer.run (cognitive 22): VerifiableShareConsumer.run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, loops 6, error handling 2, 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":"tools/src/main/java/org/apache/kafka/tools/VerifiableShareConsumer.java"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4723a88429d2d16b1588b33ef50e933f362c14c16961fd84c443a703f307e8c"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsumerRunnable.run (cognitive 22): ConsumerRunnable.run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9, loops 8, error handling 5 (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":"trogdor/src/main/java/org/apache/kafka/trogdor/workload/RoundTripWorkerBase.java"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b494a049f861beec6e39cdc3c671ed82eb5c7d8bf34c6b685f7f6dfbe1a2a59"}},{"ruleId":"D2","level":"warning","message":{"text":"DelayedShareFetch.completeRemoteStorageShareFetchRequest (cognitive 22): DelayedShareFetch.completeRemoteStorageShareFetchRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, ternaries 8, error handling 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/DelayedShareFetch.java"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d842b213359b0450656d39551c9a5a786520e997b05e726b0d347218d681b7"}},{"ruleId":"D2","level":"warning","message":{"text":"2.handleResponse (cognitive 21): 2.handleResponse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, 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":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":1995}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d5e61b812cf43f10eea2464409dc26b68d10fd6f902b5fe2e6a512f740c76d"}},{"ruleId":"D2","level":"warning","message":{"text":"3.handleResponse (cognitive 21): 3.handleResponse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, 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":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":2068}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c57acb1a1ec5e42bc5b256dc7702f07b568aafce415cdf422ffcf05156f6d1"}},{"ruleId":"D2","level":"warning","message":{"text":"17.handleResponse (cognitive 21): 17.handleResponse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, 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":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":3227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c40dab66a0dc4e5cfc87cba5d96d6943cc8239faa11e8884603a7165f96fe20"}},{"ruleId":"D2","level":"warning","message":{"text":"ShareConsumerImpl.collect (cognitive 21): ShareConsumerImpl.collect has cognitive complexity 21 (threshold 15). Drivers by points: if/else 20, 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumerImpl.java"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb086454d83eeeee4d2dadce165c52d63a8133ab7bd8e09707cd951c234702fe"}},{"ruleId":"D2","level":"warning","message":{"text":"Sender.run (cognitive 21): Sender.run has cognitive complexity 21 (threshold 15). Drivers by points: error handling 10, if/else 5, boolean chains 3, loops 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cdcb8a3bad5d4348be8c6283dc24f7def26b468b368828a27a62a7700ecead"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaProducer.waitOnMetadata (cognitive 21): KafkaProducer.waitOnMetadata has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, boolean chains 5, error handling 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"579c3c7f6de3dddb2e919ba2453ee912747ae69e9a0abca7e06b025ed020bc7c"}},{"ruleId":"D2","level":"warning","message":{"text":"SaslClientAuthenticator.authenticate (cognitive 21): SaslClientAuthenticator.authenticate has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, boolean chains 3, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/security/authenticator/SaslClientAuthenticator.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"1955345a516c1ea076fbe3cb9443ba7d8da234250dfadcdc4457cacaaf52cb2b"}},{"ruleId":"D2","level":"warning","message":{"text":"ChildFirstClassLoader.classpathToURLs (cognitive 21): ChildFirstClassLoader.classpathToURLs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, loops 6, error handling 2, 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":"clients/src/main/java/org/apache/kafka/common/utils/internals/ChildFirstClassLoader.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f383adb4bef4e4b7d4d52adde72fe3b89d93af281af25695eb4e0e0392d692f1"}},{"ruleId":"D2","level":"warning","message":{"text":"ChunkedBytesStream.skip (cognitive 21): ChunkedBytesStream.skip has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/utils/internals/ChunkedBytesStream.java"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"4599f49499a2ffbcbeb6782db5807b9d7f8dcb8789583ec1c250525651edb05f"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteLogManager.isRemoteSegmentWithinLeaderEpochs (cognitive 21): RemoteLogManager.isRemoteSegmentWithinLeaderEpochs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, boolean chains 4, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java"},"region":{"startLine":1746}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6027441d9a0aba8fb91cb7dad35c558ad2bfdc94e47bb274300bebd57b4a12"}},{"ruleId":"D2","level":"warning","message":{"text":"SinkUtils.parseSinkConnectorOffsets (cognitive 21): SinkUtils.parseSinkConnectorOffsets has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, error handling 5, 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":"connect/runtime/src/main/java/org/apache/kafka/connect/util/SinkUtils.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2a0014014be4323826e3c1db8e357d03a9ccf23d9df5d26882ff2c72a5b897"}},{"ruleId":"D2","level":"warning","message":{"text":"OffsetSyncStore.updateSyncArray (cognitive 21): OffsetSyncStore.updateSyncArray has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10, boolean chains 8, loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/mirror/src/main/java/org/apache/kafka/connect/mirror/OffsetSyncStore.java"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cfc6a5a559aef4cd7048e16b3f94397305369dda30d11f07720808f8dab5d55"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractWorkerSourceTask.execute (cognitive 21): AbstractWorkerSourceTask.execute has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, error handling 4, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/AbstractWorkerSourceTask.java"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"320dd35251ff1f90d172501381be14c24c677667942998222c5d7f75c16a06e5"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkerSinkTask.commitOffsets (cognitive 21): WorkerSinkTask.commitOffsets has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerSinkTask.java"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"42cc18d0479a45636eac7cc07b2b1ad3f6aaffc38513e17674253f611d55926f"}},{"ruleId":"D2","level":"warning","message":{"text":"MockAssignor.assign (cognitive 21): MockAssignor.assign has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, loops 10 (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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/assignor/MockAssignor.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"296937e0e98f525b3353e3f24aa6817f8e2aa9e34ab135b56b2f72b3529edc5d"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageDataGenerator.generateClassReader (cognitive 21): MessageDataGenerator.generateClassReader has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, boolean chains 3, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13f1c5f08e12b0a1e972986b473feae8a14a3fd342069d7d1e94e91da10a08d"}},{"ruleId":"D2","level":"warning","message":{"text":"AuthorizerBenchmark.prepareAclCache (cognitive 21): AuthorizerBenchmark.prepareAclCache has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9, ternaries 7, loops 5 (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":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/acl/AuthorizerBenchmark.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97ea2e387d532ddc1e9b12678bb0d4d712e5c695a79cd12117c6a28590d918d"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicationControlManager.electLeaders (cognitive 21): ReplicationControlManager.electLeaders has cognitive complexity 21 (threshold 15). Drivers by points: loops 11, if/else 10 (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/ReplicationControlManager.java"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1bdfcbc63ba0eefa3d1053bc81da0e29f58d00c05336ebee6d1cf1690b1a4b"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicationControlManager.updatePartitionDirectories (cognitive 21): ReplicationControlManager.updatePartitionDirectories has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, loops 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":"metadata/src/main/java/org/apache/kafka/controller/ReplicationControlManager.java"},"region":{"startLine":2441}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf81f978a6201662e3ca141f30bf78046287104ebd36b887ea43c7f795f07125"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaRaftMetrics.initialize (cognitive 21): KafkaRaftMetrics.initialize has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, 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":"raft/src/main/java/org/apache/kafka/raft/internals/KafkaRaftMetrics.java"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f014fce6c0f246e16d7f6c83f587d6a679be53ea03160472fb552006526f75"}},{"ruleId":"D2","level":"warning","message":{"text":"KTableKTableForeignKeyJoinIntegrationTest.joinShouldProduceNullsWhenValueHasNonMatchingForeignKey (cognitive 21): KTableKTableForeignKeyJoinIntegrationTest.joinShouldProduceNullsWhenValueHasNonMatchingForeignKey has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 15, if/else 6 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/KTableKTableForeignKeyJoinIntegrationTest.java"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9ff12bbd525f45942fc3becc5897fd674a1ab67bd441eecdf70ed3ed8db029"}},{"ruleId":"D2","level":"warning","message":{"text":"Graph.detectNegativeCycles (cognitive 21): Graph.detectNegativeCycles has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, loops 6, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/Graph.java"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"b089fcd2f2453e26fc4a7e3646178bb2486d593bfeb05552b21b939aaec1a256"}},{"ruleId":"D2","level":"warning","message":{"text":"HighAvailabilityTaskAssignor.balanceTasksOverThreads (cognitive 21): HighAvailabilityTaskAssignor.balanceTasksOverThreads has cognitive complexity 21 (threshold 15). Drivers by points: loops 10, if/else 9, boolean chains 2 (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/HighAvailabilityTaskAssignor.java"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6d45c0744dc46f0db681355867a2b325cc87f7791c3ca4633ddbff381ec89c"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskExecutorThread.runOnce (cognitive 21): TaskExecutorThread.runOnce has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, error handling 2, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/tasks/DefaultTaskExecutor.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"20302c13fc3e4168f003b70cfcdf15cb2c8f26a7b8789ed37483112011230691"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalTopologyBuilder.checkUnprovidedNames (cognitive 21): InternalTopologyBuilder.checkUnprovidedNames has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopologyBuilder.java"},"region":{"startLine":2330}}}],"partialFingerprints":{"codehealthFindingId/v1":"0640bf994817d2f567d0bdc5f45d2f3c827ceb1bbd67470bf1c58150b6d73a99"}},{"ruleId":"D2","level":"warning","message":{"text":"StoreChangelogReader.initializeChangelogs (cognitive 21): StoreChangelogReader.initializeChangelogs has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, loops 2, ternaries 2, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StoreChangelogReader.java"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb6b592e83dc9e95522f70832ec4b7b6fda32180852032b4b1139f7a4eb0f56"}},{"ruleId":"D2","level":"warning","message":{"text":"InMemoryTimeOrderedKeyValueChangeBuffer.evictWhile (cognitive 21): InMemoryTimeOrderedKeyValueChangeBuffer.evictWhile has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, ternaries 4, loops 2, 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/InMemoryTimeOrderedKeyValueChangeBuffer.java"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be9c26f1b99d7657ec8ca9a14a6a583fa1e392b5a72d96e189f7a43697623ba"}},{"ruleId":"D2","level":"warning","message":{"text":"RocksDBVersionedStore.maybePutToLatestValueStore (cognitive 21): RocksDBVersionedStore.maybePutToLatestValueStore has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21 (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":"streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBVersionedStore.java"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cacf62c657ba68d95bcbcd631edded8610293c39c1a3fa52c213934fbcf0f51"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaStreams.clientInstanceIds (cognitive 21): KafkaStreams.clientInstanceIds has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, error handling 3, loops 2, 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":"streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java"},"region":{"startLine":1918}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd61b24ec3f1c4872b2b75e6905895b9974d0123a4498899a7298d8f010441c"}},{"ruleId":"D2","level":"warning","message":{"text":"FeatureCommand.update (cognitive 21): FeatureCommand.update has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 12, if/else 5, 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":"tools/src/main/java/org/apache/kafka/tools/FeatureCommand.java"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eca40b956e40525ce5f7f5425b73f5116cb28f79028783239bbb9e79c183930"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigPostProcessor.\u003Cinit\u003E (cognitive 21): ConfigPostProcessor.\u003Cinit\u003E has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, boolean chains 6, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/src/main/java/org/apache/kafka/tools/ProducerPerformance.java"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"361889360bb28d93bfda284f153344dee81d5f8893108103bde8e063b267be9a"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeHeartbeat.handlePresentWorkers (cognitive 21): NodeHeartbeat.handlePresentWorkers has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"trogdor/src/main/java/org/apache/kafka/trogdor/coordinator/NodeManager.java"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"493d31bd0b4326eba1ec749e11637df1d6d15ac127146e3cc9eaf238bdc7fcca"}},{"ruleId":"D2","level":"warning","message":{"text":"SharePartition.countTerminalRecordsUpToNewLSO (cognitive 21): SharePartition.countTerminalRecordsUpToNewLSO has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, loops 4, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"334814471065510bb82becb6c9337a7bbc7e4e83f6af716e4a023a868cb7b729"}},{"ruleId":"D2","level":"warning","message":{"text":"SharePartitionManager.newContext (cognitive 21): SharePartitionManager.newContext has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartitionManager.java"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"194a0ceca35a03c28db8324d09bf33eba7ac2f960e9109c8436af2445d1df78c"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassicKafkaConsumer.assign (cognitive 20): ClassicKafkaConsumer.assign has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, ternaries 4, loops 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ClassicKafkaConsumer.java"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba3429e0429ba8f85c93a8b1203fe832251b3a2f98ba50eab9365cdb28079e4"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsumerPartitionAssignor.getAssignorInstances (cognitive 20): ConsumerPartitionAssignor.getAssignorInstances has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, error handling 3, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerPartitionAssignor.java"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a335fc3159184bb45d86cb16fdbecca2237d1b586b9122fbaeea2ada7b6dc72"}},{"ruleId":"D2","level":"warning","message":{"text":"RecordAccumulator.drainBatchesForOneNode (cognitive 20): RecordAccumulator.drainBatchesForOneNode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 3, ternaries 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/producer/internals/RecordAccumulator.java"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c403a46d8c8413847014eaa8fe8bed34edcc55a4876f1e5fa8d93baa5dd929"}},{"ruleId":"D2","level":"warning","message":{"text":"Sender.getExpiredInflightBatches (cognitive 20): Sender.getExpiredInflightBatches has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, loops 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":"clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"09937403d577606b270d074e3b32032f2bd330cee8dbe436f419d59661f2277f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigDef.compare (cognitive 20): ConfigDef.compare has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, ternaries 5, 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":"clients/src/main/java/org/apache/kafka/common/config/ConfigDef.java"},"region":{"startLine":1608}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6ab2acfc3740955509e2d4df61fcfa3d7e85ddda66325163cb9f819023be43"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigDef.toHtml (cognitive 20): ConfigDef.toHtml has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 3, 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":"clients/src/main/java/org/apache/kafka/common/config/ConfigDef.java"},"region":{"startLine":1737}}}],"partialFingerprints":{"codehealthFindingId/v1":"9885e26cb32621816a85fc2993fd4695ef3636618961d39e76f1fb5a7b62913f"}},{"ruleId":"D2","level":"warning","message":{"text":"Feature.validateDefaultValueAndLatestProductionValue (cognitive 20): Feature.validateDefaultValueAndLatestProductionValue has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, loops 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":"server-common/src/main/java/org/apache/kafka/server/common/Feature.java"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"90629ac3207d481752c0d5f0b637724e4a7722af0b55926f15960ea86f4306c6"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractWorkerSourceTask.sendRecords (cognitive 20): AbstractWorkerSourceTask.sendRecords has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, error handling 6, boolean chains 1, loops 1, ternaries 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/AbstractWorkerSourceTask.java"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"debaf676b74d249c7e76bc9c80dcf03f92dff6d92f3feaaf87fa2d94a7cdd027"}},{"ruleId":"D2","level":"warning","message":{"text":"CurrentAssignmentBuilder.computeNextAssignment (cognitive 20): CurrentAssignmentBuilder.computeNextAssignment has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, boolean chains 3, ternaries 3, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/CurrentAssignmentBuilder.java"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fe571dab2520db8e76b862d78b9654007fbe2da3e0c72c4d0630f388865317"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupMetadataManager.classicGroupLeaveToClassicGroup (cognitive 20): GroupMetadataManager.classicGroupLeaveToClassicGroup has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, error handling 4, match/switch 2, ternaries 2, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":8896}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8cd4254f3840b817fa8fe14c47c02143f647e776c2a2ec9815f018499abf76b"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupMetadataManager.classicGroupSyncToClassicGroup (cognitive 20): GroupMetadataManager.classicGroupSyncToClassicGroup has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":8120}}}],"partialFingerprints":{"codehealthFindingId/v1":"29142efd6b1b3db6b19dc535cc96099827be74329699639fe363d1882d74c13a"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionLog.read (cognitive 20): TransactionLog.read has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, loops 9, 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":"transaction-coordinator/src/main/java/org/apache/kafka/coordinator/transaction/TransactionLog.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"567cae0e9af524faedb54b7beca3baadc71f81b5ab96c8a3fc3e180f09c72ac0"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageDataGenerator.generateFieldHashCode (cognitive 20): MessageDataGenerator.generateFieldHashCode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java"},"region":{"startLine":1420}}}],"partialFingerprints":{"codehealthFindingId/v1":"21016623936695a3aa36848bdc4b7bf73879835d704d531a7c93dbfb2b32e0c8"}},{"ruleId":"D2","level":"warning","message":{"text":"ByteUtilsBenchmark.innerWriteUnsignedVarlongUnrolled (cognitive 20): ByteUtilsBenchmark.innerWriteUnsignedVarlongUnrolled has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20 (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":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/util/ByteUtilsBenchmark.java"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24b50948b4d3fc438b3a697bfe56fd95bcd92bea50129a2e87f3571c990c31b"}},{"ruleId":"D2","level":"warning","message":{"text":"ByteUtilsBenchmark.readUnsignedVarlongNetty (cognitive 20): ByteUtilsBenchmark.readUnsignedVarlongNetty has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20 (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":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/util/ByteUtilsBenchmark.java"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"35746d8a3fd431455bdf1869e084a8a4526b6e04be6cc808f32ad3033a50b0df"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicationControlManager.createPartitions (cognitive 20): ReplicationControlManager.createPartitions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, loops 3, error handling 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":"metadata/src/main/java/org/apache/kafka/controller/ReplicationControlManager.java"},"region":{"startLine":1905}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ef4b0ab38b2b8f959405d4573594b83ecf55b33ff88dfaf36a94c880a0776b"}},{"ruleId":"D2","level":"warning","message":{"text":"EventHandler.enqueue (cognitive 20): EventHandler.enqueue has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 2, ternaries 2, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-common/src/main/java/org/apache/kafka/queue/KafkaEventQueue.java"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc439d36e050ddd10d8032313238aa0fb67e5f447cc9233e79180123c16f5515"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalLog.read (cognitive 20): LocalLog.read has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 3, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"storage/src/main/java/org/apache/kafka/storage/internals/log/LocalLog.java"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"073adbf0128729b4583669110ed36934cb62d9066dca21e8af0544a72e51c046"}},{"ruleId":"D2","level":"warning","message":{"text":"LogManager.truncateTo (cognitive 20): LogManager.truncateTo has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 3, ternaries 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogManager.java"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"265b0b0cf983c731f092e3c118d7c41bc279e9531feda2a854734e2ad8426870"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryableStateIntegrationTest.verifyAllWindowedKeys (cognitive 20): QueryableStateIntegrationTest.verifyAllWindowedKeys has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, error handling 4, ternaries 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":"streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/QueryableStateIntegrationTest.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6b37ae59303f765fe01b8b437346827818a20321ddc10d94cd5d81d3ef73f6"}},{"ruleId":"D2","level":"warning","message":{"text":"RackAwareTaskAssignor.validateClientRack (cognitive 20): RackAwareTaskAssignor.validateClientRack has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/RackAwareTaskAssignor.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a27bc6a1b396667a3d5819b27d5b1992d5592dba01249917038f3e9c7f0fcd2"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalStreamsBuilder.rewriteSingleStoreSelfJoin (cognitive 20): InternalStreamsBuilder.rewriteSingleStoreSelfJoin has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 3, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/kstream/internals/InternalStreamsBuilder.java"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"44035f5fbcf52c389da1f94022ce7d03b404ffb03f6d24c02c250dc75669a620"}},{"ruleId":"D2","level":"warning","message":{"text":"KStreamImplJoin.join (cognitive 20): KStreamImplJoin.join has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 10, if/else 9, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"streams/src/main/java/org/apache/kafka/streams/kstream/internals/KStreamImplJoin.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"15797923c78766d439822ca5c4b1e394390500996fe4980ef6fac4d0b7360bf4"}},{"ruleId":"D2","level":"warning","message":{"text":"RocksDBStore.openRocksDB (cognitive 20): RocksDBStore.openRocksDB has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, loops 5, error handling 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBStore.java"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab49989c3cd7165980820a0ec714a38f02d1d9ae3e056709df93700446cbeaa"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamsResetter.maybeDeleteActiveConsumers (cognitive 20): StreamsResetter.maybeDeleteActiveConsumers has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, error handling 2, boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/src/main/java/org/apache/kafka/tools/StreamsResetter.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a75c1e3d7bb40e1c4d68a71e1d9cec47ebf5d520f7ab5364cd2d5ebefa6a35"}},{"ruleId":"D2","level":"warning","message":{"text":"PartitionsSpec.\u003Cinit\u003E (cognitive 20): PartitionsSpec.\u003Cinit\u003E has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 8, if/else 6, 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":"trogdor/src/main/java/org/apache/kafka/trogdor/workload/PartitionsSpec.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6c6cd34f8b95111bbd07d95b992bf92e48b616f64c01978d29936219fb8bf7"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionalClientDemo.main (cognitive 20): TransactionalClientDemo.main has cognitive complexity 20 (threshold 15). Drivers by points: error handling 10, loops 10 (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":"examples/src/main/java/kafka/examples/TransactionalClientDemo.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b878edbbb57f842254aa0cd339e268ce0b4257b0d08de383dd2d95a4b8a7c30"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiSurfaceScanner.scanJars (cognitive 19): ApiSurfaceScanner.scanJars has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, loops 3, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api-checker/core/src/main/java/org/apache/kafka/apicheck/ApiSurfaceScanner.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"081df928070f467f5a1dab5a20b788304c89b4b698e4046bd91e63329b00cda4"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoveMembersFromConsumerGroupResult.all (cognitive 19): RemoveMembersFromConsumerGroupResult.all has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 6 (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":"clients/src/main/java/org/apache/kafka/clients/admin/RemoveMembersFromConsumerGroupResult.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05f819fa0df3d0e844bd5025c1317925f999c2d9404c6f3d5222d18991d9089"}},{"ruleId":"D2","level":"warning","message":{"text":"HeartbeatResponseHandler.handle (cognitive 19): HeartbeatResponseHandler.handle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c62334800af58b349675a5be9577ffa6f0c0070a90e3f8e47477f5f690f195"}},{"ruleId":"D2","level":"warning","message":{"text":"ConstrainedAssignmentBuilder.assignRoundRobin (cognitive 19): ConstrainedAssignmentBuilder.assignRoundRobin has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractStickyAssignor.java"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5fba0da4ee929885a665832819711281750566ba68a1a156203834729677f3c"}},{"ruleId":"D2","level":"warning","message":{"text":"Sender.failBatch (cognitive 19): Sender.failBatch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"9058c5af29e0bd8eeac69f1b413bfce20b2b6d1c4005a7ac076d9176a2050e14"}},{"ruleId":"D2","level":"warning","message":{"text":"AddPartitionsToTxnHandler.handleResponse (cognitive 19): AddPartitionsToTxnHandler.handleResponse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 3, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java"},"region":{"startLine":1620}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3387cfb09c55ea5179277b96bbba1d8419e04053309cb72e58f0ddf170cdbb1"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigDef.toEnrichedRst (cognitive 19): ConfigDef.toEnrichedRst has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, loops 4, 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":"clients/src/main/java/org/apache/kafka/common/config/ConfigDef.java"},"region":{"startLine":1527}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5bc430532e6ff126cc57dbb115ab53f4e4790bf0b1017e9bd859afa60b5631c"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigTransformer.transform (cognitive 19): ConfigTransformer.transform has cognitive complexity 19 (threshold 15). Drivers by points: loops 9, if/else 8, boolean chains 2 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/config/ConfigTransformer.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"761b04b4325a5e7ed9a7e561a676b4a59c33990f092d374357021c6b4960180a"}},{"ruleId":"D2","level":"warning","message":{"text":"SslTransportLayer.transferFrom (cognitive 19): SslTransportLayer.transferFrom has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, error handling 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e749980946a59dd3e5cffe4e7b3645ae64802d7c038aad70d22f5701fab655"}},{"ruleId":"D2","level":"warning","message":{"text":"KerberosRule.apply (cognitive 19): KerberosRule.apply has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 4 (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":"clients/src/main/java/org/apache/kafka/common/security/kerberos/KerberosRule.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67fba403e9163690a145af48213b3e32d3550a26b05f6f9d17feb7a0d3f2f6d"}},{"ruleId":"D2","level":"warning","message":{"text":"Refresher.run (cognitive 19): Refresher.run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, error handling 6, loops 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":"clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/expiring/ExpiringCredentialRefreshingLogin.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e75da4d68f596b64dbe133ccdec5105bb38074cebeffdc7e0f402f44485b34"}},{"ruleId":"D2","level":"warning","message":{"text":"ByteUtils.readUnsignedVarint (cognitive 19): ByteUtils.readUnsignedVarint has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19 (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":"clients/src/main/java/org/apache/kafka/common/utils/internals/ByteUtils.java"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbb183b587356811cca790b8fc6c7281c77d13491f3f370389eb404e3e99ab5"}},{"ruleId":"D2","level":"warning","message":{"text":"ByteUtils.readUnsignedVarint (cognitive 19): ByteUtils.readUnsignedVarint has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19 (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":"clients/src/main/java/org/apache/kafka/common/utils/internals/ByteUtils.java"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"626a05caa57bd130d09e4401738a6cfda9fd895466f76935eae01745a0641104"}},{"ruleId":"D2","level":"warning","message":{"text":"ProduceRequestHandler.handleProduceResponse (cognitive 19): ProduceRequestHandler.handleProduceResponse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, match/switch 3, boolean chains 1 (nesting depth added 9). 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":"server/src/main/java/org/apache/kafka/server/share/dlq/ShareGroupDLQStateManager.java"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"9785d6942ce82910ca1a08670c6001f39348f33969b1d4b8c7e74ee92d952ecc"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteLogManager.read (cognitive 19): RemoteLogManager.read has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, ternaries 6, boolean chains 3, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java"},"region":{"startLine":1852}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2460df370f3971a4d182cd8d07f49d9a7a84f4568180c25d5307a2b60276d32"}},{"ruleId":"D2","level":"warning","message":{"text":"Cast.getOrBuildSchema (cognitive 19): Cast.getOrBuildSchema has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, 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":"connect/transforms/src/main/java/org/apache/kafka/connect/transforms/Cast.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb5dc5fb71cc5e13c44bce50da399ad14e5b5b9266c2ecaf4c93fa44dd4eb54"}},{"ruleId":"D2","level":"warning","message":{"text":"UniformHeterogeneousAssignmentBuilder.maybeRevokePartitions (cognitive 19): UniformHeterogeneousAssignmentBuilder.maybeRevokePartitions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, loops 7 (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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/UniformHeterogeneousAssignmentBuilder.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"a841405f8f266b855c9ad60beffac4f2f763c2fd9dbde2f3422dc1167c942aa3"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupMetadataManager.maybeUpdateRegularExpressions (cognitive 19): GroupMetadataManager.maybeUpdateRegularExpressions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":3566}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c302a54ad745abdf8de62a634fe72d2784694ead890e3a27567231ab05de3a"}},{"ruleId":"D2","level":"warning","message":{"text":"ByteUtilsBenchmark.innerUnsignedReadVarLong (cognitive 19): ByteUtilsBenchmark.innerUnsignedReadVarLong has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19 (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":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/util/ByteUtilsBenchmark.java"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"690a696f558466bc64eadeabca73dc721f5ebb81a361d8f93cbb58922cae1dc7"}},{"ruleId":"D2","level":"warning","message":{"text":"ByteUtilsBenchmark.readUnsignedVarintNetty (cognitive 19): ByteUtilsBenchmark.readUnsignedVarintNetty has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19 (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":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/util/ByteUtilsBenchmark.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c85ac0d656c41b43eae899c7cd9c9286893519e12800193794c22d44eaddbf"}},{"ruleId":"D2","level":"warning","message":{"text":"FeatureControlManager.reasonNotSupported (cognitive 19): FeatureControlManager.reasonNotSupported has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, 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":"metadata/src/main/java/org/apache/kafka/controller/FeatureControlManager.java"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"52fd4ddeef7e0ac55936a8b0116e36dd872799d70ff8529d1cd0891105af627c"}},{"ruleId":"D2","level":"warning","message":{"text":"PartitionReassignmentReplicas.maybeCompleteReassignment (cognitive 19): PartitionReassignmentReplicas.maybeCompleteReassignment has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, loops 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":"metadata/src/main/java/org/apache/kafka/controller/PartitionReassignmentReplicas.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"329ef200d656c46c255cca7e1b8d3364c181903e036cebe74cb19375ba6483a8"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicationControlManager.createTopics (cognitive 19): ReplicationControlManager.createTopics has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, error handling 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":"metadata/src/main/java/org/apache/kafka/controller/ReplicationControlManager.java"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5c21b8316b3590adb14a72a3125d0c5f5cc051d1680e4cfd11a06f33964049"}},{"ruleId":"D2","level":"warning","message":{"text":"Cleaner.cleanSegments (cognitive 19): Cleaner.cleanSegments has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 10, if/else 4, loops 3, 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/Cleaner.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"25adee05a59d0173f3b6c806dd4c00ba4c98edcf68b490750dc624a969a6f25a"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryableStateIntegrationTest.verifyAllKVKeys (cognitive 19): QueryableStateIntegrationTest.verifyAllKVKeys has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, error handling 4, ternaries 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":"streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/QueryableStateIntegrationTest.java"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff500cab1945aa6919edb454c5d2a308c446c1117f196c8fe1a7a7f5fdf5caf"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyStickyTaskAssignor.assignActive (cognitive 19): LegacyStickyTaskAssignor.assignActive has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, loops 6, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/LegacyStickyTaskAssignor.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e4d71fb31f00f647ff565a220861ba44cce36189ebfd9c2d7fbe8cc7528233"}},{"ruleId":"D2","level":"warning","message":{"text":"RackAwareTaskAssignor.populateTopicsToDescribe (cognitive 19): RackAwareTaskAssignor.populateTopicsToDescribe has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, loops 6, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/RackAwareTaskAssignor.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"275fb8f228e2619d95ffd22ad609e58b7b2ca233a9094b5e83bbc5c8221ebfc9"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalStateManagerImpl.commit (cognitive 19): GlobalStateManagerImpl.commit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, loops 5, error handling 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/GlobalStateManagerImpl.java"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e64bcb11d254325f6cc44260f3899fdd618501fa1ac7df0a90951cdf8ac5fd"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalTopicManager.validate (cognitive 19): InternalTopicManager.validate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 3, loops 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopicManager.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6794e886fd5f42935e7a188242c44626270237c973d509c92f12f8282dcd29"}},{"ruleId":"D2","level":"warning","message":{"text":"RepartitionTopics.setRepartitionSourceTopicPartitionCount (cognitive 19): RepartitionTopics.setRepartitionSourceTopicPartitionCount has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, loops 6, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/RepartitionTopics.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da50a6e404999fddfef27daeb63096f92b3cad7e6d82dcfacda5150aa94c0e8"}},{"ruleId":"D2","level":"warning","message":{"text":"StateDirectory.clean (cognitive 19): StateDirectory.clean has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, boolean chains 3, error handling 3, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StateDirectory.java"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"83bcb9b44f2fdaa4642589c2641dfd905db731158c083736afecef47f88d5366"}},{"ruleId":"D2","level":"warning","message":{"text":"StateDirectory.maybeCleanEmptyNamedTopologyDirs (cognitive 19): StateDirectory.maybeCleanEmptyNamedTopologyDirs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, error handling 4, boolean chains 2, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StateDirectory.java"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2375959763fab0a4b5519cfed4e8215ede6827d8fc4fe87a3086121dbc625d"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamTask.punctuate (cognitive 19): StreamTask.punctuate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, error handling 6, loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamTask.java"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"608ebbe1644a9d6d104c67f9a4da9028fa15d6739805565f97b03eae2556a86f"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamsPartitionAssignor.assign (cognitive 19): StreamsPartitionAssignor.assign has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, error handling 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsPartitionAssignor.java"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d3e868afd382b5f9477e733158b54ccfaa3ac4b82306b8a203cca15ed8fb72"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskManager.closeAndRecycleTasks (cognitive 19): TaskManager.closeAndRecycleTasks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, error handling 6, loops 4 (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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f0e991c970a46f2b7772dda7545d9d6e21a38db6aa93e38905dcdbe7eea59f"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskAssignmentUtils.optimizeRackAwareStandbyTasks (cognitive 19): TaskAssignmentUtils.optimizeRackAwareStandbyTasks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, loops 6, boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/assignment/TaskAssignmentUtils.java"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"280ddef4a8fb01d4058df5701507c341f7393806d90fd806711c81be08e1c616"}},{"ruleId":"D2","level":"warning","message":{"text":"KStreamSlidingWindowAggregateProcessor.processEarly (cognitive 19): KStreamSlidingWindowAggregateProcessor.processEarly has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 4, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"streams/src/main/java/org/apache/kafka/streams/kstream/internals/KStreamSlidingWindowAggregate.java"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9216c8847b5360f137c97f2bdf6e103fce30aacc8ff9f0ad23f94d86c39768"}},{"ruleId":"D2","level":"warning","message":{"text":"KTableSourceProcessor.process (cognitive 19): KTableSourceProcessor.process has cognitive complexity 19 (threshold 15). Drivers by points: if/else 19 (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":"streams/src/main/java/org/apache/kafka/streams/kstream/internals/KTableSource.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd0b253559dab5ad978e4f79eb1eb691c9553afe0d586b2f043818ff91a0373"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalStateStoreProvider.stores (cognitive 19): GlobalStateStoreProvider.stores has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/state/internals/GlobalStateStoreProvider.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0afbc3224eca4e66b902505fb143375f2c4d0fa1208d5fd3876da8ded602b63"}},{"ruleId":"D2","level":"warning","message":{"text":"ShareConsumerPerformance.consumeRecordsForSingleShareConsumer (cognitive 19): ShareConsumerPerformance.consumeRecordsForSingleShareConsumer has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, loops 3, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/src/main/java/org/apache/kafka/tools/ShareConsumerPerformance.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"36af1ab4baebeb09ab4ca351f95a034620d8863c4062c274303cf32467727b74"}},{"ruleId":"D2","level":"warning","message":{"text":"CoordinatorClient.prettyPrintTaskInfo (cognitive 19): CoordinatorClient.prettyPrintTaskInfo has cognitive complexity 19 (threshold 15). Drivers by points: if/else 18, 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":"trogdor/src/main/java/org/apache/kafka/trogdor/coordinator/CoordinatorClient.java"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"554ee74dc78c910c71244af8368e7f669614d436cca6284393e0d9b7d6c250be"}},{"ruleId":"D2","level":"warning","message":{"text":"SharePartition.releaseAcquiredRecordsForPerOffsetBatch (cognitive 19): SharePartition.releaseAcquiredRecordsForPerOffsetBatch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, ternaries 6, boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":1138}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee9f5c9fcbe0ad133d8abfc78b1a6c8bd14c2046121df36f36e097adb70f76a"}},{"ruleId":"D2","level":"warning","message":{"text":"6.handleResponse (cognitive 18): 6.handleResponse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":2263}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2202dfa09bd098e4f7d31f3d482de9e69fb3af2c574fdd2e4b3ab50436ac84a"}},{"ruleId":"D2","level":"warning","message":{"text":"Acknowledgements.maybeOptimiseAcknowledgeTypes (cognitive 18): Acknowledgements.maybeOptimiseAcknowledgeTypes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/Acknowledgements.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c1a6f887343d4ff072b779d6e27f42118ec7433568a0f87f723b40341d47e2"}},{"ruleId":"D2","level":"warning","message":{"text":"ProducerConfig.postProcessAndValidateIdempotenceConfigs (cognitive 18): ProducerConfig.postProcessAndValidateIdempotenceConfigs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/producer/ProducerConfig.java"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"7134ad11c9dd8c45d9621c563834c3b9e361ba1ceec69c40562d6e4c5d3066b0"}},{"ruleId":"D2","level":"warning","message":{"text":"MetricsDuringTopicCreationDeletionTest.createAndDeleteTopics (cognitive 18): MetricsDuringTopicCreationDeletionTest.createAndDeleteTopics has cognitive complexity 18 (threshold 15). Drivers by points: error handling 6, if/else 6, loops 5, 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":"clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/MetricsDuringTopicCreationDeletionTest.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b0854c5edb2f38bf1665613e0f1bb29d9b0a041ebed8a0e57da31900c17c6e"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkClient.handleApiVersionsResponse (cognitive 18): NetworkClient.handleApiVersionsResponse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/NetworkClient.java"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47c60d24d8fbcd9bbb22a0a72243e4e819a66b1555ee1a012d9753dae84f277"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkClientUtils.sendAndReceive (cognitive 18): NetworkClientUtils.sendAndReceive has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, 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":"clients/src/main/java/org/apache/kafka/clients/NetworkClientUtils.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b2d406014515abc6ce1560d7222cc97abfc0a49af15569b5af01bbd151b5fc"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigDef.getConfigValue (cognitive 18): ConfigDef.getConfigValue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, ternaries 2, match/switch 1 (nesting depth added 9). 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":"clients/src/main/java/org/apache/kafka/common/config/ConfigDef.java"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"830b42276385a8960772bffd93b739cd7d26cdad4e536e2e077fff21c0e7a886"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.forConsumer (cognitive 18): Builder.forConsumer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/requests/ShareFetchRequest.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82bd06096626a8b253ef7d7efc44a1fceb088a1a3b9d388ee27f1863524c571"}},{"ruleId":"D2","level":"warning","message":{"text":"SaslServerAuthenticator.authenticate (cognitive 18): SaslServerAuthenticator.authenticate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 4, boolean chains 2, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/security/authenticator/SaslServerAuthenticator.java"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39b707367be662f598ab9a6ab594bc47fc90ab1306d6f0e17aa670441b275dc"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaClusterTestKit.formatNode (cognitive 18): KafkaClusterTestKit.formatNode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, loops 5, 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":"test-common/test-common-runtime/src/main/java/org/apache/kafka/common/test/KafkaClusterTestKit.java"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3b71554d962aa5b060bd97fce657d586ce6166498c1d0947ae3877410ecc80"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientQuotaManager.updateQuotaTypes (cognitive 18): ClientQuotaManager.updateQuotaTypes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 6, ternaries 2 (nesting depth added 2). 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":"server/src/main/java/org/apache/kafka/server/quota/ClientQuotaManager.java"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3eeff7d9724c3f2a922e9af9c62f1c391ceeb2d3552269748bbec1a4bda3c01"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicThreadPool.validateReconfiguration (cognitive 18): DynamicThreadPool.validateReconfiguration has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/java/org/apache/kafka/server/DynamicThreadPool.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"64620a7b3366598d5c00e5d352112968f906a20f65ac176e628a65d1cb74c21f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectSchema.validateValue (cognitive 18): ConnectSchema.validateValue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, loops 5, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/api/src/main/java/org/apache/kafka/connect/data/ConnectSchema.java"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1b01267d0e000f003b6f3a59a4a2a479b90cdb9693536c84fd53211f0131a2"}},{"ruleId":"D2","level":"warning","message":{"text":"ValueParser.parseMap (cognitive 18): ValueParser.parseMap has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 2, ternaries 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":"connect/api/src/main/java/org/apache/kafka/connect/data/Values.java"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5bf9103f4ae2ca0ba03a1301348bde627558f95b4fec64ad8b21a07fa50bb3"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaConfigBackingStore.processTargetStateRecord (cognitive 18): KafkaConfigBackingStore.processTargetStateRecord has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 2, error handling 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":"connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9bf651bcbddc21020750368eea0e515b977f2ec5cc328775c223d0543feec9"}},{"ruleId":"D2","level":"warning","message":{"text":"TimestampConverter.applyWithSchema (cognitive 18): TimestampConverter.applyWithSchema has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, loops 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":"connect/transforms/src/main/java/org/apache/kafka/connect/transforms/TimestampConverter.java"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"1978bce1afe6c92a86ea0e8c362e2745064472013b92242d60ee358ecf567dfd"}},{"ruleId":"D2","level":"warning","message":{"text":"MirrorCheckpointTask.syncGroupOffset (cognitive 18): MirrorCheckpointTask.syncGroupOffset has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, loops 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":"connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorCheckpointTask.java"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a6f4029b71b66bc62df5f9b5432ac4c0f91561208ed1253aa114e62c36ecd9"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsumerGroup.subscriptionType (cognitive 18): ConsumerGroup.subscriptionType has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, loops 5, 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/ConsumerGroup.java"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"36831d0c1d35277eea0c9df63545ceebb666427ea168f07593ce156ee3989549"}},{"ruleId":"D2","level":"warning","message":{"text":"StickyTaskAssignor.assignActive (cognitive 18): StickyTaskAssignor.assignActive has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/assignor/StickyTaskAssignor.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"3447a34ed842899900f490060c756fff1b85069c95853e777d3761f2a4840dd6"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupMetadataManager.shareGroupBuildPartitionDeleteRequest (cognitive 18): GroupMetadataManager.shareGroupBuildPartitionDeleteRequest has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":9070}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c489bd62297655e99e75bf82475394eb963c1c9c139ba1f622aaa876aa088b"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionMetadata.completeTransitionTo (cognitive 18): TransactionMetadata.completeTransitionTo has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, boolean chains 8, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"transaction-coordinator/src/main/java/org/apache/kafka/coordinator/transaction/TransactionMetadata.java"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ca48af4cdbdb7a1d68a7ed9a69230a01cca044eed8e8397a29070e840bcc38"}},{"ruleId":"D2","level":"warning","message":{"text":"BrokersToElrs.update (cognitive 18): BrokersToElrs.update has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, 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":"metadata/src/main/java/org/apache/kafka/controller/BrokersToElrs.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6507ab4db726a4caeefb3fdb8e7acdff6054c1c72cc4e1edf68ae793e23d76"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientQuotaControlManager.alterClientQuotaEntity (cognitive 18): ClientQuotaControlManager.alterClientQuotaEntity has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, loops 1, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/ClientQuotaControlManager.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"453a57ffbe906070d2c9551867747139b76076a5a716647f0f446d05a1b7d68b"}},{"ruleId":"D2","level":"warning","message":{"text":"QuorumMetaLogListener.handleCommit (cognitive 18): QuorumMetaLogListener.handleCommit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, error handling 5, loops 5 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/QuorumController.java"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e5c94856852107ce16b11da9c2805b97ffcced590565ec6420f2062f78e3cf"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicationControlManager.generateLeaderAndIsrUpdates (cognitive 18): ReplicationControlManager.generateLeaderAndIsrUpdates has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, loops 4, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/ReplicationControlManager.java"},"region":{"startLine":2050}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fd378babf3072f233b17c9722696c7ab1de2bdb91d959c17f48ed076bea7a4"}},{"ruleId":"D2","level":"warning","message":{"text":"MetadataDelta.apply (cognitive 18): MetadataDelta.apply has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18. 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":"metadata/src/main/java/org/apache/kafka/image/MetadataDelta.java"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"499ee0f7dbfa2d1d8e12890406ae5cf0fd4be40e7e1ebd07ccd9aeb14e8c1e3b"}},{"ruleId":"D2","level":"warning","message":{"text":"RackList.place (cognitive 18): RackList.place has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, 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":"metadata/src/main/java/org/apache/kafka/metadata/placement/StripedReplicaPlacer.java"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"40586d044dcfc58004bcacbd39ee9396f13d2ae47140c027d0182816cf588e4d"}},{"ruleId":"D2","level":"warning","message":{"text":"PerMechanismData.\u003Cinit\u003E (cognitive 18): PerMechanismData.\u003Cinit\u003E has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 6, loops 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/metadata/storage/ScramParser.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb000cb73829f2fae34acea0532c484e44560c4eab4ff5f952d3f95cdd860cc1"}},{"ruleId":"D2","level":"warning","message":{"text":"KRaftMetadataCache.describeTopicResponse (cognitive 18): KRaftMetadataCache.describeTopicResponse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, error handling 5, 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":"metadata/src/main/java/org/apache/kafka/metadata/KRaftMetadataCache.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"783b991d33c854d92fe0f301074d3004b244a397db4ad14728adb72027e78699"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalLog.roll (cognitive 18): LocalLog.roll has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 3, 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LocalLog.java"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ccf4516435e95f3444ae0b0b5e5949781b5df9b51c203baaacc82c7d1e9d11"}},{"ruleId":"D2","level":"warning","message":{"text":"LogManager.loadLog (cognitive 18): LogManager.loadLog has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, ternaries 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogManager.java"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"db74a248d749bb0e1cb9c21483e45684e99c6afbe1edc9a0e616badf62c944d4"}},{"ruleId":"D2","level":"warning","message":{"text":"ProducerAppendInfo.checkSequence (cognitive 18): ProducerAppendInfo.checkSequence has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"storage/src/main/java/org/apache/kafka/storage/internals/log/ProducerAppendInfo.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af54bc3a69c0f713fbc2d8c1f1b2bf446db84100cbbb408940f705163e94e42"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteIndexCache.init (cognitive 18): RemoteIndexCache.init has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 4, 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/RemoteIndexCache.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"95fff79e6d0d2a736688e0a0a444fe737764f85b7c79e34b56d633cc604d6b21"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalTopicManager.doValidateTopic (cognitive 18): InternalTopicManager.doValidateTopic has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, error handling 6, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopicManager.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99fa27f3e55006b96423ef519a93d02a74c52f7f0a32fd083e103c22bab7297"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskExecutor.commitOffsetsOrTransaction (cognitive 18): TaskExecutor.commitOffsetsOrTransaction has cognitive complexity 18 (threshold 15). Drivers by points: error handling 12, if/else 5, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskExecutor.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"105d28503de0b54d0c66bbb128348b0d405abf67ebf4b8dd8211b2a2feb166fa"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskManager.maybeThrowTaskExceptions (cognitive 18): TaskManager.maybeThrowTaskExceptions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7852b986ef309e9c168ecd729263b466b7ba2247350d162edfb5ca2772c65c4"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalStreamsBuilder.mergeRepartitionTopics (cognitive 18): InternalStreamsBuilder.mergeRepartitionTopics has cognitive complexity 18 (threshold 15). Drivers by points: loops 13, if/else 5 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/kstream/internals/InternalStreamsBuilder.java"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b505e4ea463326e203b773d3a6c9255eb0b3055991d9b8443b6d6a3870e7fb7"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyCheckpointingStateStore.migrateLegacyOffsets (cognitive 18): LegacyCheckpointingStateStore.migrateLegacyOffsets has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, loops 4, error handling 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/LegacyCheckpointingStateStore.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63d9ede7875e3692b30b6355077420056840420b307ec70c74280e979a7659d"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryNavigableLRUCache.getIterator (cognitive 18): MemoryNavigableLRUCache.getIterator has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 13, if/else 4, 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/MemoryNavigableLRUCache.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"736cf6db1883ba5e5a0a8c9e2964346d90f641b4c95796c2e2f6f61bc8ffafae"}},{"ruleId":"D2","level":"warning","message":{"text":"SmokeTestDriver.verify (cognitive 18): SmokeTestDriver.verify has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, 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":"streams/upgrade-system-tests-32/src/test/java/org/apache/kafka/streams/tests/SmokeTestDriver.java"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f1248d010afad16ebe3560642eff4a8becce9d42178ff426fef0c096cae132"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamsGroupService.maybeDeleteInternalTopics (cognitive 18): StreamsGroupService.maybeDeleteInternalTopics has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, error handling 5, boolean chains 2, 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":"tools/src/main/java/org/apache/kafka/tools/streams/StreamsGroupCommand.java"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ec859366d71918f4b8c893855725c8b52ada27f76beaef5e35736cb12315f4"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigCommand.getAllClientQuotasConfigs (cognitive 18): ConfigCommand.getAllClientQuotasConfigs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, ternaries 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/src/main/java/org/apache/kafka/tools/ConfigCommand.java"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a658205a48691c72e6f762bf7f86dc01af3ca1653861e3ff3b78216a96a142"}},{"ruleId":"D2","level":"warning","message":{"text":"FeatureCommand.handleFeatureDependencies (cognitive 18): FeatureCommand.handleFeatureDependencies has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, error handling 4, 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":"tools/src/main/java/org/apache/kafka/tools/FeatureCommand.java"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f421094dbd9fad015fae708d9461db43cbaa7bf6be6cf2806a55413cad9ed33"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaApisBuilder.build (cognitive 18): KafkaApisBuilder.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/builders/KafkaApisBuilder.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb2cca6bd2223c43b35bf75ca1bf54289ded3b9615246114cc9c9f425d62079"}},{"ruleId":"D2","level":"warning","message":{"text":"SharePartition.releaseAcquisitionLockOnTimeoutForPerOffsetBatch (cognitive 18): SharePartition.releaseAcquisitionLockOnTimeoutForPerOffsetBatch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, ternaries 2, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":3083}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a2c45f17c207ebb1cfbe64ba1d0e08674e6d8b16d7b6c001ca003cf011c84d"}},{"ruleId":"D2","level":"warning","message":{"text":"ListOffsetsHandler.handleResponse (cognitive 17): ListOffsetsHandler.handleResponse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, ternaries 5, loops 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":"clients/src/main/java/org/apache/kafka/clients/admin/internals/ListOffsetsHandler.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b51306a35596c344bd1ee540f8e7799487d1030aec8d532bc6349945552c43"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractCoordinator.ensureCoordinatorReady (cognitive 17): AbstractCoordinator.ensureCoordinatorReady has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc7c16305500058f2f68ed3dfd2e8361986971170543e1a81c88e5812b7d354"}},{"ruleId":"D2","level":"warning","message":{"text":"GeneralAssignmentBuilder.assignOwnedPartitions (cognitive 17): GeneralAssignmentBuilder.assignOwnedPartitions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, loops 7, 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractStickyAssignor.java"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7521a221fc1a8df39b3d7d28e9093e9fbe19881172a63e2e7219e24566baac"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsumerCoordinator.fetchCommittedOffsets (cognitive 17): ConsumerCoordinator.fetchCommittedOffsets has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a16b02300cd3adf4e293810c5ce9c15f9816a796efe29606124959459297bd"}},{"ruleId":"D2","level":"warning","message":{"text":"OffsetFetcherUtils.handleListOffsetResponse (cognitive 17): OffsetFetcherUtils.handleListOffsetResponse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6, ternaries 5, loops 3, match/switch 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/OffsetFetcherUtils.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ca7cbf49af1bcc833a676325b11eb6c8942ce7521f988945fea474c21c4b1e"}},{"ruleId":"D2","level":"warning","message":{"text":"ShareConsumeRequestManager.commitAsync (cognitive 17): ShareConsumeRequestManager.commitAsync has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f72d788f6f192973038d7544ed33f4fad9e1b58a7adeb23e1f361fcc1d66a7"}},{"ruleId":"D2","level":"warning","message":{"text":"ShareInFlightBatch.renew (cognitive 17): ShareInFlightBatch.renew has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 3, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareInFlightBatch.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0ef2addb8385c36de3b3a8fb8f207775b41ece02ddb8769e32e0f5407f7857"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaProducer.doSend (cognitive 17): KafkaProducer.doSend has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, error handling 7, boolean chains 1, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8bea64b7876369705d3f5c7518474af48d0c4d0046b2f4da7b620b89879a17"}},{"ruleId":"D2","level":"warning","message":{"text":"Policy.validate (cognitive 17): Policy.validate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/clients-integration-tests/src/test/java/org/apache/kafka/clients/CreateTopicsRequestWithPolicyTest.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb35ac8ac6cef9f429fb0b60571e66229bf337a3cf8cf7eae9992c278644639f"}},{"ruleId":"D2","level":"warning","message":{"text":"FetchRequestData.toString (cognitive 17): FetchRequestData.toString has cognitive complexity 17 (threshold 15). Drivers by points: loops 10, if/else 7 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/FetchSessionHandler.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aefb9c43c387b682b57a9bb5ed13cdaa81d856fe50d425bcfb018f8323543f1"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkClient.cancelInFlightRequests (cognitive 17): NetworkClient.cancelInFlightRequests has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/NetworkClient.java"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"755c2c32976af5831a3cf79de0d13358a77d435c0ca8f71ecc73570267a0c0e9"}},{"ruleId":"D2","level":"warning","message":{"text":"Selector.poll (cognitive 17): Selector.poll has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 5, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/network/Selector.java"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a764229c323d04772b2bf75ff450e801a11443d0341bb464836e02d5b725654"}},{"ruleId":"D2","level":"warning","message":{"text":"ScramSaslClient.evaluateChallenge (cognitive 17): ScramSaslClient.evaluateChallenge has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, error handling 7, boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/security/scram/internals/ScramSaslClient.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfc269dd7b459f11214c1373b4404f2ef9e67b33ce4fd2b5dac171e83b6b320"}},{"ruleId":"D2","level":"warning","message":{"text":"SslEngineValidator.handshake (cognitive 17): SslEngineValidator.handshake has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, match/switch 5, 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":"clients/src/main/java/org/apache/kafka/common/security/ssl/SslFactory.java"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"6199a045440c5b1fab5380a0f9331f633c85e3a4d6976b478c3975f0009256fd"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.build (cognitive 17): Builder.build has cognitive complexity 17 (threshold 15). Drivers by points: loops 8, error handling 5, if/else 4 (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test-common/test-common-runtime/src/main/java/org/apache/kafka/common/test/KafkaClusterTestKit.java"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef905bc78dd674e4d899edf4332d9e77af6c868f78a4495908bf619ef291fa6"}},{"ruleId":"D2","level":"warning","message":{"text":"MockController.createTopics (cognitive 17): MockController.createTopics has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, error handling 3, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test-common/test-common-runtime/src/main/java/org/apache/kafka/common/test/MockController.java"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"591b6f7e78a02faaf4e4f430c47820d33d31c5cc6606b9cd196e9dcc899e0ed2"}},{"ruleId":"D2","level":"warning","message":{"text":"Cluster.\u003Cinit\u003E (cognitive 17): Cluster.\u003Cinit\u003E has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, loops 7, 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":"clients/src/main/java/org/apache/kafka/common/Cluster.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"06de20224e05990d4d3cb5f482b4150eb7c39ceea7f7ca24e89ff06875f73dfe"}},{"ruleId":"D2","level":"warning","message":{"text":"PersisterStateManagerHandler.handleFindCoordinatorResponse (cognitive 17): PersisterStateManagerHandler.handleFindCoordinatorResponse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, match/switch 3, boolean chains 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df1426511ededcf19c3bc3c959d4ccd13bb29c5959c3a59ddd293ee9caac0dd"}},{"ruleId":"D2","level":"warning","message":{"text":"ProduceRequestHandler.handleCreateTopicsResponse (cognitive 17): ProduceRequestHandler.handleCreateTopicsResponse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, error handling 3, match/switch 3 (nesting depth added 10). 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":"server/src/main/java/org/apache/kafka/server/share/dlq/ShareGroupDLQStateManager.java"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"214783280cc53b5b6999406cb4ede4cac3cbeee8dc67f17df1c66eb44d2987f1"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsumerTask.maybeMarkUserPartitionsAsReady (cognitive 17): ConsumerTask.maybeMarkUserPartitionsAsReady has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/ConsumerTask.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fcb64be889d3d0058316aeed30116a49cc11ba9ff30ee1eec8f870225b29db"}},{"ruleId":"D2","level":"warning","message":{"text":"TopicBasedRemoteLogMetadataManager.initializeResources (cognitive 17): TopicBasedRemoteLogMetadataManager.initializeResources has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, error handling 5, 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":"storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/TopicBasedRemoteLogMetadataManager.java"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"a026a4b2252696b45cc77befc5af93b8e81ab2f167c15bb2a9d4ea3985533caa"}},{"ruleId":"D2","level":"warning","message":{"text":"IncrementalCooperativeAssignor.performTaskAssignment (cognitive 17): IncrementalCooperativeAssignor.performTaskAssignment has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/IncrementalCooperativeAssignor.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0ccd24d08ad2505bb56c1ed2862af4971236bb75818409dccfb761a1da4254"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.build (cognitive 17): Builder.build has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntime.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"46df69eb77fbf23d0e2c491985b8e5746344bf57890d7d593558e63b0753fe6e"}},{"ruleId":"D2","level":"warning","message":{"text":"UniformHeterogeneousAssignmentBuilder.balanceTopic (cognitive 17): UniformHeterogeneousAssignmentBuilder.balanceTopic has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 5, 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/UniformHeterogeneousAssignmentBuilder.java"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"df633b0080d1cd2e79e27aec97d18e7979548ab3153989ac1df5a96f4c9ddd1c"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupMetadataManager.classicGroupJoinToConsumerGroup (cognitive 17): GroupMetadataManager.classicGroupJoinToConsumerGroup has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, boolean chains 3, ternaries 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":2653}}}],"partialFingerprints":{"codehealthFindingId/v1":"2089f146136d0b356010b73f2f74943f9715917ccc9a6992986a546a4f9b66e7"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupMetadataManager.getOrMaybeSubscribeStaticConsumerGroupMember (cognitive 17): GroupMetadataManager.getOrMaybeSubscribeStaticConsumerGroupMember has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, ternaries 6, 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":3338}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48f7854d2b6d30d09d548c7237ad7d0441a21642085fd94d3bc897c4b186cea"}},{"ruleId":"D2","level":"warning","message":{"text":"FieldDomain.validate (cognitive 17): FieldDomain.validate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/checker/FieldDomain.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca54d8322dafba7ab35b32d85111be0a8c5ca194f31d02ad2a58707dfe979074"}},{"ruleId":"D2","level":"warning","message":{"text":"TestLinearWriteSpeed.main (cognitive 17): TestLinearWriteSpeed.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/log/TestLinearWriteSpeed.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"7847c9a8f30f14e38c7a07ce085bc72e571ebe78641ef5a1e5eb4990741f4b54"}},{"ruleId":"D2","level":"warning","message":{"text":"ClusterControlManager.replayRegistrationChange (cognitive 17): ClusterControlManager.replayRegistrationChange has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17 (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":"metadata/src/main/java/org/apache/kafka/controller/ClusterControlManager.java"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f97b67c1bfc3984dc8b39815f7d880d2e7f93ac2603c0bfc8f411b532a70cb"}},{"ruleId":"D2","level":"warning","message":{"text":"QuorumController.appendRecords (cognitive 17): QuorumController.appendRecords has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 2, 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":"metadata/src/main/java/org/apache/kafka/controller/QuorumController.java"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b64780b629c4fcbf4dfcc52cb77e76198be79dbd48b35b73f7bc555ea3057d4"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicVoter.parse (cognitive 17): DynamicVoter.parse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, error handling 3, boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"raft/src/main/java/org/apache/kafka/raft/DynamicVoter.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cafaca9993b8e0a16745cbbc65e85a6578b44bcb3fc77b1542867d0eeb08d9a"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaRaftClient.handleFetchSnapshotResponse (cognitive 17): KafkaRaftClient.handleFetchSnapshotResponse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2c0bf24a726c7f9eb61bf00aa9634d0f0f96352081539fd6718d7dd836e730"}},{"ruleId":"D2","level":"warning","message":{"text":"LsCommandHandler.printEntries (cognitive 17): LsCommandHandler.printEntries has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, loops 8 (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":"shell/src/main/java/org/apache/kafka/shell/command/LsCommandHandler.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4502603e8f3221d7676d8681b96c5bc6979f6f1c47689d9dfdfd7954f333234"}},{"ruleId":"D2","level":"warning","message":{"text":"LogLoader.removeTempFilesAndCollectSwapFiles (cognitive 17): LogLoader.removeTempFilesAndCollectSwapFiles has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 4, 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogLoader.java"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ce30600d99f819fb15bef920d45b7860984578a57b58910d87c0b4bcef4051"}},{"ruleId":"D2","level":"warning","message":{"text":"LogManager.asyncDelete (cognitive 17): LogManager.asyncDelete has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, ternaries 4, 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogManager.java"},"region":{"startLine":1589}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49d501a514130c83952601d10ab53f91a4fbf98042a170aba338ab0d10c9a5f"}},{"ruleId":"D2","level":"warning","message":{"text":"LogManager.createLog (cognitive 17): LogManager.createLog has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 2, error handling 2, ternaries 2, loops 1 (nesting depth added 2). 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogManager.java"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2be25683cfaa71ac9a0512100717c6a5ffb8270b7d97f2c0f7cfabf5c7ac6c"}},{"ruleId":"D2","level":"warning","message":{"text":"UnifiedLog.deletableSegments (cognitive 17): UnifiedLog.deletableSegments has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 4, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"storage/src/main/java/org/apache/kafka/storage/internals/log/UnifiedLog.java"},"region":{"startLine":1879}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57e029b8d5c963424dfc122f7eb4e66ac10687e17bf10def27ecafd04979195"}},{"ruleId":"D2","level":"warning","message":{"text":"IntegrationTestUtils.startApplicationAndWaitUntilRunning (cognitive 17): IntegrationTestUtils.startApplicationAndWaitUntilRunning has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 5, ternaries 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":"streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/utils/IntegrationTestUtils.java"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e0370c1c957cde2544548a50cc194bf5fece4688cab40c0ec4a79c7ca9aa8b"}},{"ruleId":"D2","level":"warning","message":{"text":"SubscriptionInfo.taskOffsetSums (cognitive 17): SubscriptionInfo.taskOffsetSums has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, loops 8 (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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/SubscriptionInfo.java"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"0427dec5b2da09e4c316615eab18179ce943701339199c3305337dc21326cd4c"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaStreamsNamedTopologyWrapper.resetOffsets (cognitive 17): KafkaStreamsNamedTopologyWrapper.resetOffsets has cognitive complexity 17 (threshold 15). Drivers by points: error handling 6, if/else 6, ternaries 3, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/namedtopology/KafkaStreamsNamedTopologyWrapper.java"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"30920f6479284c73ae1018526c2dfdf2c329bd0f558a63e81033419e617b51b5"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultTaskManager.lockTasks (cognitive 17): DefaultTaskManager.lockTasks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/tasks/DefaultTaskManager.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f17ee94ed43e8bf1aab579d5885f94bcebc7f7ca94c6476e78acedb7d50537e"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalStateManagerImpl.restoreState (cognitive 17): GlobalStateManagerImpl.restoreState has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 6 (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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/GlobalStateManagerImpl.java"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b676e472f0614c8503870b990bb3f6a7ec849cad3ada58e85f7a35fe23f0ec"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalTopologyBuilder.offsetResetStrategy (cognitive 17): InternalTopologyBuilder.offsetResetStrategy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, ternaries 7, boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopologyBuilder.java"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5a01e0d72f934a3930d8f247eee922144f78936fea5a221dba1423a26e1c20"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskExecutionMetadata.canProcessTask (cognitive 17): TaskExecutionMetadata.canProcessTask has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskExecutionMetadata.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8013cdae12f1208e143f43404e338eadbe6bee18e8fd55ffff5887604a47eb"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskManager.closeDirtyAndRevive (cognitive 17): TaskManager.closeDirtyAndRevive has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 6, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1f7a9282220564e5a6483a3f7530f15ad95600c992a50bdb72725dc375e986"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskManager.handleTasksInStateUpdater (cognitive 17): TaskManager.handleTasksInStateUpdater has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"b231aa489d4b7a4b5dab4b8dd3ad3b346be8b6f74064e6db1c60e257304ae305"}},{"ruleId":"D2","level":"warning","message":{"text":"KStreamSlidingWindowAggregateProcessor.processReverse (cognitive 17): KStreamSlidingWindowAggregateProcessor.processReverse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, 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":"streams/src/main/java/org/apache/kafka/streams/kstream/internals/KStreamSlidingWindowAggregate.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c8fb4194b9426b081d0f31d05baa8766918dc08313f6e8d21f5a3404c8115e"}},{"ruleId":"D2","level":"warning","message":{"text":"RocksDBRangeIterator.makeNext (cognitive 17): RocksDBRangeIterator.makeNext has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, ternaries 6 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBRangeIterator.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"190b78ae9f8d0a0934a1e4bd24ab0298619040267da6e1928b962253f06740e2"}},{"ruleId":"D2","level":"warning","message":{"text":"PartiallyDeserializedSegmentValue.find (cognitive 17): PartiallyDeserializedSegmentValue.find has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBVersionedStoreSegmentValueFormatter.java"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47a20fa4eeadbbe9fb8f28ec90a531d2f63fea1fec2ef2c2b91f3a667572c0f"}},{"ruleId":"D2","level":"warning","message":{"text":"VerifiableShareConsumer.onRecordsReceived (cognitive 17): VerifiableShareConsumer.onRecordsReceived has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 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":"tools/src/main/java/org/apache/kafka/tools/VerifiableShareConsumer.java"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec8326ba828017598ea5d2b0472d38a28d52ae812d995bac343b95153839f2e"}},{"ruleId":"D2","level":"warning","message":{"text":"ViolationReporter.writeTextReport (cognitive 16): ViolationReporter.writeTextReport has cognitive complexity 16 (threshold 15). Drivers by points: loops 12, if/else 3, ternaries 1 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api-checker/core/src/main/java/org/apache/kafka/apicheck/ViolationReporter.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3802823429348f4cf5671421c60a92be0d879ff61108385dc202bb1a5fa490e8"}},{"ruleId":"D2","level":"warning","message":{"text":"BuiltInPartitioner.nextPartition (cognitive 16): BuiltInPartitioner.nextPartition has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/producer/internals/BuiltInPartitioner.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"0200fda1212af502ea0399832f8fd2744e3acd14055d06fb35f256b8031d337c"}},{"ruleId":"D2","level":"warning","message":{"text":"InitProducerIdHandler.handleResponse (cognitive 16): InitProducerIdHandler.handleResponse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 4 (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":"clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b73a5c297d81ef0f780ee968f7c85e0b5e64f4580696c5c7075801b1d33429"}},{"ruleId":"D2","level":"warning","message":{"text":"Sensor.checkQuotas (cognitive 16): Sensor.checkQuotas has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, 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":"clients/src/main/java/org/apache/kafka/common/metrics/Sensor.java"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"1286ae5ed40375cac9f102419fdf0d2aa96331a18713bf1a72451e60d362877d"}},{"ruleId":"D2","level":"warning","message":{"text":"Protocol.toHtml (cognitive 16): Protocol.toHtml has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, loops 7 (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":"clients/src/main/java/org/apache/kafka/common/protocol/Protocol.java"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"016a56aa708549a810362641bebf284d3782a084e9682b59705fb075af814b3d"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.build (cognitive 16): Builder.build has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, loops 4, boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/requests/TxnOffsetCommitRequest.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ba4ac88d0ccade79a0ea5a1812d780ae3fcd6d3589b8b7f9a688e084cf5f22"}},{"ruleId":"D2","level":"warning","message":{"text":"CommonNameLoggingTrustManager.sortChainAnWrapEndCertificate (cognitive 16): CommonNameLoggingTrustManager.sortChainAnWrapEndCertificate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 3, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/security/ssl/CommonNameLoggingTrustManagerFactoryWrapper.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"485a1d09c2852f82b8f710e70de20badf72aa91eed5ffb0245fa0886c010db72"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultSslEngineFactory.createTruststore (cognitive 16): DefaultSslEngineFactory.createTruststore has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/security/ssl/DefaultSslEngineFactory.java"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"549d3395b382829b6d7ca46ca3e3ec7ce72b980b74061293fc0683a437a1bb5b"}},{"ruleId":"D2","level":"warning","message":{"text":"SslFactory.createNewSslEngineFactory (cognitive 16): SslFactory.createNewSslEngineFactory has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 2, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/security/ssl/SslFactory.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"42dd57c57b49d4522e5443bf98443b41f825a2b63d477c218db7e3ddeec7e382"}},{"ruleId":"D2","level":"warning","message":{"text":"RaftClusterInstance.format (cognitive 16): RaftClusterInstance.format has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 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":"test-common/test-common-runtime/src/main/java/org/apache/kafka/common/test/junit/RaftClusterInvocationContext.java"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"8533511a4b830da83c2b8b4d89e7a3d514efc6459486bf229474343cc41be331"}},{"ruleId":"D2","level":"warning","message":{"text":"ProduceRequestHandler.topicProduceData (cognitive 16): ProduceRequestHandler.topicProduceData has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 6, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/java/org/apache/kafka/server/share/dlq/ShareGroupDLQStateManager.java"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e721fbce7b953711f55ae55338e5d916b729d0eccd0a3cb83662f99c38a380"}},{"ruleId":"D2","level":"warning","message":{"text":"InsertField.makeUpdatedSchema (cognitive 16): InsertField.makeUpdatedSchema has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 10, if/else 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/transforms/src/main/java/org/apache/kafka/connect/transforms/InsertField.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00da1b492c6a98aa9c98cbf9ca69aeb776834f9ffdff6ea0e71b9476cc8e3f2"}},{"ruleId":"D2","level":"warning","message":{"text":"FileStreamSourceTask.extractLine (cognitive 16): FileStreamSourceTask.extractLine has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, ternaries 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/file/src/main/java/org/apache/kafka/connect/file/FileStreamSourceTask.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"412acbe0f5b4d2b732ed72114693975a32e85888dcd4499d54021c2a168e1895"}},{"ruleId":"D2","level":"warning","message":{"text":"MirrorMakerConfig.clusterPairs (cognitive 16): MirrorMakerConfig.clusterPairs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 3, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorMakerConfig.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"6adc692f5c145885270e742c1cccee3a5a0c1cbbbfd1d96ebb4c35ca942203fb"}},{"ruleId":"D2","level":"warning","message":{"text":"DistributedHerder.handleRebalanceCompleted (cognitive 16): DistributedHerder.handleRebalanceCompleted has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java"},"region":{"startLine":1759}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbf9c937bc0be5435f984adde4bebcd49f86ecdc89749962833f678688e8bc2"}},{"ruleId":"D2","level":"warning","message":{"text":"DistributedHerder.validateSourceConnectorTransactionBoundary (cognitive 16): DistributedHerder.validateSourceConnectorTransactionBoundary has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, error handling 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"28df6fc456220bac020f0adffc375a5fed9d92b32bda61e5890341c42f340092"}},{"ruleId":"D2","level":"warning","message":{"text":"IncrementalCooperativeAssignor.loadBalancingRevocations (cognitive 16): IncrementalCooperativeAssignor.loadBalancingRevocations has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/IncrementalCooperativeAssignor.java"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"758955770e33556757d2dfc60fafb85b05b45b7714ea082a64e69ef5d2b52ab3"}},{"ruleId":"D2","level":"warning","message":{"text":"TopicAssignmentPartialBuilder.revokeOversharedPartitions (cognitive 16): TopicAssignmentPartialBuilder.revokeOversharedPartitions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHeterogeneousAssignmentBuilder.java"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"29eb03afa1e0f8a133bba7d62b341f865d63b263281590d17568c42863976a5e"}},{"ruleId":"D2","level":"warning","message":{"text":"TopicAssignmentPartialBuilder.revokeUnassignablePartitions (cognitive 16): TopicAssignmentPartialBuilder.revokeUnassignablePartitions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHeterogeneousAssignmentBuilder.java"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec325005f168c7dafa4a53a881655ee648d56cfe83d416eac0146822096c5b8e"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleHomogeneousAssignmentBuilder.revokeOversharedPartitions (cognitive 16): SimpleHomogeneousAssignmentBuilder.revokeOversharedPartitions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHomogeneousAssignmentBuilder.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"e084112ec71f063d9d6250e0bcdc64b9ac0d0410dd82ee62182a26575444cbd8"}},{"ruleId":"D2","level":"warning","message":{"text":"CurrentAssignmentBuilder.updateCurrentAssignment (cognitive 16): CurrentAssignmentBuilder.updateCurrentAssignment has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/CurrentAssignmentBuilder.java"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf4de5303a1500a8fae0181f48e33ec521b29b9af627d3bf188d2a76ee149e4"}},{"ruleId":"D2","level":"warning","message":{"text":"StickyTaskAssignor.initialize (cognitive 16): StickyTaskAssignor.initialize has cognitive complexity 16 (threshold 15). Drivers by points: loops 12, if/else 2, ternaries 2 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/assignor/StickyTaskAssignor.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d822642f52efb07bdb9735657bdb7e7f4337f0f2b213a8a0ed935af7faceff"}},{"ruleId":"D2","level":"warning","message":{"text":"Formatter.doFormat (cognitive 16): Formatter.doFormat has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 3, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/metadata/storage/Formatter.java"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cba78419e02b6832d6f3e2ccaf6ad0602cc2c3b4d42f03a44aaaddc737d3b18"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaRaftClient.maybeHandleCommonResponse (cognitive 16): KafkaRaftClient.maybeHandleCommonResponse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 4 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java"},"region":{"startLine":2631}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ccfd08be4461bc14a004b688d5806d99e1db3aefb6c5f600c8a921080878da"}},{"ruleId":"D2","level":"warning","message":{"text":"QuorumState.initialize (cognitive 16): QuorumState.initialize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"raft/src/main/java/org/apache/kafka/raft/QuorumState.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d892cb39b6fd91f928f7c25826584717ade184283cdbddb59fd3bb02c3afe28"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobVisitor.accept (cognitive 16): GlobVisitor.accept has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, 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":"shell/src/main/java/org/apache/kafka/shell/glob/GlobVisitor.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"315012caa1d2c62c4decb3d9af6c828d4c0a2085ef6a312fea4ad1cad5b19cb8"}},{"ruleId":"D2","level":"warning","message":{"text":"LogManager.createAndValidateLogDirs (cognitive 16): LogManager.createAndValidateLogDirs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, error handling 2, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogManager.java"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4fd709813ed314004e677f627c422398f8e6fa61ed67811b469a40078babbe"}},{"ruleId":"D2","level":"warning","message":{"text":"PositionRestartIntegrationTest.data (cognitive 16): PositionRestartIntegrationTest.data has cognitive complexity 16 (threshold 15). Drivers by points: loops 11, if/else 4, boolean chains 1 (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/integration-tests/src/test/java/org/apache/kafka/streams/integration/PositionRestartIntegrationTest.java"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"249af9b6194cf3b570b04174efc3742bc0f0674dc2434cec1ec009086685b561"}},{"ruleId":"D2","level":"warning","message":{"text":"Graph.populateInOutFlow (cognitive 16): Graph.populateInOutFlow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/Graph.java"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80c513fcc4bc5cb5258df2b93c627cb930926b9ffacc92fcef15ed3400604fc"}},{"ruleId":"D2","level":"warning","message":{"text":"RackAwareTaskAssignor.optimizeStandbyTasks (cognitive 16): RackAwareTaskAssignor.optimizeStandbyTasks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, loops 6, 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/RackAwareTaskAssignor.java"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ba8924b670beb51477f9b0cbc62ee252d771a6026fecd775af0738a3a86b61"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalTopologyBuilder.copartitionGroups (cognitive 16): InternalTopologyBuilder.copartitionGroups has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, loops 7 (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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopologyBuilder.java"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef5da2f054137e25ee9013b991bf9cd6157446652bb255059a4485cbef9dd04"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessorStateManager.initializeStoreOffsets (cognitive 16): ProcessorStateManager.initializeStoreOffsets has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 1, error handling 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorStateManager.java"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2afa10c76fd5da8560ce3a93113ce8c49b9f3ba986c79f1453f42528c9741c0"}},{"ruleId":"D2","level":"warning","message":{"text":"StoreChangelogReader.seekNewPartitions (cognitive 16): StoreChangelogReader.seekNewPartitions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, error handling 4, loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StoreChangelogReader.java"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6b54bc35e47dd8a9be2c2e0751028b0c1d3df2123cfd51199473a0b3c8b341"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamTask.process (cognitive 16): StreamTask.process has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, error handling 4 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamTask.java"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d5e57154fa07861245b7f389d8ce01461b752d63182880565a07284d746d17"}},{"ruleId":"D2","level":"warning","message":{"text":"KStreamKStreamJoinProcessor.emitNonJoinedOuterRecords (cognitive 16): KStreamKStreamJoinProcessor.emitNonJoinedOuterRecords has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/kstream/internals/KStreamKStreamJoin.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"626d3c301ecb4175558dd29486fd43323ed7ec32c47f7fcf21b74a35a8f08927"}},{"ruleId":"D2","level":"warning","message":{"text":"KTableKTableOuterJoinProcessor.process (cognitive 16): KTableKTableOuterJoinProcessor.process has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 5 (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":"streams/src/main/java/org/apache/kafka/streams/kstream/internals/KTableKTableOuterJoin.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf0998deb5bd89f68842340637c21166f868414ea5941e019d51e0345fc2ffc"}},{"ruleId":"D2","level":"warning","message":{"text":"CachingWindowStore.fetchKeyRangeInternal (cognitive 16): CachingWindowStore.fetchKeyRangeInternal has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 15, if/else 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/CachingWindowStore.java"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fb896695c1e50fc8384af8afc5d9cba27451f935e00d160490c75cdfe236cd"}},{"ruleId":"D2","level":"warning","message":{"text":"RocksDBTimeOrderedKeyValueBuffer.evictWhile (cognitive 16): RocksDBTimeOrderedKeyValueBuffer.evictWhile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBTimeOrderedKeyValueBuffer.java"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"c407921cbf2ff97266e57928836f8113efd0693aa1d67ba94561c295add8767a"}},{"ruleId":"D2","level":"warning","message":{"text":"StoreQueryUtils.runWindowRangeQuery (cognitive 16): StoreQueryUtils.runWindowRangeQuery has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, error handling 5, 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/StoreQueryUtils.java"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe1514424e5ef17f58a3ba64b021033db99960161f741b5951d5da0a7ab809a"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsumerGroupService.printMembersHelper (cognitive 16): ConsumerGroupService.printMembersHelper has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, ternaries 6, 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":"tools/src/main/java/org/apache/kafka/tools/consumer/group/ConsumerGroupCommand.java"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"6027d09c9b3714781eaf2f83a8b98f7b3b399e312bd3d02d4b8f03a391ccf957"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamsGroupService.printMembers (cognitive 16): StreamsGroupService.printMembers has cognitive complexity 16 (threshold 15). Drivers by points: loops 8, if/else 4, ternaries 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":"tools/src/main/java/org/apache/kafka/tools/streams/StreamsGroupCommand.java"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4830e5dfea8e6845e61b734f67d74f7910a19f736f4ac9140e2273efa23360a"}},{"ruleId":"D2","level":"warning","message":{"text":"AclCommandOptions.checkArgs (cognitive 16): AclCommandOptions.checkArgs has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/src/main/java/org/apache/kafka/tools/AclCommand.java"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8aeedb2aae0fd88608c8ed6bf688986c54a156f63c75e59dc89444563a23d68"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigCommand.describeConfigContext (cognitive 16): ConfigCommand.describeConfigContext has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (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":"tools/src/main/java/org/apache/kafka/tools/ConfigCommand.java"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e566e4d4f285b66038f295d221a7d7c2e92996be97921b97c2f18e8797c8cfc"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectPluginPath.endCommand (cognitive 16): ConnectPluginPath.endCommand has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, error handling 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":"tools/src/main/java/org/apache/kafka/tools/ConnectPluginPath.java"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6480c6ab7ad9fd308095d0a1d15c84cf68b27092aa8c8eba538f70858af547b"}},{"ruleId":"D2","level":"warning","message":{"text":"GetOffsetShell.fetchOffsets (cognitive 16): GetOffsetShell.fetchOffsets has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 2, error handling 2, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/src/main/java/org/apache/kafka/tools/GetOffsetShell.java"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f9ab142e5afe69c3da7ed4bc42be56824b071c45fd9df2a87280804d7dce31"}},{"ruleId":"D2","level":"warning","message":{"text":"DelayedShareFetch.isMinBytesSatisfied (cognitive 16): DelayedShareFetch.isMinBytesSatisfied has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, error handling 2, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/DelayedShareFetch.java"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"6751bcbb3747f396915b3b1322babb3d39c557c4a11c655a6a2c7f72062659f7"}},{"ruleId":"D2","level":"warning","message":{"text":"DelayedShareFetch.maybeCompletePendingRemoteFetch (cognitive 16): DelayedShareFetch.maybeCompletePendingRemoteFetch has cognitive complexity 16 (threshold 15). Drivers by points: error handling 8, if/else 6, boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/DelayedShareFetch.java"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"68df9618ba872aa4eb545beb489c9730875b6926db397110958878f30681c8f8"}},{"ruleId":"D2","level":"warning","message":{"text":"DelayedShareFetch.tryComplete (cognitive 16): DelayedShareFetch.tryComplete has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/DelayedShareFetch.java"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac5a656b96567a74bd1cb22e2aef928e51f607e8f275662e2e055311777b6a8"}},{"ruleId":"D2","level":"warning","message":{"text":"SharePartition.archiveRecords (cognitive 16): SharePartition.archiveRecords has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 4, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf9bd5ab921324eeb4cb9e0969e1d00c32bf8eeaf20c6f18c9dd47780a2d035"}},{"ruleId":"D2","level":"warning","message":{"text":"SharePartition.rollbackOrProcessStateUpdates (cognitive 16): SharePartition.rollbackOrProcessStateUpdates has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 2, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":2528}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad691182b0ad898d600e7fbf7b2d568f83dd8589f52712a9fb584e6229c4d35"}},{"ruleId":"D2","level":"warning","message":{"text":"ExactlyOnceMessageProcessor.run (cognitive 16): ExactlyOnceMessageProcessor.run has cognitive complexity 16 (threshold 15). Drivers by points: error handling 7, if/else 4, loops 4, 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":"examples/src/main/java/kafka/examples/ExactlyOnceMessageProcessor.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ae1a1cbf6deb77c8a40eedf00c0ff2b21874ae499cd017b4d3cd4c4799341a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: group/GroupMetadataManager.java: FileTooLong \u2014 5161 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: GroupMetadataManager (275-9860). 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c6fde68b6f3265c02b1cf55d6d51c94f655f4f9896a79dc5147a151e6d1795"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapter: TooManyMethods \u2014 308 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapter.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f324abbcc4b98487c72872e2f38be645f01b8ed4454d8076c470331edc17935"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GroupMetadataManager: TooManyMethods \u2014 263 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd61b9fca6c526e96bb60eb0608fdb1bd4bb6530d0081c35d55f0000bb5ecb63"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: admin/KafkaAdminClient.java: FileTooLong \u2014 3521 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: KafkaAdminClient (324-5234). 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":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c659aafca3a5dd42c2c353b2d3e39f96aecc4c6a5be3d4653ef9465a186e4264"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raft/KafkaRaftClient.java: FileTooLong \u2014 2552 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: KafkaRaftClient (170-4162). 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":"raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac14296180c7e135fddad25f91c24d27df3b0248cb3cdf46e431e7ec45c9ea6b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UnifiedLog: TooManyMethods \u2014 152 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/UnifiedLog.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"b400af8006652e67f2f6a1021a3b97d5f6cd827c541c4f88d266dd94c0bd989c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KafkaRaftClient: TooManyMethods \u2014 138 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":"raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e54f059a805f340dcdbec018ee4fec0d45fdd68f8a321b85bd30d349b1cf4d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TaskManager: TooManyMethods \u2014 120 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"d826d34310573562d4ac27892c7a5ec78a11e41dbf565adfa74941393e945c6a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KafkaAdminClient: TooManyMethods \u2014 114 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":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"2630c663b409b0e5f7a614a2a971cfea3584a5791a95793ebe12281a2ffaafe2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: share/SharePartition.java: FileTooLong \u2014 1857 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: SharePartition (103-3645). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eddc3597570ca75573e826e335932aebdb233421aa0e4d493b8d81f002754a35"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: group/GroupCoordinatorService.java: FileTooLong \u2014 1854 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: GroupCoordinatorService (171-3086). 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0e6bb80148136ae06b903d5a98f970e5af6685ff21a7175cd270ade297c846"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distributed/DistributedHerder.java: FileTooLong \u2014 1850 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: DistributedHerder (154-3032). 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e58de1c4275eaf3ec73fea199101813110c9ce8ece02876255dfde6af3f951"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AsyncKafkaConsumer: TooManyMethods \u2014 105 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8ea0fce00cf5a42b7f0875d46c1d4c8200c4cdf6facc906e7e5b213cae7c49"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Utils: TooManyMethods \u2014 103 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/utils/Utils.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"94614c151674d0a79e8080a5c980107241ea0d866b5f3ae0f69247a178106d8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: controller/ReplicationControlManager.java: FileTooLong \u2014 1691 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: ReplicationControlManager (150-2548). 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":"metadata/src/main/java/org/apache/kafka/controller/ReplicationControlManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ff1d08303cda8c07e44f3e358a9f340a58244274de45db3d98a30d05fe498e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DistributedHerder: TooManyMethods \u2014 97 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6b329259c738a368efd8f7396ae91ad7b765549d88f47bcb7d27fb791e0553"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SubscriptionState: TooManyMethods \u2014 96 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/SubscriptionState.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a27fef6741b1409117a72e91b3551a5f2c6114e7b0fe6d2553f36f1b23d568"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TransactionManager: TooManyMethods \u2014 96 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":"clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff71a65a0fbc95a9d999a6531080fc93fc037b0582dd9412f050c82e33b846d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InternalTopologyBuilder: TooManyMethods \u2014 96 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopologyBuilder.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c49a64e5084a57c4b5f17f6bbfedefc82acbac73044c343d1cf56c525b1bbb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SharePartition: TooManyMethods \u2014 94 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":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"61bb513a61ddfedfafea8be751abdcded46c2cfa45aa2a77305a594789de695b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StreamsGroup: TooManyMethods \u2014 94 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/StreamsGroup.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4691a202c36195b304cd2ef93551c84e0a0307de98178f4252e1bb65c5586db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/AsyncKafkaConsumer.java: FileTooLong \u2014 1535 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: AsyncKafkaConsumer (177-2538). 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ad8b049f2dc80ebb9d7c1d3f0378102b38db6d8a2f386adb8fa95696cd3390"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: storage/RemoteLogManager.java: FileTooLong \u2014 1528 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: RemoteLogManager (152-2453). 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":"storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b123c3a87e4cb980701060b43191a5b199ec40a9325b33bf134818622feb031"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LogManager: TooManyMethods \u2014 89 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogManager.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e811db07ac7db880088a388af5ddfc25f233dcec5f2c98c8ab21093e5fbefa3c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/InternalTopologyBuilder.java: FileTooLong \u2014 1475 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: InternalTopologyBuilder (72-2367). 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopologyBuilder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"388b6550f75552196730e454e82ecc903f9562793c49cc9cd84d674576bc348e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: log/UnifiedLog.java: FileTooLong \u2014 1472 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: UnifiedLog (105-2787). 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/UnifiedLog.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9529ac8a429adb3db7e342bf3c188c796cc1ac1ada6fbb5daee7d3b61972e12"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/Worker.java: FileTooLong \u2014 1469 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: Worker (140-2415). 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a33ac85311fd473a20e28255222ee1f1181e0d6ace2e96eb2f48ef3028e770"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: controller/QuorumController.java: FileTooLong \u2014 1419 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: QuorumController (176-2229). 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":"metadata/src/main/java/org/apache/kafka/controller/QuorumController.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf6199cb177794fa4cd3f0465446c6c80f7b7cbda5d285a86e526368145eecf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClassicGroup: TooManyMethods \u2014 85 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/classic/ClassicGroup.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b67986911dcbe559042219da3d69580471ac9b4acd7e7e335cdf7068abce562"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: message/MessageDataGenerator.java: FileTooLong \u2014 1405 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: MessageDataGenerator (32-1688). 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":"generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fea7c4c88c229e2ba7125272509bedcbb4cc67d2a7a515e295f0d4c68c009cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/StreamThread.java: FileTooLong \u2014 1393 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: StreamThread (114-2239). 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80b119217f018aae73b8b7f27b49952fa4c5bbd60641b825ec6fe4c731aca28"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: streams/StreamsConfig.java: FileTooLong \u2014 1392 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":"streams/src/main/java/org/apache/kafka/streams/StreamsConfig.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba2d0f11b8e9aac44d8e75f0ac80ff314ccc877089d9e13225c163b3c126e3b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractKafkaConfig: TooManyMethods \u2014 82 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":"server/src/main/java/org/apache/kafka/server/config/AbstractKafkaConfig.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2cde71e4ff07a905b0299b9f73eb60902a7232f03bb2171a71d1cf9671a847"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KStreamImpl: TooManyMethods \u2014 82 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":"streams/src/main/java/org/apache/kafka/streams/kstream/internals/KStreamImpl.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"99cf08b3a77b1c313cbe832a6458c814130f52a0ac1c55ceedc9b09c2584f7bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/TaskManager.java: FileTooLong \u2014 1334 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: TaskManager (77-2205). 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9101d4c7710228eb4cc877fe456d309f8daeb2e234dbea3b90e7dabf993a67"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MockConsumer: TooManyMethods \u2014 80 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":"clients/src/main/java/org/apache/kafka/clients/consumer/MockConsumer.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98c854e5ff429f2d8c7599c5583e09740599c29bea9b23d250e5fdd53674a56"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Worker: TooManyMethods \u2014 80 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"946d9928ff5c5506a44c5433d9a0fd0c663b9e7e83ecec54cfd65c360d73ed39"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GroupCoordinatorService: TooManyMethods \u2014 78 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"813271e805b586a16f8832f0294ecf1648ba379ca8bc2ae9a5618e5c4aab3ec4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StreamThread: TooManyMethods \u2014 76 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c66c7109f0d380e7ba9a8a9e13141594e79d179298024f74830177667919a1f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StreamsMetricsImpl: TooManyMethods \u2014 76 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/metrics/StreamsMetricsImpl.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d4bd75a67cd8661a55fc26c6ea5b435d2264af3c7166b8d60fe6397734c5ac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GroupCoordinatorConfig: TooManyMethods \u2014 75 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorConfig.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c0ad9aa3a187b4a9a4b57a250692f18f9ace914a5093b6ef03228a424fe2ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/TransactionManager.java: FileTooLong \u2014 1235 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":"clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e492ee1f7cbe2eb3c48c209335d67ff11ed2e133b165370163ebff2540c70a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClientState: TooManyMethods \u2014 73 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/ClientState.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e8b861c858240eaada62d081268cf2c423b94acd838362d164cdef3e097b8f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/CoordinatorRuntime.java: FileTooLong \u2014 1204 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: CoordinatorRuntime (100-2540). 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":"coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntime.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fb3d2baff58c06e15e25e8a2cd59a6fea3ee2901a5cb8a32de36a868b84928"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractMembershipManager: TooManyMethods \u2014 72 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1344882a29b4cb1aee150ac25bb97b22e7bceb019a64f617966695ca4f018a8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClassicKafkaConsumer: TooManyMethods \u2014 72 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ClassicKafkaConsumer.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fca6464c8eac50b07d4f1254a5d791ec84031ae17225a4dca748b469f30f408"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractHerder: TooManyMethods \u2014 72 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/AbstractHerder.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"174004c04a087e680097da1a59f4666431d3d27b69c42377424cfaf5b384d7a1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StreamTask: TooManyMethods \u2014 72 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamTask.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6a1e95b9c183459cc4b1874700d13e465e48ef03de0c2617883daf702920d6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StreamsMembershipManager: TooManyMethods \u2014 71 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8be24585a2d37f37a04999f9f051fa435c5423fdc8599818b4c3c499c6a1104"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ReplicationControlManager: TooManyMethods \u2014 71 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":"metadata/src/main/java/org/apache/kafka/controller/ReplicationControlManager.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"39196e5d40f063645f10eea022b5130bbf09ac818bcf85bddec7184e82b0b087"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapter.java: FileTooLong \u2014 1140 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapter (65-1799). 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBGenericOptionsToDbOptionsColumnFamilyOptionsAdapter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"622cfbd21ceff0ea5034edfe66efdd5ec849465ea7d2dc8b3e6221a152e047ad"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemoryRecordsBuilder: TooManyMethods \u2014 68 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":"clients/src/main/java/org/apache/kafka/common/record/internal/MemoryRecordsBuilder.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35a87cadca6f1adbf6d4c1e4134f93b346f67d6655b1c70578dfbf1dca13e68"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConsumerGroup: TooManyMethods \u2014 68 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/ConsumerGroup.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bfc9cabffd2797eeb493e57760597aa74a6f7c7b6f4830808750fb84b24759e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KTableImpl: TooManyMethods \u2014 68 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":"streams/src/main/java/org/apache/kafka/streams/kstream/internals/KTableImpl.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db43edbd233e2eae677c180fd13d46605cb768f53dff58fbf565efa2d9b53cf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: streams/KafkaStreams.java: FileTooLong \u2014 1127 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: KafkaStreams (162-2225). 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":"streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f4c1b047c9318c62d901517c33558975a49d9db43b5622aafc807fcc6bae89"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: persister/PersisterStateManager.java: FileTooLong \u2014 1123 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: PersisterStateManager (90-1740). 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4858179a6c294a6718e661970dce883408cbcf1760ec0e5cc917434be41d0f50"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: streams/TopologyTestDriver.java: FileTooLong \u2014 1117 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":"streams/test-utils/src/main/java/org/apache/kafka/streams/TopologyTestDriver.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0b96e7f76db97ff958d503d74248e881d77a9c681c716fd7353b7fdfeb78fc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RemoteLogManager: TooManyMethods \u2014 67 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":"storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8dae10a65283a5d258dc8ec19e0d49ff4ccff325a8505cdb845d4e62a70765"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ForwardingAdmin: TooManyMethods \u2014 66 methods. Most of these members implement admin.Admin (65 of 66 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/ForwardingAdmin.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf4ac93b3eba3a532a0e19f9bd1401d10a9d2a122188bbe1343ff7788d2d383"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: log/LogManager.java: FileTooLong \u2014 1072 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: LogManager (81-1897). 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfb9d4b6ea1de6cbcb395d9b4bf4b6c42d4f1f88398f7f2e5e3f120b78fcdf2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/StreamsPartitionAssignor.java: FileTooLong \u2014 1068 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: StreamsPartitionAssignor (106-1704). 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsPartitionAssignor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d53073b53ab8c717e75e70b3e325411c415e27741c249220d8e8297a0c7b00"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractCoordinator: TooManyMethods \u2014 63 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"551a977cf55614e00d965d2b0254b92f0d646b36c8e9c00e72059301d5e20920"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConfigDef: TooManyMethods \u2014 63 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":"clients/src/main/java/org/apache/kafka/common/config/ConfigDef.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c06ad14ac9423cefd62f5c0520e1464e9ff7497175ee42453d4b2ad20968d8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LocationAwareKafkaLogger: TooManyMethods \u2014 63 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":"clients/src/main/java/org/apache/kafka/common/utils/internals/LogContext.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe7f123582cb98fda973542e6f94466a1a1f09a462b718bec449d409d1d934a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QuorumController: TooManyMethods \u2014 63 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":"metadata/src/main/java/org/apache/kafka/controller/QuorumController.java"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbecd0ce4009bbc1f8d919cbe68a7775c34bf3a91f05b9ed71b80791b223aa4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KafkaStreams: TooManyMethods \u2014 63 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":"streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4a51e9b8431ea8b379a1dd1d3ec0bda23cca36b543fa874a6b06a11baff665"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/ConsumerCoordinator.java: FileTooLong \u2014 1048 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: ConsumerCoordinator (103-1763). 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53078499980ab27b1c0c4da1fb72e6c8a9bb13a5b3ab0be5c59e0aaedee29d17"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LocationIgnorantKafkaLogger: TooManyMethods \u2014 62 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":"clients/src/main/java/org/apache/kafka/common/utils/internals/LogContext.java"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cdec67c414a785955eb1f0f35646c89017f0171b26dfe760451b4da2221858"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/KTableImpl.java: FileTooLong \u2014 1029 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: KTableImpl (104-1441). 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":"streams/src/main/java/org/apache/kafka/streams/kstream/internals/KTableImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97885098f8d48e71d6e455948419ac62325a1c2d9b4b91cfff0179bef2d894a7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KafkaConsumer: TooManyMethods \u2014 61 methods. Most of these members implement consumer.Consumer (30 of 35 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"3774e14abbcdc07de4adf6289d888f3f0dc88595c9bd6f10d030e85b088007fe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RocksDBStore: TooManyMethods \u2014 61 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBStore.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56352fa31ffbb248d6159248fde9e235babc58eba0b0b64cabe114f0199c6b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: clients/NetworkClient.java: FileTooLong \u2014 1008 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":"clients/src/main/java/org/apache/kafka/clients/NetworkClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf4a26bdca99569f26f8036aca1dbc3612cc57d7186ea07732a94569fb15b93"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TopologyMetadata: TooManyMethods \u2014 60 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/TopologyMetadata.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c58ad318a514b626ff9323f4d26e2ff335bbdb499b136686c390f830f215c42"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/KStreamImpl.java: FileTooLong \u2014 987 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: KStreamImpl (78-1375). 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":"streams/src/main/java/org/apache/kafka/streams/kstream/internals/KStreamImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"986799411bfe394b0137a32504d96278fa9a1edc9ea18056be281ba1ce37e638"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/AbstractCoordinator.java: FileTooLong \u2014 984 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: AbstractCoordinator (123-1690). 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ecca8fff112f47b66c325d01e94fab03a7c918b11ec9fc6b49944fbbdcbe6c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LogSegment: 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogSegment.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"260b16cb382a4888c1abdf61625ef4e84411c6df3222d3332ee8521e6b94cdc6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/RocksDBStore.java: FileTooLong \u2014 981 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: RocksDBStore (103-1571). 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBStore.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90ce1e5704c4ede7f785aefe86b2d1db9dc90fcf3921fc0843ee45754de7136"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/ShareConsumeRequestManager.java: FileTooLong \u2014 972 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: ShareConsumeRequestManager (76-1633). 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f3d96af3e9e4c1990c7cc429a5cf4e17490fbe86204604d7ab1d277dd196a7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Selector: TooManyMethods \u2014 58 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":"clients/src/main/java/org/apache/kafka/common/network/Selector.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfabce4881725744c5ca25c3cdc0b4073e88ee1dc0c278da87e248fb281e05a6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NetworkClient: TooManyMethods \u2014 57 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":"clients/src/main/java/org/apache/kafka/clients/NetworkClient.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"dface73a75625dd0d3337388f478474d8936ff407c2457007a2f39f12516c17c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QuorumState: TooManyMethods \u2014 57 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":"raft/src/main/java/org/apache/kafka/raft/QuorumState.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6094ea99c00395c0cc3da5b394e788582cf48ad993d24dc5f3253b6f0b995c0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LocalLog: TooManyMethods \u2014 57 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LocalLog.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c059df3abda2b6f253d3e0ccab18c1941c362481a371f3823303b06d57d7bd7a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProducerBatch: TooManyMethods \u2014 56 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":"clients/src/main/java/org/apache/kafka/clients/producer/internals/ProducerBatch.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a938e519fda49a7a5b13659d73cbcc1fe2d929e642d037e13dcb81237e2b21b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reassign/ReassignPartitionsCommand.java: FileTooLong \u2014 933 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: ReassignPartitionsCommand (84-1590). 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":"tools/src/main/java/org/apache/kafka/tools/reassign/ReassignPartitionsCommand.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90224706e6126fbe6cfc44621ce8d44a711365f62d0ca693be114db82f6361f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/CommitRequestManager.java: FileTooLong \u2014 905 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: CommitRequestManager (76-1566). 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce4e5269f8d07968a9d256947735ff35ad3761fa97b57f9228f2e5b6f2174d8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Plugins: TooManyMethods \u2014 54 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/isolation/Plugins.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c825bea915a007064772f0814850b2f55cd9d5cc665a5404f0a7b9e42d54f1f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConsumerWrapper: TooManyMethods \u2014 54 methods. Most of these members implement consumer.Consumer (30 of 32 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/internals/ConsumerWrapper.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6c116ae039e409f1d48641f7ba06eee156717951a208d16d4583feb7f67d13"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/StreamTask.java: FileTooLong \u2014 896 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: StreamTask (74-1486). 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamTask.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f44d9590f27196fa57b96c074ee55c25788d9ec2fbc2008984ad859133a1f693"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ShareConsumerImpl: TooManyMethods \u2014 53 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumerImpl.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ea894275e472571677782774f17641397f4a0ff43e5322e122626b56495eb5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MessageDataGenerator: TooManyMethods \u2014 53 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":"generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05bbf4d50650bd597663cfdba08cbc95346a21579ca6d9ce1b088835a15c284"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BrokerTopicMetrics: TooManyMethods \u2014 53 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":"storage/src/main/java/org/apache/kafka/storage/log/metrics/BrokerTopicMetrics.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad2983e129ad913c473182050ae5db3ded64c915b3bef062f50d053eecda003"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StateUpdaterThread: TooManyMethods \u2014 53 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/DefaultStateUpdater.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0b60de44e3e7bc33dd0f4a00d457fd045201070e591448f346dc7ad9e19079"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ReassignPartitionsCommand: TooManyMethods \u2014 53 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":"tools/src/main/java/org/apache/kafka/tools/reassign/ReassignPartitionsCommand.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"8786b748e3143f464fb0d975862bbbad5d96a557af3291087241ed9563973eea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: network/Selector.java: FileTooLong \u2014 883 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: Selector (88-1481). 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":"clients/src/main/java/org/apache/kafka/common/network/Selector.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95113c6e38874608c1bf7e27017bc138ce983c10ce3fd9922733b6dc75c97f35"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/ShareConsumerImpl.java: FileTooLong \u2014 871 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: ShareConsumerImpl (119-1409). 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumerImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db56a48d3f8fd544b6d8eeb0943ecf4aea7a903cdf4613cb96ca04653454a0fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/ConfigDef.java: FileTooLong \u2014 868 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: ConfigDef (86-1787). 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":"clients/src/main/java/org/apache/kafka/common/config/ConfigDef.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41534a6af75ee31aac812b0d39c30557b68afe30cd736a08f2a1ca223b078472"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/AbstractHerder.java: FileTooLong \u2014 863 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: AbstractHerder (133-1286). 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/AbstractHerder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82384bf410c082c2ed26f32ac3ab36fe96a218f94f1d9214c724305ba30633a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/ClassicKafkaConsumer.java: FileTooLong \u2014 857 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: ClassicKafkaConsumer (117-1306). 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ClassicKafkaConsumer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b6027a21f45f2e471772e02008ee1cd566b9054cdace80b382af9f9fd04270"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/DefaultStateUpdater.java: FileTooLong \u2014 857 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: DefaultStateUpdater (80-1246). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/DefaultStateUpdater.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed16cfd106e02a5e7dcdf07c3dbbcc764d141ace8fb6cb8e803b15e31f769e7c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RecordAccumulator: TooManyMethods \u2014 51 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":"clients/src/main/java/org/apache/kafka/clients/producer/internals/RecordAccumulator.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f046706fc3c683fc671feb5976d3b9861495b51b1e2fc3d6d002cd5a224da9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemoryRecords: TooManyMethods \u2014 51 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":"clients/src/main/java/org/apache/kafka/common/record/internal/MemoryRecords.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e28692bdf5abf66b0ff9533665c476a896e899217fac2cb86696a3651f8f44"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GroupConfig: TooManyMethods \u2014 51 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupConfig.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3fa5ebb66a075208ed09aa6b29b1977a99cf2b907a5ce9554c81f234611487"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProducerStateManager: TooManyMethods \u2014 51 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/ProducerStateManager.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f1ec75b4f52784b3cc355fd986387260de2dc443ff7886a956b4d954066ea3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/AbstractStickyAssignor.java: FileTooLong \u2014 845 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: AbstractStickyAssignor (53-1503). 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractStickyAssignor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7e62e807eaa2d92fc82e04edb79bc209a331ab688e56aa0b60d0ddea3c72a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: group/GroupCoordinatorConfig.java: FileTooLong \u2014 820 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: GroupCoordinatorConfig (68-1413). 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorConfig.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4b786a710592481c0b6ea3f80e709cb4afe0f3cd00e09434c560f4e72097ac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MirrorSourceConnector: 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":"connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorSourceConnector.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad640c9ce1009dc4ee57471af8568c2b972e26730f4b4d6c8141239e934bee1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KafkaConfigBackingStore: 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":"connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ff305889a0445008f0606b74c0c29fd926c123084c847e84df15ddc3cf13fb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StoreChangelogReader: 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StoreChangelogReader.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd5fb41c357364a5f4987b34e83a31b05d31272576bd83d3e358fe97adee523"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/ConfigCommand.java: FileTooLong \u2014 803 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: ConfigCommand (114-1078). 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":"tools/src/main/java/org/apache/kafka/tools/ConfigCommand.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72fe857a2b1ec24f38b56276ce6e3c1cb95224420027955aa0272c7a753605b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KafkaChannel: 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":"clients/src/main/java/org/apache/kafka/common/network/KafkaChannel.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18d2cea864d64dbaa8d15500ab884e4c24251a3cfeea42f84f097879da7a3f1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SslTransportLayer: 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":"clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e14db8ecca23aa283dc2c229fbf872907d0f4bbb4ae0b7c24e273f9e469e2d5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultRecordBatch: 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":"clients/src/main/java/org/apache/kafka/common/record/internal/DefaultRecordBatch.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"4716c6d81687ebd63b67d75b9b0f65f984138bcc6cce61b28dc0fd11f0079d35"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Values: 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":"connect/api/src/main/java/org/apache/kafka/connect/data/Values.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbe30f425a5133e430ed5afa812a90df1c0ef17d8a606f5be3220b237e0cf27"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LeaderState: 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":"raft/src/main/java/org/apache/kafka/raft/LeaderState.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5d28d83cda1052a0e74a3222e7546b9b8cc34a1ab81fef339143acd748684b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: data/Values.java: FileTooLong \u2014 799 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Values (63-1405). 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":"connect/api/src/main/java/org/apache/kafka/connect/data/Values.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb186c73d78f71a952a1c972b3b7383189cd8de85aed2d636bad48659a0d7afb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: streams/StreamsGroupCommand.java: FileTooLong \u2014 798 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: StreamsGroupCommand (87-1118). 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":"tools/src/main/java/org/apache/kafka/tools/streams/StreamsGroupCommand.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8f05414d69736f4388665a6602eb543fc0892d89947e4de3a822529d003a99"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: producer/KafkaProducer.java: FileTooLong \u2014 795 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: KafkaProducer (249-1783). 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":"clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ef979b6e0954f8b0ac25990eaf65ef7c17fec2f31e89edf2b8f11917495e6c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MockProducer: TooManyMethods \u2014 47 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":"clients/src/main/java/org/apache/kafka/clients/producer/MockProducer.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3258b4f16ad437a9744b9eae99c0a1cd896b11c93d431d316b98f06913cf49"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TransactionMetadata: TooManyMethods \u2014 47 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":"transaction-coordinator/src/main/java/org/apache/kafka/coordinator/transaction/TransactionMetadata.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c67403bd9e0b40a12a7bede1db95c4254ba8b91c7549caa54f9af34f4e6645"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: network/RequestConvertToJson.java: FileTooLong \u2014 778 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":"server/src/main/java/org/apache/kafka/network/RequestConvertToJson.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"817523b7a55af156da83bd5d6b0a54a7374b31f69cb96c28483fa0b9e98f4055"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/Utils.java: FileTooLong \u2014 777 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: Utils (101-1772). 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":"clients/src/main/java/org/apache/kafka/common/utils/Utils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b929cd54b6c921fe3219c1130751cdc2d3b3ffe40db5eb05a15c9397618c0d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: group/GroupCoordinatorShard.java: FileTooLong \u2014 771 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: GroupCoordinatorShard (158-1494). 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorShard.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec5b1adec317e810c6a9510c6d4ad7d5c70b84eca0b97ebf00d1b9f24058c22"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: group/ConsumerGroupCommand.java: FileTooLong \u2014 769 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: ConsumerGroupCommand (80-1063). 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":"tools/src/main/java/org/apache/kafka/tools/consumer/group/ConsumerGroupCommand.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e3078b5c029434d2550d1462ce6364565b1f517fd048616caee99fc548a56c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/SubscriptionState.java: FileTooLong \u2014 767 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: SubscriptionState (74-1460). 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/SubscriptionState.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d441c1ab45588991e256a4bb219bc1c09c926f7d6978fc7efec885b7471e0c7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GroupCoordinatorShard: TooManyMethods \u2014 46 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorShard.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1727d1f0cf31c228a834d386c52a88f7a7bbc4c73cf98273673df5a73a39f5a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MetadataDelta: TooManyMethods \u2014 46 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":"metadata/src/main/java/org/apache/kafka/image/MetadataDelta.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb25b97b9f965bb35e7205a697aba7887067af6619adc30e12487cb0dc06f057"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractIndex: TooManyMethods \u2014 46 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/AbstractIndex.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe748ab66991f3c10b7e7391eeaa129d3a76587ddef8cbdc519a25cade03769"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/InMemoryWindowStore.java: FileTooLong \u2014 763 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: InMemoryWindowStore (67-1178). 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/InMemoryWindowStore.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79725247a7c823b96e450fa77f11b0c10ada7d7a812320ad4c37a9649ec9d465"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractConfig: 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":"clients/src/main/java/org/apache/kafka/common/config/AbstractConfig.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29971ab7e57a0b1b9d7d68084f3eb4b599430f05e612aa6811cd9f042cc056d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DelayedShareFetch: 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":"core/src/main/java/kafka/server/share/DelayedShareFetch.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ed625226b4a472d79e8ba8e33b964989ad81bdb73eba27023861e6ab692b1a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StreamsGroupService: 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":"tools/src/main/java/org/apache/kafka/tools/streams/StreamsGroupCommand.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e857e4c9ea2f28e1fd74f4e631a5c24dbd79c88ee089968e9bdfc9e9b4df807"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/StreamsMembershipManager.java: FileTooLong \u2014 742 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: StreamsMembershipManager (69-1441). 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4d862439e069dac2c96f32259922cdee199973cb244c32ec60f0aa78e23961"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: types/Type.java: FileTooLong \u2014 735 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: Type (31-1191). 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":"clients/src/main/java/org/apache/kafka/common/protocol/types/Type.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65ce726c62b0f46756aead5479adbcb4f7b837644d736aa15bff3f2df6235bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: storage/KafkaConfigBackingStore.java: FileTooLong \u2014 734 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: KafkaConfigBackingStore (194-1339). 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":"connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a645561656be4ae880dd3e1875ac02e8dfc2e1ae2a894fbbf9373d256cef63"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Metadata: TooManyMethods \u2014 44 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":"clients/src/main/java/org/apache/kafka/clients/Metadata.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ef918e0c502d3dc768d6bcb7ee7b67f77e1493205563b9dd6c638b239ee2a5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ApplicationEventProcessor: TooManyMethods \u2014 44 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/ApplicationEventProcessor.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25f9f26f2bfaef5f575f38020312ed7509ef1871ab72f471a6faba106bf3822"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PCollectionsImmutableNavigableSet: TooManyMethods \u2014 44 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":"server-common/src/main/java/org/apache/kafka/server/immutable/pcollections/PCollectionsImmutableNavigableSet.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29cfcdf52b40f74bd7ff69deb69b7c1e32267aeef3bbbc2281b66df64db2a23"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StreamsConfig: TooManyMethods \u2014 44 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":"streams/src/main/java/org/apache/kafka/streams/StreamsConfig.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e4598cc60719433a7cb5dd3d11549617cffc9793a9616651a07557fd44f252"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TopologyTestDriver: TooManyMethods \u2014 44 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":"streams/test-utils/src/main/java/org/apache/kafka/streams/TopologyTestDriver.java"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"db773368f8701cfd3468c26ff5c99152ad72af8c5996611c1f691cef0e808c55"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metrics/StreamsMetricsImpl.java: FileTooLong \u2014 728 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: StreamsMetricsImpl (53-1012). 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/metrics/StreamsMetricsImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb909c5c825c2b1b1ff3e29f5acb5035079537c6c77546dbdf22134eaea02f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: share/ShareCoordinatorService.java: FileTooLong \u2014 727 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: ShareCoordinatorService (85-1200). 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":"share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa40cb2d6c6fc9b83058671b793d4789ca7f8f83226cfc705bfc2c0adc460541"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/TransactionsCommand.java: FileTooLong \u2014 726 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: TransactionsCommand (68-1062). 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":"tools/src/main/java/org/apache/kafka/tools/TransactionsCommand.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b7fdf610d84432c6384ebda84a0ab2ecf21572017b21b539f4d3b9435b8f14"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/StoreChangelogReader.java: FileTooLong \u2014 725 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: StoreChangelogReader (71-1247). 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StoreChangelogReader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec10426f19f8abba7a10222cca3b61d9756e69877e025293a6f0b894c8887ffc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Request: TooManyMethods \u2014 43 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":"server/src/main/java/org/apache/kafka/network/Request.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe3323d6751b778b899f66c0851978df12578ce9c6b589e69e7b78186843f0c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ReadOnlyTask: TooManyMethods \u2014 43 methods. Most of these members implement internals.Task (42 of 43 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/ReadOnlyTask.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa52f466faf8ed27b978b2c103f8e789097957ef20edfeb519f9cbb48affedbb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StreamsPartitionAssignor: TooManyMethods \u2014 43 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsPartitionAssignor.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c935f17a8a491d618594384fdd2f76ffe8cd3a8cf6acad13b3d294bca4246d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RocksDBMetrics: TooManyMethods \u2014 43 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/metrics/RocksDBMetrics.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"84ef13f23c1dadbacda5a97af833464e883e582667474ff575c5e1cbd6974f98"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: group/GroupConfig.java: FileTooLong \u2014 712 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: GroupConfig (48-1200). 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupConfig.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1abfa29cef8c464be691a70e3d2d8f163473febf24ac893f09b5a8b27780d04"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: share/DelayedShareFetch.java: FileTooLong \u2014 705 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: DelayedShareFetch (81-1272). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/DelayedShareFetch.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbe6584a23b8cfc78ee715599171ec516f0cbf84c82e6f04d71fa383028ec4b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConsumerCoordinator: 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1ce958e02740ecca6d051c6bbdf5edc9c91b2963ee3ccb443a554ad866566a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SchemaBuilder: 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":"connect/api/src/main/java/org/apache/kafka/connect/data/SchemaBuilder.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e0428356f8bdb126872bf5cea6c49fd059ff313ee1c65edeb587b15d7c3b50"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InMemoryWindowStore: 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/InMemoryWindowStore.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bd354badd46aed7c024aae4095d14114fd5b81541c8e53d65db8471916191d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/Sender.java: FileTooLong \u2014 698 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: Sender (79-1144). 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":"clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03771e2d82ccfd2e249f3e9ad20e7b7eab18ba47f2824ef2cc37674f97d11dac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KafkaProducer: 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":"clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"0842f61cea565bf9568b3c038d7a99125e723a7fdd6afa5082c4f7eb2e17d0bd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Metrics: 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":"clients/src/main/java/org/apache/kafka/common/metrics/Metrics.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebc75344b974a1918a6368f24434f2e994c5a22dce522568f2fc4dcd5c33221"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LegacyRecord: 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":"clients/src/main/java/org/apache/kafka/common/record/internal/LegacyRecord.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"011c6211d85d14a72e517d714c0dd7b677cc9ee7b2b2e63a1e3df756badb9981"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/DumpLogSegments.java: FileTooLong \u2014 680 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: DumpLogSegments (102-954). 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":"tools/src/main/java/org/apache/kafka/tools/DumpLogSegments.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b730cb3a8c33f4c58c39911e0904fc97e2d6f0ed0eebdea20fbb53427657e2d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: group/OffsetMetadataManager.java: FileTooLong \u2014 679 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: OffsetMetadataManager (80-1342). 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/OffsetMetadataManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"330bcd911c3ed19be5bdffff8e0860d4ce24a4465989640a78ee52f1a95a57e9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractLegacyRecordBatch: TooManyMethods \u2014 40 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":"clients/src/main/java/org/apache/kafka/common/record/internal/AbstractLegacyRecordBatch.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2bd5ab35537f1f17f8db9f4ce7b326cb0d3cd0a9c9a2f4962e53c5ba5ccdf51"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConnectHeaders: TooManyMethods \u2014 40 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":"connect/api/src/main/java/org/apache/kafka/connect/header/ConnectHeaders.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"274f9adecd15bb16625fbcefa9bfa751f981934188ab476e528fd353a8c95eae"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KafkaStatusBackingStore: TooManyMethods \u2014 40 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":"connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaStatusBackingStore.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5f2411b7a736a52be624071229c2ac685cd7e9846d9286339718360e02373d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KafkaRaftLog: TooManyMethods \u2014 40 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":"raft/src/main/java/org/apache/kafka/raft/internals/KafkaRaftLog.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd127af113213dd24f89502700a83bc44babdf662a52fdf85091ea70dc908943"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Tasks: TooManyMethods \u2014 40 methods. Most of these members implement internals.TasksRegistry (35 of 40 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/Tasks.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e27d26a194b25390f4e36a1666e5be4d853eac74b54493c75e7213edf11f7a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MockProcessorContext: TooManyMethods \u2014 40 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":"streams/test-utils/src/main/java/org/apache/kafka/streams/processor/MockProcessorContext.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a80d8cea503b4dee4f29b3942b6c97e56ba5c526430f895b0d6d30169cfe34"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/TopicCommand.java: FileTooLong \u2014 665 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: TopicCommand (81-978). 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":"tools/src/main/java/org/apache/kafka/tools/TopicCommand.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c67063a98e85905646cda6b83c7f7d6c6cc5985818ed0feae890a254c9e5a67"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: assignment/TaskAssignmentUtils.java: FileTooLong \u2014 658 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: TaskAssignmentUtils (57-1048). 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":"streams/src/main/java/org/apache/kafka/streams/processor/assignment/TaskAssignmentUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8612a1cc29d608f6c6b224e0f53a479a8259efe8f2555331f85a4d47bcac71"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/InternalTopicManager.java: FileTooLong \u2014 652 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: InternalTopicManager (68-949). 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopicManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa1ac59dfc341c7a13699ec8e41b2d454a127006308a396e5042550929e6db8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkerSinkTask: TooManyMethods \u2014 39 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerSinkTask.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4b78876d9ca0458fe9cc2d48e2b231662a4400dc899ea98bcb1b8ff47deeeb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ShareCoordinatorShard: TooManyMethods \u2014 39 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":"share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorShard.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf02c6e6298b33a55f2cc3d9e38f228b02c428590d043d9f3f53279ac22fc02"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RemoteLogManagerConfig: TooManyMethods \u2014 39 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":"storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManagerConfig.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"fefb6cf027aac3c1849bf0fcdb0bb3af3e507732ab70a9e434021b9c0c24e1b5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LogConfig: TooManyMethods \u2014 39 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogConfig.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8bb765e1dd5752803f93fc5e6d1465cfd3309921d2562c278bbe35a6a01ef5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConsumerGroupService: TooManyMethods \u2014 39 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":"tools/src/main/java/org/apache/kafka/tools/consumer/group/ConsumerGroupCommand.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7b328cdf93845e675c4d4334fed3d26504870a7bffb0be7d1a9c70df9b8a51"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raft/LeaderState.java: FileTooLong \u2014 647 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: LeaderState (63-1085). 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":"raft/src/main/java/org/apache/kafka/raft/LeaderState.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e10e67544c0f31bd459a9bb421ec3ca13c45ece254a58e3634742d0c95fe9e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/RecordAccumulator.java: FileTooLong \u2014 646 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: RecordAccumulator (70-1324). 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":"clients/src/main/java/org/apache/kafka/clients/producer/internals/RecordAccumulator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f213b368e1bace143075bdcbe045d77298b7eff68dcc35fae50c0f0193544e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/WorkerSinkTask.java: FileTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: WorkerSinkTask (80-950). 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerSinkTask.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e590da9a7995deb12536974c075b09a44979f722ab40f8dfdd539a747950581e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: streams/StreamsGroup.java: FileTooLong \u2014 634 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/StreamsGroup.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc08cfea953a6fda128272f86f1e0b383cd73754f73a30459f68edccffd7f7df"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: share/ShareCoordinatorShard.java: FileTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: ShareCoordinatorShard (75-1063). 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":"share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorShard.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c383b5641f968fb296b4af04f8759919bbaaa13d65516a7212bb21b61e4cc512"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CommitRequestManager: 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8475bd3b189238cf25251b75ecd4a7f1d38aabda54f0f8496cd3ffc808188205"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModernGroup: 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/ModernGroup.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b629824feec40642ce671b1a14d5e6f1f2018d9663744c4785e0572926fb6710"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StateDirectory: 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StateDirectory.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3489b78cfc173e37afb76a1f6a7ac8fbb12afcd77c94552db5d62b46f26e2a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MeteredKeyValueStore: 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/MeteredKeyValueStore.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"14792278910280003d22ed297f0bda9a64cf4c8434e3e4a4ca9c81c93d7233c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: classic/ClassicGroup.java: FileTooLong \u2014 631 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: ClassicGroup (77-1491). 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/classic/ClassicGroup.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5bad889ed6d137bd4bccd0e8a6e2c2d71510ed46d3cb04fd160d70b658881b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/AbstractMembershipManager.java: FileTooLong \u2014 629 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b38b14572821477ff01487626bac98f2ceb4978cf22c5fe4b5cbee4cc01c48"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dlq/ShareGroupDLQStateManager.java: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: ShareGroupDLQStateManager (86-1057). 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":"server/src/main/java/org/apache/kafka/server/share/dlq/ShareGroupDLQStateManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"183e693e507fca5b50a1f2c2f5a34a369bef563e77d98074fbc8170b7cb5a1fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metrics/RocksDBMetrics.java: FileTooLong \u2014 623 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: RocksDBMetrics (38-803). 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/metrics/RocksDBMetrics.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e442e0cb353368ceb196a95eae8da12f334c37a2a9002e368dc84604541778e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: consumer/ConsumerGroup.java: FileTooLong \u2014 622 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: ConsumerGroup (82-1395). 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/ConsumerGroup.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"707b92d79efa612024c1c11393f842978d984571cf9bb6c81e0fa6583263288c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distributed/IncrementalCooperativeAssignor.java: FileTooLong \u2014 620 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: IncrementalCooperativeAssignor (62-975). 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/IncrementalCooperativeAssignor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5f7189ab52c5d76338e97e4702323b4f02f6a51dbd84377ed5cda0d34668d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/InMemorySessionStore.java: FileTooLong \u2014 619 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: InMemorySessionStore (62-954). 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/InMemorySessionStore.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"378a0ad5c24e751d4c247457d9be6209ad0f9403e280692fe3f4c89739a48b4b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: KRaftMetadataCache: TooManyMethods \u2014 37 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":"metadata/src/main/java/org/apache/kafka/metadata/KRaftMetadataCache.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc46262752ede1e7ca3d08fbd3bf2e6b18918861ed6f6fe2bf380c56123e18a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/StateDirectory.java: FileTooLong \u2014 609 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: StateDirectory (89-1019). 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StateDirectory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2643add88a7485404704e0257ae00d414f3ad92e87749d5b7b74cf305a638399"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConsumerNetworkClient: 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerNetworkClient.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"8766aba8ead56cb4949b71914944fcfd007b77e6b13c7e6937193384ad7100c8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StandaloneHerder: 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/standalone/StandaloneHerder.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"73697fd1f6adea1b6e6934997ae2d8c8af98a9e64047d406b4a3e86b41b457ad"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ControllerMetadataMetrics: 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":"metadata/src/main/java/org/apache/kafka/controller/metrics/ControllerMetadataMetrics.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2e277bb12a9d7442b7fb317cb2da791ede3f722d91bbbd8715866a42a2d8a8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RaftUtil: 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":"raft/src/main/java/org/apache/kafka/raft/RaftUtil.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f3150da9783d3b0ba93037c48de4d12bd5218d9fcb9facea152a1340f147ad"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProcessorStateManager: 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorStateManager.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"b644dfc6aadc4f499213f3a8e70589f6074c9d8b48ead460f6c9d0cfa0be1ae3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InMemorySessionStore: 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/InMemorySessionStore.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9ab152a31704cac3470607ba0c37c542fb373b9b9ca3457fba49ff2c30a4e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: consumer/ConsumerConfig.java: FileTooLong \u2014 587 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: ConsumerConfig (65-863). 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":"clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerConfig.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c998815e75ecc169ef7b46159a80b2462efe94712e76e3edfefe048c6603b539"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: network/SslTransportLayer.java: FileTooLong \u2014 586 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: SslTransportLayer (58-1063). 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":"clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e3b063ef7a218febfd0ad6fa54dec96646d89b2ff303fc7d6862f520d0b60f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DelegatingRebalanceConsumer: 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/DelegatingRebalanceConsumer.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4438ce41fed413f54142a0b42086e39ce80762e4b79212a6dfecb6fe9ad32cd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TopicPartitionState: 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/SubscriptionState.java"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20561e132dcf2355e8bad209e95682ebf185bd3cf08581330b92d8d6ff9272a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Sender: 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":"clients/src/main/java/org/apache/kafka/clients/producer/internals/Sender.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"21686d5760d7a3524191b8328e1f8f37993be1a7baf322251a7bf6597a18fe63"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ByteUtils: 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":"clients/src/main/java/org/apache/kafka/common/utils/internals/ByteUtils.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"21171ddd2eeb72e9020f38f91a5bb25ea0fcac4e850ee0cf35f98d42d9d7f603"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BrokerTopicStats: 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":"storage/src/main/java/org/apache/kafka/storage/log/metrics/BrokerTopicStats.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b8b7e55d09d022155a84a8ec7566f57c09fdd9538717c7991ff57a0e7d8911"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/MeteredTimestampedKeyValueStoreWithHeaders.java: FileTooLong \u2014 582 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: MeteredTimestampedKeyValueStoreWithHeaders (78-927). 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/MeteredTimestampedKeyValueStoreWithHeaders.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b608b318e8609c5f7a9409eda655c06372b3388ffdc0a0874bb5b8a74663ad2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: metrics/GroupCoordinatorMetrics.java: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: GroupCoordinatorMetrics (48-829). 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/metrics/GroupCoordinatorMetrics.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"504de495424a6c6e3b86fb4f40f6c6c756cb6688e617e8028bca513b15107f1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/RocksDBVersionedStore.java: FileTooLong \u2014 568 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBVersionedStore.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b6f9f6c92c5af3f1a89ea050f5dc683e646e01ca8667505d4941ab69652dd5b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultRecord: TooManyMethods \u2014 34 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":"clients/src/main/java/org/apache/kafka/common/record/internal/DefaultRecord.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2dff6765cfb2f7600246313ff05a21b250b1958bede9495c4c83b3e254e4eb4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GroupCoordinatorRecordHelpers: TooManyMethods \u2014 34 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorRecordHelpers.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cce07c6efa0b5b857ad5e7d88a0a57f11f78520e39e7348b3b700ef853cc5ce"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Builder: TooManyMethods \u2014 34 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":"metadata/src/main/java/org/apache/kafka/controller/QuorumController.java"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ca4b60dc10d6e2c8bcd3e8ff045a65b162233f22080428929988ccb2cf643d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClientQuotaManager: TooManyMethods \u2014 34 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":"server/src/main/java/org/apache/kafka/server/quota/ClientQuotaManager.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cfdaa03b3bba1f04ac9c669490b51839bcb2dd69f9076b6af0bb3ce994954e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Topology: TooManyMethods \u2014 34 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":"streams/src/main/java/org/apache/kafka/streams/Topology.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef54fb1f91f280b6e64459cf827e5acb16ff07c35dd9fbce7db0d0ae88e9cf5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: InternalStreamsBuilder: TooManyMethods \u2014 34 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":"streams/src/main/java/org/apache/kafka/streams/kstream/internals/InternalStreamsBuilder.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d465d77374c4744913bedb31a838cc62ac4ca2d8606a408b713ed4c3ff1ebea"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AssignmentInfo: TooManyMethods \u2014 34 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/AssignmentInfo.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"328efd116bad338ce590a7df5ea35a69fec7dff766a1a1c52d4f9dbc06307fde"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractRocksDBSegmentedBytesStore: TooManyMethods \u2014 34 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/AbstractRocksDBSegmentedBytesStore.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f09d719906bd8e8e81cef03983c2f91a594139494b2c3ad8e57de2ff7671780"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NamedCache: TooManyMethods \u2014 34 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/NamedCache.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8414d75e68262513bb6b1a9cd02cde5111405b19802fddff1a8eedef9412d7d6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raft/QuorumState.java: FileTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: QuorumState (84-933). 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":"raft/src/main/java/org/apache/kafka/raft/QuorumState.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e83e0bc3fb5928edfecc954048f6baa225e9834475018629d0492afeddc7f1f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/ClientTelemetryReporter.java: FileTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: ClientTelemetryReporter (106-1019). 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":"clients/src/main/java/org/apache/kafka/common/telemetry/internals/ClientTelemetryReporter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff178c8d6986a240f115ee3f42a3704726b02bbe19cef6c229de7c74da798d94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/TimeOrderedCachingWindowStore.java: FileTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: TimeOrderedCachingWindowStore (66-801). 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/TimeOrderedCachingWindowStore.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0959c341ae38083850581341ae743bcfb3760f76e8cce34e0320e05deaa97fac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/StreamsGroupHeartbeatRequestManager.java: FileTooLong \u2014 553 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: StreamsGroupHeartbeatRequestManager (68-872). 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsGroupHeartbeatRequestManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7bcf212917a73e1134a4ac516cca3a0caf8af4e56e617aec6a34eebeb95424"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: group/ShareGroupCommand.java: FileTooLong \u2014 553 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: ShareGroupCommand (74-775). 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":"tools/src/main/java/org/apache/kafka/tools/consumer/group/ShareGroupCommand.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bde7cb69268fddc5ce042038e3ae2f34c4d3fe08cd34dc3b095c1245c2d0339"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: share/SharePartitionManager.java: FileTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: SharePartitionManager (86-985). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartitionManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba88d7981f2bde2859985d1b8df5567cce2a37c09766d1f3b6261d1f0c41d5ad"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClusterConnectionStates: TooManyMethods \u2014 33 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":"clients/src/main/java/org/apache/kafka/clients/ClusterConnectionStates.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71cfe88da98558730c67beed1d05e51ef797b58f7a17f4f539e3ac7c55b0211"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ShareConsumeRequestManager: TooManyMethods \u2014 33 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92c1de1267e1a875c434907a902a74449ecaa36fd5468bfc2636f226826e465"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FileRecords: TooManyMethods \u2014 33 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":"clients/src/main/java/org/apache/kafka/common/record/internal/FileRecords.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"afcc01d1a5627f8c40426e97de44c8dfa5b9d4879a575700c442bd92932ce1f9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WorkerTask: TooManyMethods \u2014 33 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerTask.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8072b71517cdaa3a2dcbadd540fb1b3d0fac997c6b2efe96796714a54cbd92fb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClassicGroupMember: TooManyMethods \u2014 33 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/classic/ClassicGroupMember.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd02c46492dcd312c11316b83122237b0b0a1abcf63af8d266222007d55afc2b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractProcessorContext: TooManyMethods \u2014 33 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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/AbstractProcessorContext.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"29791b9fdf617ddf83f37841ba246bff2adb2fca34712edc80f3c791c91e311b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: controller/ClusterControlManager.java: FileTooLong \u2014 548 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: ClusterControlManager (83-880). 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":"metadata/src/main/java/org/apache/kafka/controller/ClusterControlManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"716323946cce8e045250119dfe90835cc8d9a912e725792b5ec67b7993a71c22"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: raft/RaftUtil.java: FileTooLong \u2014 545 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: RaftUtil (56-766). 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":"raft/src/main/java/org/apache/kafka/raft/RaftUtil.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b475199e08b98719aee57e99bb92a7a314adaeff7164247580fc0bd3d5b932b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: json/JsonConverter.java: FileTooLong \u2014 541 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: JsonConverter (65-766). 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":"connect/json/src/main/java/org/apache/kafka/connect/json/JsonConverter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"252fa90d86931164b1b8d96ff8d2b2f73e8c721ceef9d04f003dc3686b8dd348"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internal/MemoryRecords.java: FileTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: MemoryRecords (49-835). 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":"clients/src/main/java/org/apache/kafka/common/record/internal/MemoryRecords.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c321facb33cca951f66299dd07a9e656210a80cb489aca94197adc7000ff73a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: log/LocalLog.java: FileTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: LocalLog (69-1072). 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LocalLog.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89c17d1a172af321ec4e15e6acd67d4bdb8a3fba7508ed580ea83af8274a0ed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: controller/ConfigurationControlManager.java: FileTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: ConfigurationControlManager (70-812). 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":"metadata/src/main/java/org/apache/kafka/controller/ConfigurationControlManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7f636b6e0e1aa01b70535906d7db92e989f50ddb0907dbd41ccb5a198f1e5e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClusterControlManager: 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":"metadata/src/main/java/org/apache/kafka/controller/ClusterControlManager.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0a70755099247247ce4c58287a0e200069a9eb3b06049777bae34ae81a6e2e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PCollectionsImmutableMap: 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":"server-common/src/main/java/org/apache/kafka/server/immutable/pcollections/PCollectionsImmutableMap.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b8f23760444478122c5c2e1ed8cdc3b264f37970c1d255aaf0d0343c4b0d71"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LeaderEpochFileCache: 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":"storage/src/main/java/org/apache/kafka/storage/internals/epoch/LeaderEpochFileCache.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"81fefa0f543d16d4c033a03cf217d442b589a9210b474e68840088c5b08cef5f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LogSegments: 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogSegments.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4901ecbbcecc3f660e175a35675983e43a09d825dbe9daefeb47fc29543ba0f6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MeteredTimestampedKeyValueStoreWithHeaders: 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/MeteredTimestampedKeyValueStoreWithHeaders.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4522de8040b39697d3268f9e84e32417774f7a4b49dae49b08f3fc31fe4a3a9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MockProcessorContext: 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":"streams/test-utils/src/main/java/org/apache/kafka/streams/processor/api/MockProcessorContext.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f8fb6958047eefb2c389725e250d76afbdace99b2090eb0d212a5a1d17a149"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: events/ApplicationEventProcessor.java: FileTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: ApplicationEventProcessor (63-900). 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/ApplicationEventProcessor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be4c677b2b99369eb2339fd37bad8056cb15a741f69e0e70cf7d422f1faef3b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: producer/ProducerConfig.java: FileTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: ProducerConfig (56-743). 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":"clients/src/main/java/org/apache/kafka/clients/producer/ProducerConfig.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efcc2dbb9c4a03a53a5419ae3d116817e69663be679845feba7d561c387600e3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: distributed/DistributedConfig.java: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: DistributedConfig (59-746). 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedConfig.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f787aee7c6276884ff8c608dd5d8ec0916ed5450b3bda8c8516112e49f794a20"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/StreamsResetter.java: FileTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: StreamsResetter (95-792). 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":"tools/src/main/java/org/apache/kafka/tools/StreamsResetter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"773032590d270a1485d6d188d7bca199f752dada98a1e79c9b7499157540d79e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ImplicitLinkedHashCollection: 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":"clients/src/main/java/org/apache/kafka/common/utils/internals/ImplicitLinkedHashCollection.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e2b0fee91df6acf94a668117055bbf339fc6945c06a1e252dd6a5fb26c1d47"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Formatter: 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":"metadata/src/main/java/org/apache/kafka/metadata/storage/Formatter.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1a0fb5418efd96011749b9333d934ec0772ced32d424476acb5558d680c24e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ShareCoordinatorService: 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":"share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorService.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcdb821ff723e1a485c3529573ef94cc47842b29ab41fbe5e51673866d611a8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LogCleanerManager: 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogCleanerManager.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2f80400bf32f3d61c30498ff3babd80cda0b3482a314c4650267864b8c5256"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RemoteIndexCache: 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/RemoteIndexCache.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2a8c1ec8901141f9d213b56f2e12a6d3b4e198077f605b2f0395f266627614"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RocksDBVersionedStore: 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":"streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBVersionedStore.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6dc596657e7a119de8a53ea86ceb1a0abc00a40be692c2fc378a4f6cfd205a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ShareGroupService: 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":"tools/src/main/java/org/apache/kafka/tools/consumer/group/ShareGroupCommand.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6fada1e16adb659efa1523ab9baa5d92df72f666172ab827b8f3659b8ce618e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: log/LogConfig.java: FileTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: LogConfig (64-714). 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":"storage/src/main/java/org/apache/kafka/storage/internals/log/LogConfig.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b29c1c41d306f9ffe60e0da7bff07b2b744709cf049f8e14a0d3cedcd11379"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/KafkaRaftLog.java: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: KafkaRaftLog (79-838). 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":"raft/src/main/java/org/apache/kafka/raft/internals/KafkaRaftLog.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8953f23de6ae3508d585179e6273bcb7e547404f48f8be2c2421b0bd460c8d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: runtime/ConnectorConfig.java: FileTooLong \u2014 514 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: ConnectorConfig (73-809). 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/ConnectorConfig.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97faa9233be72bb45dd0067ce4ee15e3a7b4564e7470e647cdbf03ab74f04e3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: internals/OffsetsRequestManager.java: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: OffsetsRequestManager (80-935). 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/OffsetsRequestManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75d912d98045c7b3d4524744a04c05083186b31bb7cc007138efc722eb9c8d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/ReplicaVerificationTool.java: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: ReplicaVerificationTool (109-711). 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":"tools/src/main/java/org/apache/kafka/tools/ReplicaVerificationTool.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3010b0ff5a6d4418555fd7c5ac4ce45a516f3dbfd925155bc6ee9a6b5b07d180"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/VerifiableShareConsumer.java: FileTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: VerifiableShareConsumer (103-776). 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":"tools/src/main/java/org/apache/kafka/tools/VerifiableShareConsumer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1722b25c65f3db523ae779751939aee10e038d9cd87643007923718c9d1c70b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mirror/MirrorSourceConnector.java: FileTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: MirrorSourceConnector (84-751). 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":"connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorSourceConnector.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6000d3be2710c4d67e52987caae944c9c4efa2deb1981993fdb1e264927a971c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/VerifiableConsumer.java: FileTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: VerifiableConsumer (94-757). 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":"tools/src/main/java/org/apache/kafka/tools/VerifiableConsumer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33086bd9303fdbf23d600c19205514cd42d3d7e1c713ff446ae5c5082097bd63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java:2097-2117 | connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java:2169-2189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java:2097\u0060 it begins part-way through the construct above it, so those exact 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java"},"region":{"startLine":2097}}}],"partialFingerprints":{"codehealthFindingId/v1":"9231bda90df54dfe36fb9ddebae283949af3a0adc255f5f9eaf6ea74820c8f1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/internals/DescribeShareGroupsHandler.java:168-187 | clients/src/main/java/org/apache/kafka/clients/admin/internals/DescribeStreamsGroupsHandler.java:358-377 \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. The matched lines also transfer control out of the body holding them, 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":"clients/src/main/java/org/apache/kafka/clients/admin/internals/DescribeShareGroupsHandler.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d199ec1bd86d45643dc95303dc7d95f56829f60acae39cf6c719db3fe540b188"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:630-646 | server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:831-847 | server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:1012-1028 | server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:1193-1209 | server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:1371-1387 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:630\u0060 it begins part-way through the construct above it, so those exact 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-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f973ba16d30b053c4e0430d5df3ba33a6ab312d9155d94a0cd285fd9098c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): clients/src/main/java/org/apache/kafka/clients/admin/internals/DeleteConsumerGroupOffsetsHandler.java:150-168 | clients/src/main/java/org/apache/kafka/clients/admin/internals/ListConsumerGroupOffsetsHandler.java:203-220 | clients/src/main/java/org/apache/kafka/clients/admin/internals/RemoveMembersFromConsumerGroupHandler.java:128-144 \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. The matched lines also transfer control out of the body holding them, 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":"clients/src/main/java/org/apache/kafka/clients/admin/internals/DeleteConsumerGroupOffsetsHandler.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3492095f37026b6e18ff877dc751f012fb1a06b9dde37d09850b54d83c4c5ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3571-3587 | clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3729-3745 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3571\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":3571}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0aa6ed07d44f966afb8eb45a715aa192270a1428dddb780be279483547b5196"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:552-568 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumerImpl.java:315-332 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:552\u0060 it begins part-way through the construct above it, so those exact 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ecf3988ce7aeacb58b53d6f76270fdc61d00d22eccdfc3e60eaaab7224907a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): server/src/main/java/org/apache/kafka/server/KRaftTopicCreator.java:106-122 | server/src/main/java/org/apache/kafka/server/KRaftTopicCreator.java:149-165 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/org/apache/kafka/server/KRaftTopicCreator.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. The matched lines also transfer control out of the body holding them, 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/org/apache/kafka/server/KRaftTopicCreator.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"409068fbf9a44740cc6717f68a2322338b229c8f98335ebae8990e6da23d383e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): clients/src/main/java/org/apache/kafka/clients/admin/internals/DescribeClassicGroupsHandler.java:169-184 | clients/src/main/java/org/apache/kafka/clients/admin/internals/DescribeShareGroupsHandler.java:165-181 | clients/src/main/java/org/apache/kafka/clients/admin/internals/DescribeStreamsGroupsHandler.java:356-371 \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. The matched lines also transfer control out of the body holding them, 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":"clients/src/main/java/org/apache/kafka/clients/admin/internals/DescribeClassicGroupsHandler.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca1ec4d032a6394169ba59b98639d653b622adb205fe08848ad14a07f5dcbc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): server-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java:303-318 | server-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java:457-473 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java:303\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"e889b2a21bff23134218611bf3abd8ade5c26ca03c150a9ec1dd2516716071f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): jmh-benchmarks/src/main/java/org/apache/kafka/jmh/coordinator/GroupCoordinatorShardLoadingBenchmark.java:126-141 | jmh-benchmarks/src/main/java/org/apache/kafka/jmh/coordinator/GroupCoordinatorShardLoadingBenchmark.java:197-212 \u2014 both copies are in the same file, so extract the block 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":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/coordinator/GroupCoordinatorShardLoadingBenchmark.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a30f2104e3a62220a3928e3fcb6f4b814194c872ce40e9034434b28e2e3d85d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerRebalanceListenerInvoker.java:66-80 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerRebalanceListenerInvoker.java:96-110 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerRebalanceListenerInvoker.java:126-140 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerRebalanceListenerInvoker.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. The matched lines also transfer control out of the body holding them, 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerRebalanceListenerInvoker.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41b89bd2eccc599568faa67bb2ce629666a8cb758c0f4b57594a19affef6403"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorService.java:666-680 | share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorService.java:775-789 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorService.java:666\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorService.java"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a8a654e7f154751120caebd5e3e8a85294c1280e4917744c7fc55a406a01e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/internals/DeleteRecordsHandler.java:131-144 | clients/src/main/java/org/apache/kafka/clients/admin/internals/ListOffsetsHandler.java:154-167 \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 \u0060clients/src/main/java/org/apache/kafka/clients/admin/internals/DeleteRecordsHandler.java:131\u0060 it begins part-way through the construct above it, so those exact 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":"clients/src/main/java/org/apache/kafka/clients/admin/internals/DeleteRecordsHandler.java"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9ab0f4626fee24fb736c6de652fb7cd3cc9c09cb3f82d6a8600ed8f5767659"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:2014-2027 | clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3246-3259 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:2014\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":2014}}}],"partialFingerprints":{"codehealthFindingId/v1":"673c901e812ef99c434ff7277276ee00a5d2e25c8b4ccc7fb58a1fbd423d3a55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:1560-1573 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ClassicKafkaConsumer.java:1124-1137 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:1560\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java"},"region":{"startLine":1560}}}],"partialFingerprints":{"codehealthFindingId/v1":"1955ef39c5628e4077caeb44a8c00dfb7aa6480edb5a175e8948b04c16ab3d77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/OffsetMetadataManager.java:666-679 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/OffsetMetadataManager.java:744-757 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/OffsetMetadataManager.java:666\u0060 it begins part-way through the construct above it, so those exact 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/OffsetMetadataManager.java"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f66eb586cd1b410a49d97d46859df86b2a1f6af4a5a6f7703965695bac9a81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:2034-2046 | clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:2107-2119 | clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3266-3279 \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 \u0060clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:2034\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":2034}}}],"partialFingerprints":{"codehealthFindingId/v1":"af17b3f1862fc32b873af54ed2a7e90e8e63ae5066024bdf551b00548ed55b14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorCheckpointConnector.java:173-185 | connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorHeartbeatConnector.java:94-106 | connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorSourceConnector.java:293-305 \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":"connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorCheckpointConnector.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fe008417276ed3e01366e4d35d0624ae898de0c3414ad5b21837a0bcab8e7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3367-3379 | clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3401-3413 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3367\u0060 it begins part-way through the construct above it, so those exact 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":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":3367}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3780736780610d2c587e428aba7b315a26532fa487cc5cb72982b23ed9dfd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java:459-471 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java:856-868 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java:459\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ccd3cbc64cc69054a66f62bf8747198f0519df355905e8877e11b12398228f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java:1314-1327 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java:1573-1585 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java:1314\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e45f7296e11d430895164f957784a34864932cc44285835ba27c6d99d722aa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareSessionHandler.java:276-288 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareSessionHandler.java:313-325 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareSessionHandler.java:276\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareSessionHandler.java"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"4184a68d5111f512a576ad5578008aef672c57e250c4a9faf93a7686eb2b7cd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/WakeupTrigger.java:101-113 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/WakeupTrigger.java:120-132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/WakeupTrigger.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/WakeupTrigger.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"26aaa10fbb7f748a695b75cc895998488ea852a6d74310932580d5b35e38b601"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntime.java:1332-1345 | coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntime.java:1638-1650 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntime.java:1332\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntime.java"},"region":{"startLine":1332}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5e7478482bd2d587ceb708dc94ed96233fc2290d0ffedcf6686b75b10b64e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/CurrentAssignmentBuilder.java:293-305 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/CurrentAssignmentBuilder.java:388-400 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/CurrentAssignmentBuilder.java:293\u0060 it begins part-way through the construct above it, so those exact 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/CurrentAssignmentBuilder.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5e3987c678d06e760d973789b34cafec034a12b1d0348a2eefd18a72ddea12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:5745-5757 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:6243-6255 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:5745\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":5745}}}],"partialFingerprints":{"codehealthFindingId/v1":"f514900eaba1144a7644dd40dfd40a06d7ae57ba3d189a7661d0af0996e45e57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): generator/src/main/java/org/apache/kafka/message/CoordinatorRecordJsonConvertersGenerator.java:68-80 | generator/src/main/java/org/apache/kafka/message/CoordinatorRecordTypeGenerator.java:69-81 \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 \u0060generator/src/main/java/org/apache/kafka/message/CoordinatorRecordJsonConvertersGenerator.java:68\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/CoordinatorRecordJsonConvertersGenerator.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"32479839ebc8ff9cacf2071f821075cd6301c6627cf671bd7228bf125f88a83c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): clients/src/main/java/org/apache/kafka/clients/admin/DescribeClassicGroupsResult.java:54-65 | clients/src/main/java/org/apache/kafka/clients/admin/DescribeConsumerGroupsResult.java:54-65 | clients/src/main/java/org/apache/kafka/clients/admin/DescribeShareGroupsResult.java:54-65 | clients/src/main/java/org/apache/kafka/clients/admin/DescribeStreamsGroupsResult.java:58-69 | clients/src/main/java/org/apache/kafka/clients/admin/ListConsumerGroupOffsetsResult.java:78-89 \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 \u0060clients/src/main/java/org/apache/kafka/clients/admin/DescribeClassicGroupsResult.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/DescribeClassicGroupsResult.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d572d3684db40ffeaae5251ccb097fc6a203da136cb9220cb615bc2a110948"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): server-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java:214-225 | server-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java:259-270 | server-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java:564-577 \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-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java:214\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted 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-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"003951e7b6990e172c45093bb17253dc2739553a0b6644a41bea3a7905b573b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:138-149 | server/src/main/java/org/apache/kafka/server/share/dlq/ShareGroupDLQStateManager.java:130-145 | server/src/main/java/org/apache/kafka/server/util/NetworkPartitionMetadataClient.java:84-96 \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 \u0060server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"299cc21d5badf6d7ecd6599ed52727702f5e6eb2fdd6075bf948138f1ba69b0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:5042-5053 | clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:5084-5095 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:5042\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":5042}}}],"partialFingerprints":{"codehealthFindingId/v1":"51077780387ca6adf4515891c10d418fbbebcc019bbcbdac712ae4f76b63f38f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/metrics/KafkaConsumerMetrics.java:61-72 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/metrics/KafkaShareConsumerMetrics.java:58-69 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/metrics/KafkaConsumerMetrics.java:61\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/metrics/KafkaConsumerMetrics.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5734114a5165c2800899ddba7aad770b4aa63993690b0a99acfc53f4a445cf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java:510-521 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java:556-567 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java:510\u0060 it begins part-way through the construct above it, so those exact 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"152554e900800185c0880e7ca0268c671dc83c4e6b6cdc02fdcdaad01ee255ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:1638-1650 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumerImpl.java:1018-1029 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:1638\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ee2580a8d50d48516efce063c06d7d927d00f26766d37d4cccc1ed1c374267"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/record/internal/DefaultRecord.java:320-331 | clients/src/main/java/org/apache/kafka/common/record/internal/DefaultRecord.java:383-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":"clients/src/main/java/org/apache/kafka/common/record/internal/DefaultRecord.java"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed99729569ef7f5b525935467f805738cbf1ada637889f9295f048660f532e44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): server/src/main/java/org/apache/kafka/server/KRaftTopicCreator.java:72-85 | server/src/main/java/org/apache/kafka/server/KRaftTopicCreator.java:130-141 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/org/apache/kafka/server/KRaftTopicCreator.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/java/org/apache/kafka/server/KRaftTopicCreator.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bcc1f8db86fd2c44e8775e95db8ec2e3ba86e9bb60a27fed47ec63112ab972"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/EagerAssignor.java:74-85 | connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/IncrementalCooperativeAssignor.java:133-144 \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 \u0060connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/EagerAssignor.java:74\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/EagerAssignor.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f1ecf1dc9994ca66ea19ed6d8a6361733257244f2e02ca454de7afb8650b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/controller/ActivationRecordsGenerator.java:48-59 | metadata/src/main/java/org/apache/kafka/controller/ActivationRecordsGenerator.java:123-134 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060metadata/src/main/java/org/apache/kafka/controller/ActivationRecordsGenerator.java:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/ActivationRecordsGenerator.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27b8bd13f28a36c64e6eb60c636b000b2e2f2f312783887aff7def4d2d0d39e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 13): generator/src/main/java/org/apache/kafka/message/ApiMessageTypeGenerator.java:285-295 | generator/src/main/java/org/apache/kafka/message/ApiMessageTypeGenerator.java:385-395 | generator/src/main/java/org/apache/kafka/message/CoordinatorRecordJsonConvertersGenerator.java:115-125 | generator/src/main/java/org/apache/kafka/message/CoordinatorRecordJsonConvertersGenerator.java:142-152 | generator/src/main/java/org/apache/kafka/message/CoordinatorRecordJsonConvertersGenerator.java:169-179 | generator/src/main/java/org/apache/kafka/message/CoordinatorRecordJsonConvertersGenerator.java:196-206 | generator/src/main/java/org/apache/kafka/message/CoordinatorRecordTypeGenerator.java:173-183 | generator/src/main/java/org/apache/kafka/message/CoordinatorRecordTypeGenerator.java:198-208 | generator/src/main/java/org/apache/kafka/message/CoordinatorRecordTypeGenerator.java:223-233 | generator/src/main/java/org/apache/kafka/message/MetadataJsonConvertersGenerator.java:83-93 | generator/src/main/java/org/apache/kafka/message/MetadataJsonConvertersGenerator.java:110-120 | generator/src/main/java/org/apache/kafka/message/MetadataRecordTypeGenerator.java:130-140 | generator/src/main/java/org/apache/kafka/message/MetadataRecordTypeGenerator.java:155-165 \u2014 there are 13 copies across 5 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 13 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060generator/src/main/java/org/apache/kafka/message/ApiMessageTypeGenerator.java:285\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/ApiMessageTypeGenerator.java"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36e1e5927ddd0d98ba41df674a996bdbc9f6837128a70d01c71e17e6bf1381a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/CurrentAssignmentBuilder.java:412-422 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/CurrentAssignmentBuilder.java:292-302 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/CurrentAssignmentBuilder.java:387-397 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/CurrentAssignmentBuilder.java"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"749cc8ebae59855392630afef8085913d5b4e0eb75b2327355825cc7e8853fb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/internals/AlterShareGroupOffsetsHandler.java:159-171 | clients/src/main/java/org/apache/kafka/clients/admin/internals/DeleteShareGroupOffsetsHandler.java:161-171 \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 \u0060clients/src/main/java/org/apache/kafka/clients/admin/internals/AlterShareGroupOffsetsHandler.java:159\u0060 it begins part-way through the construct above it, so those exact 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":"clients/src/main/java/org/apache/kafka/clients/admin/internals/AlterShareGroupOffsetsHandler.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26c3f79fcc0053737f5ede50ee7281107315b2a522a310f75553e4b0bf9720f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3495-3505 | clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3659-3669 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3495\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":3495}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8086c31ae137010dae7114c2364619e8c20ab2ecba1ed8082a7360e868d25c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3552-3562 | clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3710-3720 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3552\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":3552}}}],"partialFingerprints":{"codehealthFindingId/v1":"a396b3fa5030e9c5ed7677ce088dd26999518fe819cdd2ac97f74b2f67fa16b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractFetch.java:158-168 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:841-851 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractFetch.java:158\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractFetch.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26dbd9ed88d4662067ca189de5ce021b049b5f2e56e0fd595b7111f46d3a06b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java:237-247 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java:608-618 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java:237\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"b421e1ecbab98ec09b0441744ee766c421f931e6cba771fdaccbf85b3be3e37b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:1174-1184 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ClassicKafkaConsumer.java:818-828 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:1174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java"},"region":{"startLine":1174}}}],"partialFingerprints":{"codehealthFindingId/v1":"150c1a07c06740581c5c68012fec581c8ca5a8d598c1dc73d4a12306f86f9e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/TopicMetadataFetcher.java:117-127 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/TopicMetadataRequestManager.java:249-259 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/TopicMetadataFetcher.java:117\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/TopicMetadataFetcher.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3bda3a5bb571dc91f415aad6b40777928b626f88fa3b6078c36fcd45abc8b50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/config/provider/FileConfigProvider.java:68-78 | clients/src/main/java/org/apache/kafka/common/config/provider/FileConfigProvider.java:109-119 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/common/config/provider/FileConfigProvider.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":"clients/src/main/java/org/apache/kafka/common/config/provider/FileConfigProvider.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"25dec62010d4836a63ae7c829dc59856e7365b61c25abde35ffbb2a6d3ad1371"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): server-common/src/main/java/org/apache/kafka/server/metrics/KafkaMetricsGroup.java:62-72 | server-common/src/main/java/org/apache/kafka/server/metrics/KafkaYammerMetrics.java:106-116 \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":"server-common/src/main/java/org/apache/kafka/server/metrics/KafkaMetricsGroup.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfabcb33dc7a764313144e9eb2dd0d697fd03b059fcd16fbd4b28d1396c3b5da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/util/TopicAdmin.java:443-453 | connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorUtils.java:306-316 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"connect/runtime/src/main/java/org/apache/kafka/connect/util/TopicAdmin.java"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d22144b40cec5942a3a64799f461c316047618b1dace54276b206547125072d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java:1018-1028 | connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java:1056-1066 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java:1018\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c784432eda5bd7421dbbe0a76c283207ea983a619f489ecd32e6ad2606a00e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java:1698-1712 | connect/runtime/src/main/java/org/apache/kafka/connect/runtime/standalone/StandaloneHerder.java:445-455 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java:1698\u0060 it begins part-way through the construct above it, so those exact 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java"},"region":{"startLine":1698}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e8a2243bf4b50adfd41fbc2050fbe94a3d55eed9ee6baaed2d2b99818701b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:5265-5275 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:5308-5318 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:5265\u0060 it begins part-way through the construct above it, so those exact 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":5265}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6f8bd59b8795e032e3537510eb7abff69841cc5eb24e6989a2ea021ee36805"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:5726-5736 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:6037-6047 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:5726\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":5726}}}],"partialFingerprints":{"codehealthFindingId/v1":"11200767c3022cdca233b562afabe83736cd733f2fab300e89879e43d181c053"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:5873-5884 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:6199-6209 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:5873\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":5873}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fae72ab304bb6ca37302a1e6b58b61aee8d8d28f4469fb64b9d6961a075e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:5963-5973 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:6281-6291 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:5963\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":5963}}}],"partialFingerprints":{"codehealthFindingId/v1":"68209947b7aa0c7fdb6bea4555a4e69dfdb29dc1c1ef988e96ebd8c9c10e78f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): jmh-benchmarks/src/main/java/org/apache/kafka/jmh/fetcher/ReplicaFetcherThreadBenchmark.java:136-146 | jmh-benchmarks/src/main/java/org/apache/kafka/jmh/partition/PartitionMakeFollowerBenchmark.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/fetcher/ReplicaFetcherThreadBenchmark.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"c466bc0b88b7499e103e27f0f02583a9a478b36836b7cead7ca9900d1ef4a0e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/controller/BrokersToIsrs.java:124-134 | metadata/src/main/java/org/apache/kafka/controller/BrokersToIsrs.java:135-145 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/BrokersToIsrs.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d69be843638ccbaa7e07b5fd7b6f9f0595ac503fbc9bf988402994de686dab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/controller/DelegationTokenControlManager.java:242-252 | metadata/src/main/java/org/apache/kafka/controller/DelegationTokenControlManager.java:293-303 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/DelegationTokenControlManager.java"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b6fd52cd725b14f4833ddc0ee1ed8303e9fd68f7916515119c36f0e2b26bb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): clients/src/main/java/org/apache/kafka/clients/NetworkClient.java:1608-1617 | clients/src/main/java/org/apache/kafka/common/requests/RequestContext.java:100-109 | storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java:227-236 | server/src/main/java/org/apache/kafka/server/FetchSession.java:264-273 | connect/runtime/src/main/java/org/apache/kafka/connect/storage/ClusterConfigState.java:99-108 \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. Note what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction \u2014 check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/NetworkClient.java"},"region":{"startLine":1608}}}],"partialFingerprints":{"codehealthFindingId/v1":"78abc7653d3dfaa95e9d9869d52b24e726f87e8cb6f7a77e8b3b9dbafaf3c180"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:117-126 | clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRecord.java:157-166 | connect/runtime/src/main/java/org/apache/kafka/connect/runtime/AbstractWorkerSourceTask.java:247-256 | coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntime.java:1997-2006 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Note 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3f00a6cac5618e526f24dc5eaa133406954876a53f74baf46ce22c34700ebfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorService.java:689-698 | share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorService.java:798-807 | share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorService.java:907-916 | share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorService.java:1006-1015 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorService.java"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f7c241a1af37cba594660c69d4303bf3ac6623da773c86102ae0779d118fc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java:1384-1393 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java:1405-1414 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java:1426-1435 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java:1384\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b82aa722c2807efc97bf3158282f583e06aa4d7d67c0f94be013b300dd30d56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRecord.java:158-167 | connect/runtime/src/main/java/org/apache/kafka/connect/storage/ClusterConfigState.java:100-109 | coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntime.java:1998-2007 \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 what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction \u2014 check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/ConsumerRecord.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e50dd7acb1febb1da235f6e345b03176049b8443bc063b50a6cafd3c5740c9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java:634-645 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java:992-1001 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java:634\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractMembershipManager.java"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3bd5baaea0d5a7fd6058801d888bdc35ab4593bf357b020eb9a170ee6bd875"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:1028-1038 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:1063-1072 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:1028\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"765a3ea329053dd3d474b637d4ce741a283e7d9bdfbc4e9b4eb0daca021bc92c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:2378-2387 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumerImpl.java:1293-1302 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:2378\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java"},"region":{"startLine":2378}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a0fc60747fc4624bf0b4bf2c39f9a7f4c452ae61fadc2b1e84619f160aa36d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerRebalanceListenerInvoker.java:85-94 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerRebalanceListenerInvoker.java:115-124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerRebalanceListenerInvoker.java:85\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerRebalanceListenerInvoker.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c369130239f6843f9bbd89d30cbc3a70d385b3873c1d9aad2eab50bcc0ce6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/FetchBuffer.java:250-259 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareFetchBuffer.java:181-190 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/FetchBuffer.java:250\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/FetchBuffer.java"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3e3fc7b9bed3982698c1fb1eb3c79be12713d97ebb7513a64ed5f1de13f30a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/config/provider/FileConfigProvider.java:85-94 | clients/src/main/java/org/apache/kafka/common/config/provider/FileConfigProvider.java:124-133 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/common/config/provider/FileConfigProvider.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":"clients/src/main/java/org/apache/kafka/common/config/provider/FileConfigProvider.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8927fabbbd96d1d7a76c74dd1a495602b190efc8940ae15078b4c79abd48148"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/protocol/Protocol.java:193-202 | clients/src/main/java/org/apache/kafka/common/protocol/Protocol.java:223-232 \u2014 both copies are in the same file, so extract the block 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":"clients/src/main/java/org/apache/kafka/common/protocol/Protocol.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"d235b1820fa7687887d1c479012bbdf412b1bbedd380e76252a4a30196661732"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/serialization/StringDeserializer.java:44-53 | clients/src/main/java/org/apache/kafka/common/serialization/StringSerializer.java:41-50 \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 \u0060clients/src/main/java/org/apache/kafka/common/serialization/StringDeserializer.java:44\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/serialization/StringDeserializer.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b04622a32a647300c3aef3fe948c53459eb4033b41dbf97f31533d43021974"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:452-461 | server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:470-479 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:452\u0060 it begins part-way through the construct above it, so those exact 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03677f79898b97a8bbd6efced859ba37774e582b1ab2ce2eb354d7fd5eb82d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:821-830 | server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:849-858 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:821\u0060 it begins part-way through the construct above it, so those exact 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"66bfb4a4b88375eadc0c6f12faedfaf37826028e47d822482f5d29f253607546"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:1002-1011 | server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:1030-1039 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:1002\u0060 it begins part-way through the construct above it, so those exact 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de38f57a9b0968d3c2fecdbb2e014b349f5d57f0a1457a0959ba221e3ddd390"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:1183-1192 | server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:1211-1220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:1183\u0060 it begins part-way through the construct above it, so those exact 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":1183}}}],"partialFingerprints":{"codehealthFindingId/v1":"74471ccb38dd57ffeb7e59417bcf0245aef580e44b1b5c1772c3b74e45a49a06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:1361-1370 | server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:1389-1398 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:1361\u0060 it begins part-way through the construct above it, so those exact 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":1361}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ffa85f7d73ebe192c66d0b1be5a3e53397e1828855f1571eba00243c3c6f3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java:1032-1041 | connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java:1230-1239 \u2014 both copies are in the same file, so extract the block 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":"connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab46fcc8c91e326f9ba68658d797bc2113ccc1609dc68a9a6249428f7960bd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/TasksTuple.java:167-176 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/TasksTupleWithEpochs.java:201-210 \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 \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/TasksTuple.java:167\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/TasksTuple.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc82644252e5f4fb83b66da0116cdb8cf6742fc28be4bc8fbf7d54c36760d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:6131-6140 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:6445-6455 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:6131\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":6131}}}],"partialFingerprints":{"codehealthFindingId/v1":"17520bd56e5dfc1eb33640a568a1c2a55499ed9cf93eaf72037f080578f114ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): generator/src/main/java/org/apache/kafka/message/CoordinatorRecordTypeGenerator.java:103-112 | generator/src/main/java/org/apache/kafka/message/MetadataRecordTypeGenerator.java:73-82 \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":"generator/src/main/java/org/apache/kafka/message/CoordinatorRecordTypeGenerator.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3847212979558556715567dd0736eed67b2e90e0a2d7b613265eb3a032d1f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): generator/src/main/java/org/apache/kafka/message/VersionConditional.java:90-99 | generator/src/main/java/org/apache/kafka/message/VersionConditional.java:139-148 \u2014 both copies are in the same file, so extract the block 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":"generator/src/main/java/org/apache/kafka/message/VersionConditional.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"1676338c74ed8acc64e98260fe9852578dd2ec1324949aa948a38e3f0583c60b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/ServerSideAssignorBenchmark.java:193-202 | jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/ShareGroupAssignorBenchmark.java:176-185 \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 \u0060jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/ServerSideAssignorBenchmark.java:193\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/ServerSideAssignorBenchmark.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffcbafa2104d336ab6ec0ebefbe22ff7e812c7559898f65c5129c7ee09a4907c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): jmh-benchmarks/src/main/java/org/apache/kafka/jmh/server/CheckpointBench.java:139-148 | jmh-benchmarks/src/main/java/org/apache/kafka/jmh/server/PartitionCreationBench.java:143-153 \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. 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":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/server/CheckpointBench.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78bf2d1f415de5c5152d41d8c9bcd3ae1798595b59b58781be21bcd57174d59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/controller/BrokersToElrs.java:63-73 | metadata/src/main/java/org/apache/kafka/controller/BrokersToIsrs.java:144-153 \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 \u0060metadata/src/main/java/org/apache/kafka/controller/BrokersToElrs.java:63\u0060 it begins part-way through the construct above it, so those exact 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":"metadata/src/main/java/org/apache/kafka/controller/BrokersToElrs.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67888d4262fcfa2ac80bf8a4b5db7420f9fad33bab46858194f293deda5de24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/controller/BrokersToElrs.java:141-150 | metadata/src/main/java/org/apache/kafka/controller/BrokersToIsrs.java:257-266 \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 \u0060metadata/src/main/java/org/apache/kafka/controller/BrokersToElrs.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":"metadata/src/main/java/org/apache/kafka/controller/BrokersToElrs.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c44465e66150d6dafc1322a6ef31289af6896f039fb9e802461ceb290f65f0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:1679-1687 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ClassicKafkaConsumer.java:1187-1195 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumerImpl.java:1054-1062 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:1679\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java"},"region":{"startLine":1679}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62efc9181f394ec958e26fa0ab5421141f9e0ba6e8aa641b9e781cb36c1d84a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:1652-1661 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:1683-1691 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:1856-1865 \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 \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:1652\u0060 it does not close everything it opens, so those exact 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":1652}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f8a0e4aae2291c423be0af02cafaa50c3fdaf2893652fc020f900f9d8b61d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): metadata/src/main/java/org/apache/kafka/controller/DelegationTokenControlManager.java:180-188 | metadata/src/main/java/org/apache/kafka/controller/DelegationTokenControlManager.java:242-250 | metadata/src/main/java/org/apache/kafka/controller/DelegationTokenControlManager.java:293-301 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/DelegationTokenControlManager.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3f72ac02efe0d37683f1c3d821b1dfcf1f41c8f3e8c2834f892a65f4bf4f92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:1852-1860 | clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3245-3253 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:1852\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":1852}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ff538e2447e641951b364924ac55aae3cf5a0bcb0a5c35efb9c07881b11671"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/ApplicationEventProcessor.java:254-262 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/ApplicationEventProcessor.java:272-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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/ApplicationEventProcessor.java:254\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/ApplicationEventProcessor.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"5872874a540dc40d1e335255f430b3f21e23796c23b7611b8527045ad1538b8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java:757-765 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java:790-798 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java:757\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1d609a4a42e6ec46bc8fcdcdac5736de3b5c113df5f95a40dda51311b8b352"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/Acknowledgements.java:197-205 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/Acknowledgements.java:216-224 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/Acknowledgements.java:197\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/Acknowledgements.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4fddbafda5bcce32eaedf4ca15db7abe143ebed311fea2b7893909eab25e86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:1661-1669 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumerImpl.java:1038-1046 \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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java"},"region":{"startLine":1661}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e96877fc056b9116d369d26da20c628fc34ca982b64228fc8504875e6a5c9a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/FetchMetricsRegistry.java:91-99 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareFetchMetricsRegistry.java:84-92 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/FetchMetricsRegistry.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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/FetchMetricsRegistry.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2f8ebf06c71294d24516d9ae1bfd45c3cd0d84dd0ba7ea45d51e1b337a68d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:591-600 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:670-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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:591\u0060 it does not close everything it opens, so those exact 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b9304dc42b966a116f9c1ce317a4838c0aca32a9b64cf2ae8d402bfbdf000f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:1070-1078 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:1102-1110 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:1070\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd30395d23083e68eb6cf5bcb948e0d74bed0512fff02f1dfa0a475417f57a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/network/SaslChannelBuilder.java:377-385 | clients/src/main/java/org/apache/kafka/common/security/authenticator/SaslServerAuthenticator.java:221-229 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"clients/src/main/java/org/apache/kafka/common/network/SaslChannelBuilder.java"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"379fa04613598375071aadedcc6018bfa9f6b7425b7eaa518279b20c7a1330e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/utils/internals/ByteUtils.java:224-232 | jmh-benchmarks/src/main/java/org/apache/kafka/jmh/util/ByteUtilsBenchmark.java:383-391 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060clients/src/main/java/org/apache/kafka/common/utils/internals/ByteUtils.java:224\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, 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":"clients/src/main/java/org/apache/kafka/common/utils/internals/ByteUtils.java"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"de81be7b9c2d770c3b7818d0b4f56690a4b559bc49df165521fe54a5087dd693"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): server-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java:284-292 | server-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java:437-446 \u2014 both copies are in the same file, so extract the block 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":"server-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"295fb1b3c7a677955c74225108d857281f83cfd5ac36b244d1adde3bfac1554e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): storage/api/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteStorageMetrics.java:116-124 | storage/api/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteStorageMetrics.java:145-153 \u2014 both copies are in the same file, so extract the block 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":"storage/api/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteStorageMetrics.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8bf90d421283fa0aac8181de6c56004b485bb683a316608ddf8645ccff205f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): server/src/main/java/org/apache/kafka/server/BrokerLifecycleManager.java:531-539 | server/src/main/java/org/apache/kafka/server/BrokerLifecycleManager.java:622-631 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/org/apache/kafka/server/BrokerLifecycleManager.java:531\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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/org/apache/kafka/server/BrokerLifecycleManager.java"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"6162ab4d5d5fc8ca34e9476c90dedc819dd5a587e3896aca3a87d20af12f6692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java:1002-1010 | connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java:1038-1046 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java:1002\u0060 it begins part-way through the construct above it, so those exact 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":"connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4fb9a03deaef17cfe0f2b4d264f4ae311f6b7879927543b158ed6da0ad7c0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java:1196-1204 | connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java:1236-1244 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java:1196\u0060 it begins part-way through the construct above it, so those exact 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":"connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"395648800e00433188c16b47375868bd88ddda4266063cf27df9aaf6f8afffa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): connect/transforms/src/main/java/org/apache/kafka/connect/transforms/InsertField.java:177-185 | connect/transforms/src/main/java/org/apache/kafka/connect/transforms/ReplaceField.java:173-181 \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 \u0060connect/transforms/src/main/java/org/apache/kafka/connect/transforms/InsertField.java:177\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"connect/transforms/src/main/java/org/apache/kafka/connect/transforms/InsertField.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bef159aab0530af7379e95a07c41805c8f4351b7a9b04178492748e11e89a97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/runtime/AbstractWorkerSourceTask.java:243-252 | connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerSinkTask.java:130-138 \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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/AbstractWorkerSourceTask.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb0c9e8645c2f4d170ec82bffc052ddfa3d6891950d84bd1152e51e12ebd835"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java:1530-1538 | connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java:1573-1581 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java:1530\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2ca6d0e9129f4f786c5e2cc4a348e9401cd68d5d6b8390c42d06e639f607a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): connect/test-plugins/src/main/java/org/apache/kafka/connect/tools/MockSinkTask.java:50-58 | connect/test-plugins/src/main/java/org/apache/kafka/connect/tools/MockSourceTask.java:50-58 \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 \u0060connect/test-plugins/src/main/java/org/apache/kafka/connect/tools/MockSinkTask.java:50\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/test-plugins/src/main/java/org/apache/kafka/connect/tools/MockSinkTask.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d8ec90fc71ac13db20e4df49be32cf30a427c3699608c396dc961a9d0ceec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntime.java:1290-1298 | coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntime.java:1603-1611 \u2014 both copies are in the same file, so extract the block 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":"coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/CoordinatorRuntime.java"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"519d005c48c476bf646bd2ede4d6ecd92d8040f42a2082d454f309eca3b8c124"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHeterogeneousAssignmentBuilder.java:425-433 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHomogeneousAssignmentBuilder.java:351-359 \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 \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHeterogeneousAssignmentBuilder.java:425\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHeterogeneousAssignmentBuilder.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5aace11c9b716801c898fedfbcbe29b6a364bfeef2a7494a6723510621de2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/assignor/StickyTaskAssignor.java:190-198 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/assignor/StickyTaskAssignor.java:206-214 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/assignor/StickyTaskAssignor.java:190\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/assignor/StickyTaskAssignor.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1ffb5ca9d5c54c1989f18190e27da1407992d5e731399d0f7bac75c040e22a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/CurrentAssignmentBuilder.java:440-448 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/CurrentAssignmentBuilder.java:455-463 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/CurrentAssignmentBuilder.java"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba389b3084c1bc111a424e1bea4db02c81612df009f2823c89bdba40148db447"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupConfig.java:921-929 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupConfig.java:980-988 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupConfig.java:921\u0060 it does not close everything it opens, so those exact 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupConfig.java"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"501b0ad8454859359b379836964625f4998de28ae02f17b99c5b9bae50eeccf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:4207-4215 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:4402-4410 \u2014 both copies are in the same file, so extract the block 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":4207}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a04e51fc277fa436a8fe4f2963185edccec042498686cd4c6cc814c5f58d932"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): generator/src/main/java/org/apache/kafka/message/ApiMessageTypeGenerator.java:239-247 | generator/src/main/java/org/apache/kafka/message/ApiMessageTypeGenerator.java:260-268 \u2014 both copies are in the same file, so extract the block 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":"generator/src/main/java/org/apache/kafka/message/ApiMessageTypeGenerator.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c7fbf9ffa239355f7c18b9938aee25381e90df08353f75febe8d2041431458"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): generator/src/main/java/org/apache/kafka/message/JsonConverterGenerator.java:91-99 | generator/src/main/java/org/apache/kafka/message/JsonConverterGenerator.java:275-283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/JsonConverterGenerator.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"89fe896a140a34eb50d621dc76b61878bf6934d12a67e579e1f7fee2f64abae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): generator/src/main/java/org/apache/kafka/message/JsonConverterGenerator.java:274-282 | generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java:709-717 \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":"generator/src/main/java/org/apache/kafka/message/JsonConverterGenerator.java"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b590b3f026806c9bcbf42faec931f307bfcca69c861645df28b5a9775f8f937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java:252-260 | generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java:264-272 \u2014 both copies are in the same file, so extract the block 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":"generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca81569e4b18c5f432f48bd2dd2314af266adab6823d8a731f772ddf84cabe99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java:425-433 | generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java:1045-1053 \u2014 both copies are in the same file, so extract the block 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":"generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ae3d59fa4f85579ef49c947176041e0bb9cc6c9cc4895605f41b60426d01f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/AssignorBenchmarkUtils.java:205-213 | jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/AssignorBenchmarkUtils.java:263-271 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/AssignorBenchmarkUtils.java:205\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/AssignorBenchmarkUtils.java"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c0c5d9ecf70baaa814dbcff9684d3265d2dca47f5e79861c38289a6ee6d93c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/AssignorBenchmarkUtils.java:241-249 | jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/AssignorBenchmarkUtils.java:325-333 \u2014 both copies are in the same file, so extract the block 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":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/AssignorBenchmarkUtils.java"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"82264dfcf2148aa4f66c23c443532fb2e0053d85041447cdcaadb71646468627"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/ServerSideAssignorBenchmark.java:203-211 | jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/ShareGroupAssignorBenchmark.java:186-194 \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 \u0060jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/ServerSideAssignorBenchmark.java:203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/ServerSideAssignorBenchmark.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"494b5dbd363c3f2ed2b20b8fa4ff9e107fc78380b608362cb1bd714bfd1bad26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): jmh-benchmarks/src/main/java/org/apache/kafka/jmh/connect/JsonConverterBenchmark.java:350-358 | jmh-benchmarks/src/main/java/org/apache/kafka/jmh/connect/JsonConverterBenchmark.java:390-398 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060jmh-benchmarks/src/main/java/org/apache/kafka/jmh/connect/JsonConverterBenchmark.java:350\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, 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":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/connect/JsonConverterBenchmark.java"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"413548b164fbeb565ec80f7b3693743630570a7a215c757d0d32b3980b2fb1ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): jmh-benchmarks/src/main/java/org/apache/kafka/jmh/fetcher/ReplicaFetcherThreadBenchmark.java:167-175 | jmh-benchmarks/src/main/java/org/apache/kafka/jmh/server/PartitionCreationBench.java:191-200 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/fetcher/ReplicaFetcherThreadBenchmark.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"237a384bf76b226200f2de7d4b903add125268e31880a46363cf27b72e4b4d45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/controller/BrokersToElrs.java:124-132 | metadata/src/main/java/org/apache/kafka/controller/BrokersToIsrs.java:240-248 \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 \u0060metadata/src/main/java/org/apache/kafka/controller/BrokersToElrs.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/BrokersToElrs.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d224d39e115c32771bf542e7fe9b11b015c56fc54142cb4d1bb5893cd11150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/controller/ConfigurationControlManager.java:355-363 | metadata/src/main/java/org/apache/kafka/controller/ConfigurationControlManager.java:376-384 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060metadata/src/main/java/org/apache/kafka/controller/ConfigurationControlManager.java:355\u0060 it does not close everything it opens, so those exact 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":"metadata/src/main/java/org/apache/kafka/controller/ConfigurationControlManager.java"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2566740b00e94761a69885eca60f7a51fa519c4120acc5011e78f5d9b93632f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:1936-1943 | clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:1961-1968 | clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:2346-2353 | clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:2386-2393 \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 \u0060clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:1936\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":1936}}}],"partialFingerprints":{"codehealthFindingId/v1":"25526381a61cd5e5fd15546c6196f6df62c7029447e13b45c9a43dfca48f9e57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): metadata/src/main/java/org/apache/kafka/metadata/ListenerInfo.java:94-101 | metadata/src/main/java/org/apache/kafka/metadata/ListenerInfo.java:119-126 | metadata/src/main/java/org/apache/kafka/metadata/ListenerInfo.java:144-151 | metadata/src/main/java/org/apache/kafka/metadata/ListenerInfo.java:169-176 \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 \u0060metadata/src/main/java/org/apache/kafka/metadata/ListenerInfo.java:94\u0060 it begins part-way through the construct above it, so those exact 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":"metadata/src/main/java/org/apache/kafka/metadata/ListenerInfo.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09b4d0e0fe25f6fd6f018fd0975cc89ef824b0e88194822a4e50dc669f629a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): clients/src/main/java/org/apache/kafka/common/requests/DeleteShareGroupStateResponse.java:47-54 | clients/src/main/java/org/apache/kafka/common/requests/ReadShareGroupStateSummaryResponse.java:47-54 | clients/src/main/java/org/apache/kafka/common/requests/WriteShareGroupStateResponse.java:47-54 \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 \u0060clients/src/main/java/org/apache/kafka/common/requests/DeleteShareGroupStateResponse.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. The matched lines also transfer control out of the body holding them, 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":"clients/src/main/java/org/apache/kafka/common/requests/DeleteShareGroupStateResponse.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"374bf341bcaf5efb260802adc9f6536f6d3173f151ab2382e8aee9e1a95d2d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:1641-1648 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:1694-1701 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:1749-1756 \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 \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:1641\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e4c94aad0d728b12069688d04678602022704ca176a051de318fcb690c789f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): api-checker/gradle-plugins/src/main/java/org/apache/kafka/gradle/KafkaInternalApiCheckerTask.java:126-133 | api-checker/gradle-plugins/src/main/java/org/apache/kafka/gradle/KafkaPublicApiCheckerTask.java:98-108 \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":"api-checker/gradle-plugins/src/main/java/org/apache/kafka/gradle/KafkaInternalApiCheckerTask.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"9813d3880211b4659dfd6e12476c3ee5dfa586a281ade48db70ce1b3e8d8e8a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/DescribeUserScramCredentialsResult.java:58-68 | clients/src/main/java/org/apache/kafka/clients/admin/DescribeUserScramCredentialsResult.java:118-125 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/admin/DescribeUserScramCredentialsResult.java:58\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"clients/src/main/java/org/apache/kafka/clients/admin/DescribeUserScramCredentialsResult.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b250173498e3ee836bfe11a84b8940c494a1a5f697e9bb6e19264110ecdaac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java:808-815 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java:1297-1304 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java:808\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"1beb4aa039c0061aff81b3b18f47ccb1c0a4b1e20fdab4f5d0f3b68903acdd23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/requests/FetchMetadata.java:154-161 | clients/src/main/java/org/apache/kafka/common/requests/ShareRequestMetadata.java:107-114 \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. The matched lines also transfer control out of the body holding them, 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":"clients/src/main/java/org/apache/kafka/common/requests/FetchMetadata.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd68cb8d0d6ff475360126d61c483aefff281c3e6b233da7e2b846a9541c2860"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/requests/ShareAcknowledgeResponse.java:66-73 | clients/src/main/java/org/apache/kafka/common/requests/ShareFetchResponse.java:73-80 \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 \u0060clients/src/main/java/org/apache/kafka/common/requests/ShareAcknowledgeResponse.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. The matched lines also transfer control out of the body holding them, 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":"clients/src/main/java/org/apache/kafka/common/requests/ShareAcknowledgeResponse.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bec8278a96db19be30db6f32f1289285fabf0efae9e584816ca09feb883814"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/requests/ShareAcknowledgeResponse.java:138-145 | clients/src/main/java/org/apache/kafka/common/requests/ShareFetchResponse.java:196-203 \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 \u0060clients/src/main/java/org/apache/kafka/common/requests/ShareAcknowledgeResponse.java:138\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/requests/ShareAcknowledgeResponse.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02b11dc114c6240e1fbfffff25da64e0e476309e2ed66dedc816bd11cb2ce21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/utils/internals/ByteUtils.java:423-430 | jmh-benchmarks/src/main/java/org/apache/kafka/jmh/util/ByteUtilsBenchmark.java:575-582 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060clients/src/main/java/org/apache/kafka/common/utils/internals/ByteUtils.java:423\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/utils/internals/ByteUtils.java"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e32effbdc48564e7c8b7bfd0d6175ac326d5e2d43ed15a6cc358f096a7424b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java:1116-1123 | storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java:1139-1146 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java:1116\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c408def89c29e52d2a3c493b103961bec71662c422c70bc641ea9b00a4961a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): server/src/main/java/org/apache/kafka/server/FetchContext.java:348-355 | server/src/main/java/org/apache/kafka/server/FetchContext.java:371-378 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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/org/apache/kafka/server/FetchContext.java:348\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, 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":"server/src/main/java/org/apache/kafka/server/FetchContext.java"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"2978f0ac0a6fed98daeecabedde0ac2b85c5493284e0c95a76705288c41c89bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): connect/api/src/main/java/org/apache/kafka/connect/data/Values.java:503-510 | connect/api/src/main/java/org/apache/kafka/connect/data/Values.java:531-538 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connect/api/src/main/java/org/apache/kafka/connect/data/Values.java:503\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/api/src/main/java/org/apache/kafka/connect/data/Values.java"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"a598a8b71e47cabf1b5fec1912c53b70d1c8d92eaa240d2738659fcba73f0b08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaStatusBackingStore.java:419-427 | connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaStatusBackingStore.java:441-448 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaStatusBackingStore.java:419\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaStatusBackingStore.java"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ec091ff14931cb6b6209b8a0d02bdbdc819dc4e62d1c006c3c42d53cae9f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): connect/mirror-client/src/main/java/org/apache/kafka/connect/mirror/MirrorClientConfig.java:88-95 | connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorConnectorConfig.java:248-255 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060connect/mirror-client/src/main/java/org/apache/kafka/connect/mirror/MirrorClientConfig.java:88\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/mirror-client/src/main/java/org/apache/kafka/connect/mirror/MirrorClientConfig.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a245958081025d11cbc623f8974ab7a09d0356288cd1f53145cd1230939b89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java:1440-1447 | connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java:1477-1484 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java:1440\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedHerder.java"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"824717a1bb80528edd98e2804488d1192c7cc9425bbca056527def7c7fb8f955"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/resources/ConnectorPluginsResource.java:129-136 | connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/HerderRequestHandler.java:71-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 \u0060connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/resources/ConnectorPluginsResource.java:129\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/resources/ConnectorPluginsResource.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb98d7c85d746e0a198f308446b1bc7da8c8ccff3663224b0b70461484fb4fd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java:1973-1980 | connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java:2038-2045 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java:1973\u0060 it begins part-way through the construct above it, so those exact 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Worker.java"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4fbcc9a9849af5dd4092b46d88cd5254434a6f40a46a44521f0f243316f19c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHeterogeneousAssignmentBuilder.java:152-159 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHomogeneousAssignmentBuilder.java:209-216 \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 \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHeterogeneousAssignmentBuilder.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. The matched lines also transfer control out of the body holding them, 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHeterogeneousAssignmentBuilder.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"1396e585e75ce072c90a2c0c719e9285fe211d87c287e3cd91317b24b1ab184b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/TasksTupleWithEpochs.java:147-154 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/Utils.java:261-268 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/TasksTupleWithEpochs.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. 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/TasksTupleWithEpochs.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac92b3dba1aea7d5765d3c9647dda714d7934f0158f6cf368674eaae8ac4c711"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:2310-2317 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:2373-2380 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:2310\u0060 it does not close everything it opens, so those exact 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java"},"region":{"startLine":2310}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae613a389a2ef194c0dd1e1328015d0b2289918dbbbeee93c6828ba3ce59b4c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:7230-7237 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:7275-7282 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:7230\u0060 it begins part-way through the construct above it, so those exact 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":7230}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7f2adc01470079469a88633b292e5a83a3562cac47ccbcc9c62a664d986ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): generator/src/main/java/org/apache/kafka/message/MetadataJsonConvertersGenerator.java:45-52 | generator/src/main/java/org/apache/kafka/message/MetadataRecordTypeGenerator.java:46-53 \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 \u0060generator/src/main/java/org/apache/kafka/message/MetadataJsonConvertersGenerator.java:45\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/MetadataJsonConvertersGenerator.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d0b8438f1e0404b3a65b8a7ea455ea549c8c88fdc5e1378e3ec8e0888a01a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): generator/src/main/java/org/apache/kafka/message/MetadataJsonConvertersGenerator.java:71-78 | generator/src/main/java/org/apache/kafka/message/MetadataJsonConvertersGenerator.java:98-105 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060generator/src/main/java/org/apache/kafka/message/MetadataJsonConvertersGenerator.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":"generator/src/main/java/org/apache/kafka/message/MetadataJsonConvertersGenerator.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"597d0aacf8f14bbd7bfac531ad44dd32ac4707a29475eebbe8a00318ccbbe59f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): jmh-benchmarks/src/main/java/org/apache/kafka/jmh/util/ByteUtilsBenchmark.java:305-312 | jmh-benchmarks/src/main/java/org/apache/kafka/jmh/util/ByteUtilsBenchmark.java:322-329 \u2014 both copies are in the same file, so extract the block 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":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/util/ByteUtilsBenchmark.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4650100eb64b00cc79e2b936b70616865e91e9bb01a154461247cd159ffca8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/controller/BrokersToElrs.java:110-117 | metadata/src/main/java/org/apache/kafka/controller/BrokersToIsrs.java:198-205 \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":"metadata/src/main/java/org/apache/kafka/controller/BrokersToElrs.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbf19fcb636a64f6e2a27c4c545d2c2eac6ba1f984f0d376525d6c8cd3be0d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/controller/ScramControlManager.java:191-198 | metadata/src/main/java/org/apache/kafka/controller/ScramControlManager.java:212-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 \u0060metadata/src/main/java/org/apache/kafka/controller/ScramControlManager.java:191\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/ScramControlManager.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"83ec479397cbb6527de8678e16c59673f9bd08ec63aca6a582ffc303102501fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/metadata/authorizer/ClusterMetadataAuthorizer.java:111-118 | metadata/src/main/java/org/apache/kafka/metadata/authorizer/ClusterMetadataAuthorizer.java:151-158 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060metadata/src/main/java/org/apache/kafka/metadata/authorizer/ClusterMetadataAuthorizer.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":"metadata/src/main/java/org/apache/kafka/metadata/authorizer/ClusterMetadataAuthorizer.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fb47ad6028c76120340c7b157627988e5a4c47b543dfffb0c507b80dff54db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:596-602 | server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:797-803 | server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:978-984 | server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:1159-1165 | server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:1337-1343 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:596\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d9b9b48c0935d67e24e58a1f6b9e2b782067339a242404f9144f94c5fb3d38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): clients/src/main/java/org/apache/kafka/common/requests/FetchResponse.java:299-305 | clients/src/main/java/org/apache/kafka/common/requests/ShareAcknowledgeResponse.java:137-143 | clients/src/main/java/org/apache/kafka/common/requests/ShareFetchResponse.java:195-201 \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 \u0060clients/src/main/java/org/apache/kafka/common/requests/FetchResponse.java:299\u0060 it begins part-way through the construct above it, so those exact 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":"clients/src/main/java/org/apache/kafka/common/requests/FetchResponse.java"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"5809195897f57d5fd3c71725ef3bb116fc40c67acdbf6337fa1b36ad175813f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/StreamsCoordinatorRecordHelpers.java:161-167 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/StreamsCoordinatorRecordHelpers.java:170-176 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/StreamsCoordinatorRecordHelpers.java:179-185 \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 \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/StreamsCoordinatorRecordHelpers.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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/StreamsCoordinatorRecordHelpers.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d148561bfbeb274cf1be9d9d5bc482b1e0a204ee67d112843c17d11213b2b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): generator/src/main/java/org/apache/kafka/message/CoordinatorRecordTypeGenerator.java:164-170 | generator/src/main/java/org/apache/kafka/message/CoordinatorRecordTypeGenerator.java:189-195 | generator/src/main/java/org/apache/kafka/message/CoordinatorRecordTypeGenerator.java:214-220 \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 \u0060generator/src/main/java/org/apache/kafka/message/CoordinatorRecordTypeGenerator.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":"generator/src/main/java/org/apache/kafka/message/CoordinatorRecordTypeGenerator.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba65ab9ad6844e0f2b350a406cd149f4d426ad77236b934399491938e82607e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): metadata/src/main/java/org/apache/kafka/image/AclsDelta.java:96-102 | metadata/src/main/java/org/apache/kafka/image/ConfigurationDelta.java:73-79 | metadata/src/main/java/org/apache/kafka/image/DelegationTokenDelta.java:82-90 \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 \u0060metadata/src/main/java/org/apache/kafka/image/AclsDelta.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":"metadata/src/main/java/org/apache/kafka/image/AclsDelta.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccec4f6a06cdd86592879fffb10133b0e0965eddf90143276dfebdabfa2e322"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): metadata/src/main/java/org/apache/kafka/image/AclsDelta.java:103-109 | metadata/src/main/java/org/apache/kafka/image/ConfigurationDelta.java:80-86 | metadata/src/main/java/org/apache/kafka/image/DelegationTokenDelta.java:91-97 \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 \u0060metadata/src/main/java/org/apache/kafka/image/AclsDelta.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. The matched lines also transfer control out of the body holding them, 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":"metadata/src/main/java/org/apache/kafka/image/AclsDelta.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"820ba3ccf15a04db798051f8c4cde728fb20a958ad123b40718e3fd2ed2161b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/internals/DeleteConsumerGroupOffsetsHandler.java:115-121 | clients/src/main/java/org/apache/kafka/clients/admin/internals/RemoveMembersFromConsumerGroupHandler.java:98-104 \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 \u0060clients/src/main/java/org/apache/kafka/clients/admin/internals/DeleteConsumerGroupOffsetsHandler.java:115\u0060 it does not close everything it opens, so those exact 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":"clients/src/main/java/org/apache/kafka/clients/admin/internals/DeleteConsumerGroupOffsetsHandler.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3b41c00f01a5369b2636e974f03695b45e1c8f6a027d70cc1603b0fcc9df6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/internals/DescribeClassicGroupsHandler.java:91-97 | clients/src/main/java/org/apache/kafka/clients/admin/internals/DescribeShareGroupsHandler.java:86-92 \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. The matched lines also transfer control out of the body holding them, 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":"clients/src/main/java/org/apache/kafka/clients/admin/internals/DescribeClassicGroupsHandler.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6e230f604eb4d6cef35d55a153775a071fde50ea3062c19c85e997a6b5b20b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/internals/ListConsumerGroupOffsetsHandler.java:100-106 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerCoordinator.java:1490-1496 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060clients/src/main/java/org/apache/kafka/clients/admin/internals/ListConsumerGroupOffsetsHandler.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":"clients/src/main/java/org/apache/kafka/clients/admin/internals/ListConsumerGroupOffsetsHandler.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ff092596f08f177399dc60d59d2c02aefff1b8f347daf80c8ed4a281247f54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/AlterConsumerGroupOffsetsResult.java:45-51 | clients/src/main/java/org/apache/kafka/clients/admin/AlterShareGroupOffsetsResult.java:47-53 \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 \u0060clients/src/main/java/org/apache/kafka/clients/admin/AlterConsumerGroupOffsetsResult.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":"clients/src/main/java/org/apache/kafka/clients/admin/AlterConsumerGroupOffsetsResult.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"201ff6127e5ce03e7f5c6953595627d0c7e19c517282363be3f08799c1470688"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java:648-654 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java:829-835 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java:648\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractCoordinator.java"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c02c78ceaaf4f9016e82d1793b04cbc1864c48be7da4b3dda0435fc5f63db3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:2353-2359 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumerImpl.java:1280-1286 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:2353\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java"},"region":{"startLine":2353}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ff7d96016f8b035fc97745ff9b9a55e547618eeffddba0a03bdc438dcb2b2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/FetchCollector.java:325-331 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareFetchCollector.java:156-162 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/FetchCollector.java:325\u0060 it does not close everything it opens, so those exact 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/FetchCollector.java"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"460d66caf29839ee51b270a206331b1099e292bf091cdc68088b313b27aac730"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java:1196-1202 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java:1269-1275 \u2014 both copies are in the same file, so extract the block 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsMembershipManager.java"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae40f7298142301115a9587e3e51d4c87b5d3f0c823d353a1e2f7e3198672e65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java:1832-1838 | clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java:1897-1903 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java:1832\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"9625602dd8e6182e160978cc89787475deef7e7d1d5520edeabd7cd613832b72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/NetworkClient.java:1045-1051 | clients/src/main/java/org/apache/kafka/clients/NetworkClient.java:1157-1163 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/NetworkClient.java:1045\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/NetworkClient.java"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe5d9ab1d73964a984e76b67393b055eccfb6a180c624b829a1b48a0afb7698"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/network/Selector.java:1338-1344 | clients/src/main/java/org/apache/kafka/common/network/Selector.java:1358-1364 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/common/network/Selector.java:1338\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/network/Selector.java"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44ed92de7c319f79392ea8868a9c68239b89103160d059f278a3985ab1302e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/requests/InitializeShareGroupStateResponse.java:47-53 | clients/src/main/java/org/apache/kafka/common/requests/ReadShareGroupStateResponse.java:47-53 \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. The matched lines also transfer control out of the body holding them, 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":"clients/src/main/java/org/apache/kafka/common/requests/InitializeShareGroupStateResponse.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b370768b1cbc1221b21c784f50e846470ee233858e0dbe15edb04ef972255c03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/requests/ShareFetchRequest.java:75-81 | clients/src/main/java/org/apache/kafka/common/requests/ShareFetchRequest.java:95-101 \u2014 both copies are in the same file, so extract the block 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":"clients/src/main/java/org/apache/kafka/common/requests/ShareFetchRequest.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0236e56724c17e81519a1d39d869e0403e154739d4f21c5bdd7d404867f96e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/security/authenticator/SaslClientCallbackHandler.java:75-81 | clients/src/main/java/org/apache/kafka/common/security/kerberos/KerberosClientCallbackHandler.java:58-64 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/common/security/authenticator/SaslClientCallbackHandler.java:75\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/security/authenticator/SaslClientCallbackHandler.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a65342f02663aea6fea48f1f0b113a219ad8a19eaa6a27b663dea23ea08db9f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/security/ssl/SslFactory.java:328-334 | clients/src/main/java/org/apache/kafka/common/security/ssl/SslFactory.java:352-358 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/common/security/ssl/SslFactory.java:328\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/security/ssl/SslFactory.java"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9d83e0f0b712578bc994afd552c85d85191fa03d771ba32e3f9e25329f7b00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/serialization/ListDeserializer.java:108-115 | clients/src/main/java/org/apache/kafka/common/serialization/ListSerializer.java:79-85 \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 \u0060clients/src/main/java/org/apache/kafka/common/serialization/ListDeserializer.java:108\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/serialization/ListDeserializer.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6d3606ed1bc54f4407c096cb1dc1b23b4e66a741a7fe5d5d1f99f3700c21fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/serialization/RemoteLogSegmentMetadataSnapshotTransform.java:35-41 | storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/serialization/RemoteLogSegmentMetadataTransform.java:39-45 \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 \u0060storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/serialization/RemoteLogSegmentMetadataSnapshotTransform.java:35\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/serialization/RemoteLogSegmentMetadataSnapshotTransform.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e980e3a5d654b19d104f084f734fc757100d91bd150e1e41ec9f5ac9da45f63c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java:525-531 | connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java:550-558 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java:525\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab639cc8d1d00e63dbe8008620ef2e72342bfb65a8170f1a45d9279208cad7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java:948-954 | connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java:1235-1243 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java:948\u0060 it begins part-way through the construct above it, so those exact 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":"connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"56be547daca6bbd2bcb42f4fb6209f302b294ae2ca92a9cb403f7135b5a7e0f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): connect/transforms/src/main/java/org/apache/kafka/connect/transforms/Cast.java:393-399 | connect/transforms/src/main/java/org/apache/kafka/connect/transforms/Cast.java:402-408 \u2014 both copies are in the same file, so extract the block 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":"connect/transforms/src/main/java/org/apache/kafka/connect/transforms/Cast.java"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b4c525fbcd92d9a14267caa0231b4baacbe25e18a009037fba75dcd4134912"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): connect/transforms/src/main/java/org/apache/kafka/connect/transforms/InsertField.java:155-161 | connect/transforms/src/main/java/org/apache/kafka/connect/transforms/InsertField.java:189-195 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connect/transforms/src/main/java/org/apache/kafka/connect/transforms/InsertField.java:155\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/transforms/src/main/java/org/apache/kafka/connect/transforms/InsertField.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7834f91e51760b8f76292713e4d896368b81809c9623986a6c0f22a848b4a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/KRaftCoordinatorMetadataImage.java:57-63 | coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/KRaftCoordinatorMetadataImage.java:68-74 \u2014 both copies are in the same file, so extract the block 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":"coordinator-common/src/main/java/org/apache/kafka/coordinator/common/runtime/KRaftCoordinatorMetadataImage.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"611211d7cd59ce1b29530ee16a1200c392b58cdf7bd926be70913959c33ef09d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHeterogeneousAssignmentBuilder.java:108-114 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHomogeneousAssignmentBuilder.java:139-145 \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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHeterogeneousAssignmentBuilder.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db7492a906e7160ff2c3923f4bba5341aba20db0707706a5359fda50427e189"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHeterogeneousAssignmentBuilder.java:376-382 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHomogeneousAssignmentBuilder.java:307-313 \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. 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHeterogeneousAssignmentBuilder.java"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ededd5584b933fe7757a0d4daa090f486e1128c775ec34ff87079d13c2509f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHeterogeneousAssignmentBuilder.java:435-441 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHomogeneousAssignmentBuilder.java:361-367 \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 \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHeterogeneousAssignmentBuilder.java:435\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/SimpleHeterogeneousAssignmentBuilder.java"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a36f5fdc026996b5ceb68558ae155ad3145556465a13a1051fddf0ea2c2abb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/CurrentAssignmentBuilder.java:488-494 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/TargetAssignmentBuilder.java:168-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 \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/CurrentAssignmentBuilder.java:488\u0060 it does not close everything it opens, so those exact 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/CurrentAssignmentBuilder.java"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f59af7c65f5a40fb22c4d74338ffcb52c585370565026baf656f9fc0311a5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:485-491 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:580-586 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:485\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"28499deba46d5ede764d32d48ccbad324f81f5cd2b29acfc92d4cefdf1a814d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:1118-1124 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:1160-1166 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:1118\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9e8151e93ab7dcab2a961b913be7e96e063cdd7647fc0caedf9980f358d645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:1711-1717 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:1731-1737 \u2014 both copies are in the same file, so extract the block 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":1711}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e215c434b6139b923c3d5306ec37ff0ecf47998d737118893454967becff1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): generator/src/main/java/org/apache/kafka/message/MetadataRecordTypeGenerator.java:121-127 | generator/src/main/java/org/apache/kafka/message/MetadataRecordTypeGenerator.java:146-152 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060generator/src/main/java/org/apache/kafka/message/MetadataRecordTypeGenerator.java:121\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/MetadataRecordTypeGenerator.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2434c470c6f2831ec4445a996f8bdeb903d9999d63d28342754654e247d801"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): jmh-benchmarks/src/main/java/org/apache/kafka/jmh/partition/PartitionMakeFollowerBenchmark.java:103-109 | jmh-benchmarks/src/main/java/org/apache/kafka/jmh/partition/UpdateFollowerFetchStateBenchmark.java:94-100 \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":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/partition/PartitionMakeFollowerBenchmark.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f185856841f18632e6a3f4a25c365003a2469600c48ed77836ea1adfa799ff08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/controller/BrokersToIsrs.java:211-217 | metadata/src/main/java/org/apache/kafka/controller/BrokersToIsrs.java:238-244 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060metadata/src/main/java/org/apache/kafka/controller/BrokersToIsrs.java:211\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/BrokersToIsrs.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"067040a40888947b11a6be25dbd18a0db49473ef13db23d9de507f7b79170971"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/controller/ClusterControlManager.java:638-644 | metadata/src/main/java/org/apache/kafka/image/ClusterDelta.java:136-142 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060metadata/src/main/java/org/apache/kafka/controller/ClusterControlManager.java:638\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/ClusterControlManager.java"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"d454b35d108525361ed20c7982dff7bad48e228c409da74bf3ca25eaaab8b1bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/controller/ConfigurationControlManager.java:325-331 | metadata/src/main/java/org/apache/kafka/controller/ConfigurationControlManager.java:535-541 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060metadata/src/main/java/org/apache/kafka/controller/ConfigurationControlManager.java:325\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/ConfigurationControlManager.java"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac808f537c43c819f6d4fe643e1ab7d6d41cc5c261027bf7f2a78600786d8a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/image/ClusterDelta.java:162-168 | metadata/src/main/java/org/apache/kafka/image/ClusterDelta.java:179-185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060metadata/src/main/java/org/apache/kafka/image/ClusterDelta.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/image/ClusterDelta.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1744a58217dab6bf215ba70f128efb51508268ee4a30a9b80268f38fb6928d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/metadata/BrokerRegistration.java:354-361 | metadata/src/main/java/org/apache/kafka/metadata/ControllerRegistration.java:180-186 \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 \u0060metadata/src/main/java/org/apache/kafka/metadata/BrokerRegistration.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":"metadata/src/main/java/org/apache/kafka/metadata/BrokerRegistration.java"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"db87688650f6d1849cb25d499ad9f3a5ef2968e984cc370c6f2489c0f201a95d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/metadata/BrokerRegistration.java:398-404 | metadata/src/main/java/org/apache/kafka/metadata/ControllerRegistration.java:219-225 \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":"metadata/src/main/java/org/apache/kafka/metadata/BrokerRegistration.java"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb5b2a1180148b89c7a52da6172f23c21e8a9b43a4fa4dd836ac00993adaa82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:2008-2013 | clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:2081-2086 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:2008\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":2008}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23dc14fca5ccf550a8cb0bc8fa345b3543acc6e9c67403a3b1923804257d678"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3512-3517 | clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3676-3681 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3512\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":3512}}}],"partialFingerprints":{"codehealthFindingId/v1":"8133ad1104a10fb4e4e6bdf6b5c837fd5820465219bdf1dc7ebaa581d2a4699e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:485-490 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumerImpl.java:260-265 \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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"9204ee366b363a4551c26e131faa9db39bbd9997f341349ac4645557f4f3126a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:496-501 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ClassicKafkaConsumer.java:185-191 \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. 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3c0d2ef8d149c92cf4426fe63dd2527cbcd1632dcd9cbf68ba41255a7644a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerMembershipManager.java:224-229 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareMembershipManager.java:138-143 \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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerMembershipManager.java"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06e6a878b1ffcae60a6ccd80f2892f3f1e27a7bbd0696882bb34aef4e8725c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/OffsetFetcher.java:391-396 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/OffsetsRequestManager.java:897-902 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/OffsetFetcher.java:391\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/OffsetFetcher.java"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da0aa673f079d060344cba35f8901f5d763a71f607b9d6ba3adefba20c74a87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:581-586 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:662-667 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:581\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"e774d2fc60d966f94726d8e4c1979d32507d55d4af3f63e0d1b492f7c81ba9ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareSessionHandler.java:169-174 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareSessionHandler.java:233-238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareSessionHandler.java:169\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareSessionHandler.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"c636d1f298dfe97c0cf8b30848bc471fbb213f64bfb0a6dbcd98ca78496fae8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java:681-687 | clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java:755-760 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java:681\u0060 it does not close everything it opens, so those exact 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":"clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31ae59505ff39650ec46980537147075b6bdf491997188f7ff09033132aa43d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/security/kerberos/KerberosShortNamer.java:51-56 | clients/src/main/java/org/apache/kafka/common/security/ssl/SslPrincipalMapper.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 \u0060clients/src/main/java/org/apache/kafka/common/security/kerberos/KerberosShortNamer.java:51\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"clients/src/main/java/org/apache/kafka/common/security/kerberos/KerberosShortNamer.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"79898cb29f8f6f5cadf62737d271bcc731f1fc617b2a2a248d5a6c8a0ab179e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/unsecured/OAuthBearerUnsecuredLoginCallbackHandler.java:144-149 | clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/unsecured/OAuthBearerUnsecuredValidatorCallbackHandler.java:115-120 \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":"clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/unsecured/OAuthBearerUnsecuredLoginCallbackHandler.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb70e00b29186ca6f15257e5c3f99be41c19f6f0a5b00dcb2724c6ab6d4fae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/security/plain/PlainLoginModule.java:40-45 | clients/src/main/java/org/apache/kafka/common/security/scram/ScramLoginModule.java:43-48 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"clients/src/main/java/org/apache/kafka/common/security/plain/PlainLoginModule.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"01722836f4b45f3ecb33a921b832666737ce8d580020d1103163d0581eb89b90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/serialization/DoubleSerializer.java:30-35 | clients/src/main/java/org/apache/kafka/common/serialization/LongSerializer.java:28-33 \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 \u0060clients/src/main/java/org/apache/kafka/common/serialization/DoubleSerializer.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. The matched lines also transfer control out of the body holding them, 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":"clients/src/main/java/org/apache/kafka/common/serialization/DoubleSerializer.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c21e36796b8de1f4a6d77a6262e01b0e5b9cb73ab725b00b1888acfa03bf229"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/utils/internals/ByteUtils.java:411-416 | jmh-benchmarks/src/main/java/org/apache/kafka/jmh/util/ByteUtilsBenchmark.java:563-568 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060clients/src/main/java/org/apache/kafka/common/utils/internals/ByteUtils.java:411\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/utils/internals/ByteUtils.java"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"490a4973b0cba625cac131da2e4614be278c0dc8c2afd03ed1cf35f3c9377935"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/serialization/RemoteLogSegmentMetadataSnapshotTransform.java:42-47 | storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/serialization/RemoteLogSegmentMetadataTransform.java:46-51 \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 \u0060storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/serialization/RemoteLogSegmentMetadataSnapshotTransform.java:42\u0060 it begins part-way through the construct above it, so those exact 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":"storage/src/main/java/org/apache/kafka/server/log/remote/metadata/storage/serialization/RemoteLogSegmentMetadataSnapshotTransform.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"818bc12f03ac3a15d8177830063f529a6084f284cd101aa3a8f935449677e441"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java:1269-1274 | connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaStatusBackingStore.java:519-524 \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 \u0060connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java:1269\u0060 it does not close everything it opens, so those exact 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":"connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaConfigBackingStore.java"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b7629131b6d283e932667df12c72d6240d492e72c9060c88e7815feab28b9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/ExtendedAssignment.java:249-254 | connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/ExtendedAssignment.java:270-275 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/ExtendedAssignment.java:249\u0060 it does not close everything it opens, so those exact 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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/ExtendedAssignment.java"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44a0f77e8b5dd27e603e9900ed65f3ec5d5a28cecced6c8f00b968b25f5720e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/IncrementalCooperativeAssignor.java:346-352 | connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/IncrementalCooperativeAssignor.java:355-360 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/IncrementalCooperativeAssignor.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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/IncrementalCooperativeAssignor.java"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"218435162538a589550745287cfae331e08a2edcef47f2cd845ea2dcf5efe65e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/ConsumerGroup.java:1190-1195 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/share/ShareGroup.java:315-320 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/ConsumerGroup.java:1190\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/ConsumerGroup.java"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"97cec553391f4410711e8c7418e54780b0bc1b94e24d22e81d36147c221b74b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorRecordHelpers.java:781-786 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorRecordHelpers.java:788-793 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorRecordHelpers.java:781\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorRecordHelpers.java"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf32e3ab4a2a8f35c439aece261e469996412dea842e04f349dcf9414006c0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:1752-1757 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:1771-1776 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:1752\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"06953eb2ec564705a57e16b7bfc98256eab26e076ef90f902d8b3c513ad6e080"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): generator/src/main/java/org/apache/kafka/message/checker/Unifier.java:101-106 | generator/src/main/java/org/apache/kafka/message/checker/Unifier.java:121-126 \u2014 both copies are in the same file, so extract the block 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":"generator/src/main/java/org/apache/kafka/message/checker/Unifier.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff02a78f10090246aa3fc155f00b867f27fdd5be39141dd5f22d7867dfe07bdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): generator/src/main/java/org/apache/kafka/message/CoordinatorRecordJsonConvertersGenerator.java:133-138 | generator/src/main/java/org/apache/kafka/message/CoordinatorRecordJsonConvertersGenerator.java:187-192 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060generator/src/main/java/org/apache/kafka/message/CoordinatorRecordJsonConvertersGenerator.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":"generator/src/main/java/org/apache/kafka/message/CoordinatorRecordJsonConvertersGenerator.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8dce9423132ce0e1e695218f12a423f25576be1d9c69d4f1a1a3559b81a77f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/controller/PeriodicTaskControlManager.java:226-231 | metadata/src/main/java/org/apache/kafka/controller/PeriodicTaskControlManager.java:242-247 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/controller/PeriodicTaskControlManager.java"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"db508e4d3d67600253b3c230c04bc93bbd0680f051c7b6c6f34b061fa7c8261c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:2217-2221 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ClassicKafkaConsumer.java:1251-1255 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumerImpl.java:1138-1142 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java:2217\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java"},"region":{"startLine":2217}}}],"partialFingerprints":{"codehealthFindingId/v1":"59da27581587372b0b9eb25f23b069483db544760768407f14dc166c75c66e4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/secured/JaasOptionsUtils.java:61-65 | clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/unsecured/OAuthBearerUnsecuredLoginCallbackHandler.java:143-147 | clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/unsecured/OAuthBearerUnsecuredValidatorCallbackHandler.java:114-118 \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 \u0060clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/unsecured/OAuthBearerUnsecuredLoginCallbackHandler.java:143\u0060 it does not close everything it opens, so those exact 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":"clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/secured/JaasOptionsUtils.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"417428a5cc2da666d6692dc2b88647ae73126d3ad1e369282ddf6211bca8ac75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): server-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java:197-201 | server-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java:242-246 | server-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java:545-549 \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-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java:197\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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-common/src/main/java/org/apache/kafka/server/share/persister/DefaultStatePersister.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfacbf7d032cfb6ed9bff9536582778d8962b6c74f2b0baec673441f72762c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): server-common/src/main/java/org/apache/kafka/server/share/persister/DeleteShareGroupStateResult.java:47-51 | server-common/src/main/java/org/apache/kafka/server/share/persister/InitializeShareGroupStateResult.java:47-51 | server-common/src/main/java/org/apache/kafka/server/share/persister/WriteShareGroupStateResult.java:44-48 \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 \u0060server-common/src/main/java/org/apache/kafka/server/share/persister/DeleteShareGroupStateResult.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":"server-common/src/main/java/org/apache/kafka/server/share/persister/DeleteShareGroupStateResult.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4527fd1d5f0a4ec548e6f1c6222f767354d729ef0551b4da9cc1d07b7e2c08b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorShard.java:786-790 | share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorShard.java:910-914 | share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorShard.java:954-958 \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 \u0060share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorShard.java:786\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorShard.java"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1eeb86e7c6a0b74278117417a264d7265ef77a91652a7d19c94738efccee576"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/internals/DescribeShareGroupsHandler.java:111-115 | clients/src/main/java/org/apache/kafka/clients/admin/internals/DescribeStreamsGroupsHandler.java:121-125 \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. The matched lines also transfer control out of the body holding them, 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":"clients/src/main/java/org/apache/kafka/clients/admin/internals/DescribeShareGroupsHandler.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d27ceb06ed133cb0bbe2a51794900275e45a0a3702855fdd7483f0264b5a53a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/ConsumerGroupDescription.java:93-97 | clients/src/main/java/org/apache/kafka/clients/admin/ConsumerGroupDescription.java:115-119 \u2014 both copies are in the same file, so extract the block 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":"clients/src/main/java/org/apache/kafka/clients/admin/ConsumerGroupDescription.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5e1e72aba7a39fb4ee338df08a9f0f4018788abb6750a1e8dadc70cb761d56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3463-3467 | clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3625-3629 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java:3463\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/KafkaAdminClient.java"},"region":{"startLine":3463}}}],"partialFingerprints":{"codehealthFindingId/v1":"16de309bf7c1c0d541f7a3e00c4f89a1a9e76adbb08cd8b170b83f4566c5b4af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/StreamsGroupMemberDescription.java:204-208 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/consumer/ConsumerGroupMember.java:574-578 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"clients/src/main/java/org/apache/kafka/clients/admin/StreamsGroupMemberDescription.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe91262988bacb047cc8bc3bc8781c6320e5213b9e764eb63fa1c71af61d1441"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/admin/StreamsGroupSubtopologyDescription.java:47-51 | storage/api/src/main/java/org/apache/kafka/server/log/remote/storage/LogSegmentData.java:58-62 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/admin/StreamsGroupSubtopologyDescription.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1d95fc675ba9a28a10393d83bdd7cc0acb53ca6fe38986dc1893a894786e04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/CompletedFetch.java:328-332 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareCompletedFetch.java:332-336 \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 \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/CompletedFetch.java:328\u0060 it does not close everything it opens, so those exact 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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/CompletedFetch.java"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2c495e3f6f91c24c532abf29e9f65aac3013f4d73873a5c60eebe729ee7f96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/FetchConfig.java:82-86 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareFetchConfig.java:86-90 \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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/FetchConfig.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"33b17664e8bfd0b033816621f373dbe3bf7a5f6fe059d7d3457fbef85a57ab7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:947-951 | clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:1064-1069 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java:947\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5ab19941b2f35f1db451ffdc029c2a35e339e848f8029405e2c906ece50a9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clients/src/main/java/org/apache/kafka/clients/FetchSessionHandler.java:451-455 | clients/src/main/java/org/apache/kafka/clients/FetchSessionHandler.java:478-482 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060clients/src/main/java/org/apache/kafka/clients/FetchSessionHandler.java:451\u0060 it begins part-way through the construct above it, so those exact 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":"clients/src/main/java/org/apache/kafka/clients/FetchSessionHandler.java"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"5864886455133df96ee674ff66f542ad5b77bc8199960ab993fade278677e901"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/protocol/types/ArrayOf.java:77-81 | clients/src/main/java/org/apache/kafka/common/protocol/types/CompactArrayOf.java:82-86 \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":"clients/src/main/java/org/apache/kafka/common/protocol/types/ArrayOf.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda6eb44dd31aed117c7aadeacc29336520a8ce438446b2ded3b253087ed328f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/protocol/MessageUtil.java:229-233 | clients/src/main/java/org/apache/kafka/common/protocol/MessageUtil.java:256-260 \u2014 both copies are in the same file, so extract the block 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":"clients/src/main/java/org/apache/kafka/common/protocol/MessageUtil.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f70ce8af60b806df544e186772e77cb2e01fe571c19613c9a8f81f0c3b7ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): server-common/src/main/java/org/apache/kafka/server/metrics/KafkaMetricsGroup.java:142-146 | server-common/src/main/java/org/apache/kafka/server/metrics/KafkaMetricsGroup.java:156-161 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift 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-common/src/main/java/org/apache/kafka/server/metrics/KafkaMetricsGroup.java:142\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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-common/src/main/java/org/apache/kafka/server/metrics/KafkaMetricsGroup.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"18edf407b7692e59044d6578cd8ea63986506f5018a87ee191d4d756b7e237a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): server-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:389-393 | server/src/main/java/org/apache/kafka/server/share/dlq/ShareGroupDLQStateManager.java:580-584 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java:389\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, 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-common/src/main/java/org/apache/kafka/server/share/persister/PersisterStateManager.java"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"7666a20c3c10f6be3802d33e726cae06c4dbdcde21b8b32c9b141aa76d486e21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): server/src/main/java/org/apache/kafka/server/share/fetch/InFlightBatch.java:210-214 | server/src/main/java/org/apache/kafka/server/share/fetch/InFlightBatch.java:236-240 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060server/src/main/java/org/apache/kafka/server/share/fetch/InFlightBatch.java:210\u0060 it begins part-way through the construct above it, so those exact 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":"server/src/main/java/org/apache/kafka/server/share/fetch/InFlightBatch.java"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"d040b5a2cb2b589e5c211b3650cc6f8e381c4d18925153292cfd22b6cadfe9cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): server/src/main/java/org/apache/kafka/server/AuthHelper.java:108-112 | server/src/main/java/org/apache/kafka/server/AuthHelper.java:172-176 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/java/org/apache/kafka/server/AuthHelper.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c992a81326c99c5738b2dca07945d27b11bdcb35f8689fe3a0daf92073310e9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/UniformHeterogeneousAssignmentBuilder.java:855-859 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/UniformHeterogeneousAssignmentBuilder.java:887-891 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/UniformHeterogeneousAssignmentBuilder.java:855\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/UniformHeterogeneousAssignmentBuilder.java"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d47635c22fead9d61b7c66773a5004f4c1016ff821eaa60670c2192cd95edd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/StreamsGroupMember.java:411-415 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/StreamsGroupMember.java:421-425 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/StreamsGroupMember.java:411\u0060 it does not close everything it opens, so those exact 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":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/StreamsGroupMember.java"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd43674e6c432226b00e46261499e1e2feb44c7f1d10ffe47d3a12cb469c018c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:6505-6509 | group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:6511-6515 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:6505\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":6505}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad14f42c157694d7771d5e3e78c02e13a02cd3ef83470c7802e08f31085bada"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorShard.java:842-846 | share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorShard.java:877-881 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorShard.java:842\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorShard.java"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95eebbff8ae5b6b5645ef38568ffb1d6078c15f64f783471b536a67d903eb6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): generator/src/main/java/org/apache/kafka/message/SchemaGenerator.java:148-152 | generator/src/main/java/org/apache/kafka/message/SchemaGenerator.java:190-194 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060generator/src/main/java/org/apache/kafka/message/SchemaGenerator.java:148\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/SchemaGenerator.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8161c4367020dd0af850bda02fa2b34d319f8b36485e3ac30a99518adc4cdb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): generator/src/main/java/org/apache/kafka/message/StructRegistry.java:90-94 | generator/src/main/java/org/apache/kafka/message/StructRegistry.java:128-132 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060generator/src/main/java/org/apache/kafka/message/StructRegistry.java:90\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"generator/src/main/java/org/apache/kafka/message/StructRegistry.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8371ae555130d8a0a7d8a9c481a75316071a3e119254a5efbf92a6dc7f84a9c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): jmh-benchmarks/src/main/java/org/apache/kafka/jmh/util/ByteUtilsBenchmark.java:508-512 | jmh-benchmarks/src/main/java/org/apache/kafka/jmh/util/ByteUtilsBenchmark.java:528-532 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060jmh-benchmarks/src/main/java/org/apache/kafka/jmh/util/ByteUtilsBenchmark.java:508\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/util/ByteUtilsBenchmark.java"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f62a2879d194b3bd862e5ce77902449708dd54b31281df90b7d8e5d5264cb40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/image/TopicDelta.java:180-184 | metadata/src/main/java/org/apache/kafka/image/TopicsDelta.java:239-243 \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 \u0060metadata/src/main/java/org/apache/kafka/image/TopicDelta.java:180\u0060 it does not close everything it opens, so those exact 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":"metadata/src/main/java/org/apache/kafka/image/TopicDelta.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"146c832ab74801cb3bf96216e2a3a6c23f4e1ebf57eff8d87c5c399f532bf09c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/metadata/authorizer/ClusterMetadataAuthorizer.java:103-107 | metadata/src/main/java/org/apache/kafka/metadata/authorizer/ClusterMetadataAuthorizer.java:143-147 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060metadata/src/main/java/org/apache/kafka/metadata/authorizer/ClusterMetadataAuthorizer.java:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"metadata/src/main/java/org/apache/kafka/metadata/authorizer/ClusterMetadataAuthorizer.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b2e95d68f8f9ae9fb485ed0087a92ec3248cecd1fc89b90dd1352c0a276bf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): metadata/src/main/java/org/apache/kafka/metadata/KafkaConfigSchema.java:197-201 | metadata/src/main/java/org/apache/kafka/metadata/KafkaConfigSchema.java:227-231 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060metadata/src/main/java/org/apache/kafka/metadata/KafkaConfigSchema.java:197\u0060 it does not close everything it opens, so those exact 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":"metadata/src/main/java/org/apache/kafka/metadata/KafkaConfigSchema.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4876efd27119039f40ba3d506315e208300e17250e040e2a0470d7febd9945"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (187 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/requests/AbstractRequest.java:177-363 | clients/src/main/java/org/apache/kafka/common/requests/AbstractResponse.java:113-299 \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":"clients/src/main/java/org/apache/kafka/common/requests/AbstractRequest.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"a324d4bf922f8f66352ae65b3a12060426459557ca64ecf6f974a29891d6b28c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): clients/src/main/java/org/apache/kafka/common/requests/OffsetCommitResponse.java:64-85 | clients/src/main/java/org/apache/kafka/common/requests/TxnOffsetCommitResponse.java:222-243 \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":"clients/src/main/java/org/apache/kafka/common/requests/OffsetCommitResponse.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c27c0a9fa4b843f817c4ee6d04ad3800b6c445114851d53975200b52ab23835"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java: group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java changed 20 times in last 90 days, max complexity 34. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce30b719ad883f4bd000457658a9e969dfe4f8f3fd6d968c93be07d797c87fa8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorShard.java: group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorShard.java changed 8 times in last 90 days, max complexity 24. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorShard.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e396269f6c05ba3974c1e8e4ae698296eea200206d3256b4ce1b2f57abbde3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: core/src/main/java/kafka/server/share/SharePartition.java: core/src/main/java/kafka/server/share/SharePartition.java changed 6 times in last 90 days, max complexity 32. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/share/SharePartition.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3d94a08565d7e9cf6474e7192b54825946d757efd32d0ceff86da235702eb6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: server/src/main/java/org/apache/kafka/network/RequestConvertToJson.java: server/src/main/java/org/apache/kafka/network/RequestConvertToJson.java changed 2 times in last 90 days, max complexity 91. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"server/src/main/java/org/apache/kafka/network/RequestConvertToJson.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8452fe81aa73555b95248080d52bbda937eaabb6544c3911ce6a64ee396a3d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java: streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java changed 8 times in last 90 days, max complexity 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamThread.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"10882179538de21fea1dfab1f26b595ac3dee67ce50b92dc0a69f35e82521093"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsGroupHeartbeatRequestManager.java: clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsGroupHeartbeatRequestManager.java changed 9 times in last 90 days, max complexity 16. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/StreamsGroupHeartbeatRequestManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b17d4af0b33eecb3cd3ce5de40eab06a3fd582cefd983a40f1af3a83a5b578"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java: streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java changed 5 times in last 90 days, max complexity 25. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3230feaadfbf9b9a06fcb57432d0a50d36d2a78f9c55cc3b4f71fbf007bcbdd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java: clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java changed 5 times in last 90 days, max complexity 23. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ef9a42e37fa334bf239182111efaace780f69df08e1c74297bc256c87a6e47"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java: storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java changed 4 times in last 90 days, max complexity 28. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"349ad5a416502de81e7ff252c019e0748c9b52907e15df404be790903fd84d6c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java: streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java changed 5 times in last 90 days, max complexity 21. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/KafkaStreams.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65527fa82d6d984419b57298ad053f5b57f77ca67ec94d9b1841cff951041a3"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 10 significant file(s) lose their only recent owner: streams/src/main/java/org/apache/kafka/streams/state/internals/LegacyCheckpointingStateStore.java, streams/src/main/java/org/apache/kafka/streams/state/internals/InMemorySessionTransactionBuffer.java, streams/src/main/java/org/apache/kafka/streams/state/internals/AbstractTransactionBuffer.java, streams/src/main/java/org/apache/kafka/streams/state/internals/InMemoryWindowTransactionBuffer.java, streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBSessionStore.java, streams/src/main/java/org/apache/kafka/streams/state/internals/KeyValueToTimestampedKeyValueByteStoreAdapter.java, streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBWindowStore.java, streams/src/main/java/org/apache/kafka/streams/state/internals/InMemoryTransactionBuffer.java (\u002B2 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ec886d4d502815c5ddfbdf60c843438cf00215769784e423ac1aa1e48305885d"}},{"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: server/src/main/java/org/apache/kafka/server/share/dlq/ShareGroupDLQRecordFetcher.java, core/src/main/java/kafka/server/share/ShareCoordinatorMetadataCacheHelperImpl.java, server/src/main/java/org/apache/kafka/server/share/dlq/DefaultShareGroupDLQManager.java, server/src/main/java/org/apache/kafka/server/share/dlq/ShareGroupDLQMetadataCacheHelper.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0d6a3703815e5b75b293f95d3c6e34b16c14ae14253f321629467ff4dd4c4cd8"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 5 significant file(s) lose their only recent owner: group-coordinator/src/testFixtures/java/org/apache/kafka/coordinator/group/Assertions.java, clients/src/main/java/org/apache/kafka/common/telemetry/internals/SinglePointMetric.java, clients/src/main/java/org/apache/kafka/common/telemetry/internals/ClientTelemetryProvider.java, clients/src/main/java/org/apache/kafka/common/requests/OffsetsForLeaderEpochRequest.java, share-coordinator/src/testFixtures/java/org/apache/kafka/coordinator/share/ShareCoordinatorTestConfig.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e38f32b04f23ee452a405e34116fa0ec2660f0c5b5842d9ad0d9cbffd4e27005"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #4: If anonymized user #4 becomes unavailable, 4 significant file(s) lose their only recent owner: coordinator-common/src/testFixtures/java/org/apache/kafka/coordinator/common/runtime/TestUtil.java, coordinator-common/src/testFixtures/java/org/apache/kafka/coordinator/common/runtime/MockCoordinatorTimer.java, storage/api/src/testFixtures/java/org/apache/kafka/server/log/remote/storage/NoOpRemoteLogMetadataManager.java, coordinator-common/src/testFixtures/java/org/apache/kafka/coordinator/common/runtime/MockCoordinatorExecutor.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4194243c750ea5ca97483985219aabe1bcc5f1ca3a72f5cddfe0faa44244309a"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #5: If anonymized user #5 becomes unavailable, 4 significant file(s) lose their only recent owner: streams/src/main/java/org/apache/kafka/streams/state/WindowStore.java, streams/src/main/java/org/apache/kafka/streams/kstream/Produced.java, streams/src/main/java/org/apache/kafka/streams/processor/api/Record.java, streams/src/main/java/org/apache/kafka/streams/processor/api/ReadOnlyRecord.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dc9a58c936b21d6fcf4589547cd69c38cf15d5287265ad5cd6565c616ccbcbcc"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #6: If anonymized user #6 becomes unavailable, 3 significant file(s) lose their only recent owner: server/src/main/java/org/apache/kafka/server/EnvelopeUtils.java, server/src/main/java/org/apache/kafka/server/logger/LoggingController.java, storage/src/main/java/org/apache/kafka/storage/internals/checkpoint/PartitionMetadataReadBuffer.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"594bfe120dfe368065e91b5d531af66ead696e5150160e245a9d7239ff322579"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #7: If anonymized user #7 becomes unavailable, 3 significant file(s) lose their only recent owner: group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/MemberTaskOffsets.java, streams/src/main/java/org/apache/kafka/streams/processor/internals/ProcessorContextUtils.java, streams/src/main/java/org/apache/kafka/streams/kstream/internals/TimestampedCacheFlushListener.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"eb5278d848fd0f911d8d568fa4c82ad27b0f2ac037b942c52980ba6a4325a664"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 37 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (87 single-owned of 2481 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). They are anonymized user #8 (2 file(s)), anonymized user #9 (2 file(s)), anonymized user #10 (2 file(s)), anonymized user #11 (2 file(s)), anonymized user #12 (2 file(s)), anonymized user #13 (2 file(s)) (\u002B31 more) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"93e58ab9c249f8f5b4661def63f9d9d90ec17abc9779e2fb890de589ac76f67c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e97961e0555a0e453ef3e0988674b19f62dcea68159457273667c4c8529c85c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a2311139e466d249d0387481804b659981df7228d0b7b64c4b7bfb018228269c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4d621ca81910dd86b411e052daa24cd58341b71794022b0289cabd89c2eca319"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"25254c97b62b13b7c073eeeb90b462ffec833e325034c0621142898ae58e024f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0333cf87a5177c1254012f4d5dbf3e07337a05e885c0693b7dd983b2c1bba57a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1bd9b9eb5cc46f0273d0deff544ebc6ecffbd060622a60fca5f0dca673cb6948"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0f47faabc2284ec1270480a9c1a85f10e90f15fb85b54a1187e0df5b6cde16b9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"546f22fdfede5cf74de158c51b1d6a3eae2f7b71d43add3f95701d92bb325bc2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e61ab9799832d23091f5f5c92b74e2060db11d2c61b61b8e62b3bf3a3fc0c466"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6119627a4da75e19e157e8490d12612c851eb709c4a30b5c2b949f471eec3353"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9f90611a1107f35e2b165d791c25f7b4b12bcb906a5b9de5b5eafaba19db7ec0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"965789a58b65a74f2abf11f95db69eca5f2f9c180318596b6b331987cdc67ffa"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6179746df763e614d1f498a379ba17f3181e8a937a19ff6620bca2554850a666"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5689ff42dbe16e54dc19c8c204679e81faafba26e1eb928774ac5165ac62c519"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8c6816cfd0528b7c1592a58beaef7ff9ce10fdf76080f00b71906dbc6f8d3be0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe86f2aa56ba9f5620d05edcf800bb7d40d866f79e1a311f928643669c2f1c70"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"50f9bef8fc0abd6346c8a436d82eb31145c3d9ca0ae5b8d5162df499ad5eb1a0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6a7a9d5c6a82dc3b3f952d966a2e17b527922a91cddfe604be7655bb4896aa3c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b10254328b10a6e2ca8fa24f701591e038f66164b325f5e8a4b3d81ce74599ad"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9fd84fe9860bee7fd2e0bf588431944f2a8cfd1d2c46420d9f958e0d68fafeb3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b51a2f7dde20710a2b7e23d6f43643473bcc1d97e07f09b483d71b0f06980159"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"271e8d469346b66cd70705524acbb841d9e3ab6b3c68e241523c7202108aecaa"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bcae5b46fe63cd3836f28ef0282c153396e4944904cb3aa1cadd35de648f4746"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b40a1b94dbb8155a522ac77d13937431fdbc92397436d39e7ceff3e7240a2ea4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"17b578132baf7ef453338e89c007f1c7fa7f6e3acc669466ffaba7c139a8ee6f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"97363ac2e37ce4295022aa9b75f1acfa4d154c1ce3797d189a214e37321581e6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ba2c91b5adf5a5872d0bf0cd61696fad260cc79a46fe73bf3c20664fdb7d3905"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e56a9810e701f102d7c619fc46fc3a94f2832bcb8f4b55836d69aa5eb4cdf93"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c4a7a01e4e7ebf174609faade2484ac94f57dfb6917061b0fa96b4e8d7fb657a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"255a9ba3e13cc0e7e8dde78298c5c5588233cada2e05a6dcd0b5952f423b9d9e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"12f36b82c98ef4777c5556841002e78f487245df55934bc7bb1370fa4fc9dd7d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d7e01a05a490ae62e3b9331c0013a564abd37b29391e990ec82dbae136c39f4f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"713c6aae5b295493fc3d3db0adac2bab7780f91ff82770d66b656b80135469f8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a3586b83da7f0c6239c91c37f91ba9b2a690b855c02f32db540685122ba43f39"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"948a18ae23e15b5fb173eb4eace95c3283802ec625ab258975bca77b0f4886b2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a9fdf2f1bf5ee7b2579c7a565669230578edc058c4fbcd19da4f41300daa1ef5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"35426e0474ff06a49fc849a25111ad97e02b093eb84fcb235682d238e297d6e2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"96e22a7e3dd14b001279c5140ea9b3b045a496f4e41d38b0eead52b770e22498"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"609d45f96595a1f054107ba95d3b6a520f510cdf807f6ebd1481813672c87ed5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1dc29ee987d4118f7ce770320f4cff535455506c3313b8a4968d3390c85a2bd8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"49bce48574eec11c00986fc1b3eb0ff2f3971fe78365ca19e3c14da07cc6dd00"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6b1b4d96405d4d69ceefc09277f848f092d09c9d27baa2588760e16eea39b836"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ab8d83539c5ebe567cb6deae98d392d6617f9ea4001a34a9a21fb3f393c0be8f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2c1355b90e1cde0e73fabe82f711570246c4d19fcaccbd6e5df21ce6dfce788a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e13eb5883a262135390428c21f955d4f5ca3e57cd636b73c0f0405f0ad863af5"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d977b1bd94f037b9e0465adfec51cbb8e9ed228ca5e7d42f2b6bf891ebcc39f1"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"18548081042999254a0755c80f7cfe69e6c5b1819c0b18deb7ebd746303b2341"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f51727e9ff78b2f0846bafa57f94c534007603c816b60c1ae95c8ddf59dfdd0e"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bccaa558ccc7fa57f197f9668379db91fa75a5aa2194d563d72fc61a942c71a5"},"taxa":[{"id":"CWE-89","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":"727714ca5721fdc9ee2abbc269720ddc9252d55edb8df9f21b01be9f94000861"}},{"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":"2d68fa10a29a012f2df26fa7c5d4ce2bfbbada982bd88033c8a206bd6bfe8ed4"}},{"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":"5c1616b2fed7df5e9cd87c9b4db95a0e65b34f3a78bd1bf60c697a577fdd0ff8"}},{"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":"6edb919ba537e54656a5d7f0ebc2c7d3264677a916a895a6bbd0b86be3a41d3f"}},{"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":"cfeaf09225f6fd3d42974c7749b2408850ede0f9973c11f4f946d7df399abe4c"}},{"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":"153430374cf450d827d6be4e6a101c23a5a09333444220d31e75c3d0efb7ba25"}},{"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":"50631d5a2d3c30e9f673b8a21290a53050315ee137edfff9ff9e545f891876f7"}},{"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":"27b9266a120f85031742f3ee9f8b9d92ac59201b294db3bdbfd6dc8324d18984"}},{"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":"1443d4794ff52cd415b5217b3e1b2e998a570b8752185111b8e33f64c9bbefd4"}},{"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":"804b9b2f8cc88cac188bd47be294de39de816d0892dd387e65fb60f6663f7cc9"}},{"ruleId":"D32","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":"48653d3fad554906204a3c3584eb1d28eb1ebf7abed65e0a5942d4c92386775d"}},{"ruleId":"D32","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":"243255a000125f608984e128d53e2522cccd00e9f1728ed64022e679b81a16ac"}},{"ruleId":"D32","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":"2a9b62fbf1fe326692c8c456b9fd3626a4e821c4ca8a8c9119d21f6b63137543"}},{"ruleId":"D32","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":"e4a8fa77ab4020c54f2cc274f13328039ee339adbe4527f7f98bcbf01d519d28"}},{"ruleId":"D32","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":"af8e9f556c2699fe2fb59dd1ff778abb6278c8c95bf2043f5fa7066e90b6f778"}},{"ruleId":"D32","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":"e579cdb4f1dcbd37e8ba6d9c8c73597f75038f4aecc30f94caeecc5b4c5c73c9"}},{"ruleId":"D32","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":"e86117cf0d7d42e5a2625858d906f391ab9be62199d0f317a873ad6ab968ae25"}},{"ruleId":"D32","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":"6738e8b43721056c84ceae462281b478551495dcf506c5fa2c2b6c5d6ca6437b"}},{"ruleId":"D32","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":"d7cd26f7a8e3c0abff7e45f60b0bce30753cb4e48679d9967f09571af661ae54"}},{"ruleId":"D32","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":"3a4a12f7e2fc0c19db74c2742fa7f8b8ac22a78e36fe1075f38efe4016a66eaf"}},{"ruleId":"D32","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":"008660abf77cdebe5de6e9cc0ca5c5ac9061ef96dd623cb3c56e9e820e43affd"}},{"ruleId":"D32","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":"d647599f5ea0fc6c5b7ba89ded0e440fc8c1bf9e4c853475102bf96d01411e87"}},{"ruleId":"D32","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":"70d7eb381ac51d1baef7069d6e55ad8927d9d560e8e3d3ce0ab61a43243f3585"}},{"ruleId":"D32","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":"b10131ee6c60c8da20004cbda94e0f92362cfb6b5be1616933def3644c1a8011"}},{"ruleId":"D32","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":"1158473b6611983262ec5f96aadab390c18fe82da4461d89182207cd7d4f026d"}},{"ruleId":"D32","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":"c392c65a9c8f3ba63944527169d46c7dd75880837ea26bd7f5e7a13818ba836b"}},{"ruleId":"D32","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":"3aa9bd5c2390ef2baf09c8aaf5457662782265efdecbd2ce28433b1f540eb468"}},{"ruleId":"D32","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":"b180dbedb39db2a6308a5a6f075d31b529ea6094dea0b06c96355a76899d26b8"}},{"ruleId":"D32","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":"4b9f3db1caac8acd945c5258703ac91c3be36f4c96468d55d70f90e96eb91a31"}},{"ruleId":"D32","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":"b35ba94c6050c72613adbf23946224b77f57915817a4f154e4f83d65c8846e18"}},{"ruleId":"D32","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":"a4e061389272339d87bd96702d602e4c56a684663f2bba61f6efd0f93a3164f0"}},{"ruleId":"D32","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":"9fbb6203e2e9ec7e1839ae823a983ed86217e5c831e9e4495510e8ac94c163cb"}},{"ruleId":"D32","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":"d35891e71b4f090dcd532d433bd4b7f311523d677c7c8c30a666cb623524bdba"}},{"ruleId":"D32","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":"a68380ea8d36b3876ec12b72b3dcd2f864872eabfddcaee119afa2d41d49ecd9"}},{"ruleId":"D32","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":"46d7a45014ee24465e046bec13863e244a9f53935d8e0b1a7a1450993c3f4323"}},{"ruleId":"D32","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":"1ab17867370fb92d262e490dcd02a88d63532fae1c7b52de5e0dba39c5322a67"}},{"ruleId":"D32","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":"13fcc09899e2f8dac9c9551f197d3e9d05772c3204beea09ad1bdc7e23f7058e"}},{"ruleId":"D32","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":"c530248a348ae3eee02a5d5acd609281b48f507834f60ab21d5f3b4c48cc334f"}},{"ruleId":"D32","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":"ac15e0ec51a40686a6360706d01395c895c5e5964f7188f96a1aafc5d8de284d"}},{"ruleId":"D32","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":"5b5f90444d276c333f4ba9b7cb4fc32fd0d5438abca8d482c756b63b5ba639d6"}},{"ruleId":"D32","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":"5c118897c8bc4d336470cc1bec24fe184d4085ceb7fe352ac716b35d96c8b646"}},{"ruleId":"D32","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":"70431b77b4fee2b3c887a6b181813667cfb5bed6877be7653e07ff64dfd76115"}},{"ruleId":"D32","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":"164ea4afd7b3cdc4bcb4ea2e74e8021c84a5c850b2885d2945c3dd4803405633"}},{"ruleId":"D32","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":"a83e485cc162814fa41911ee41d1b21d1d421e8fd0827acefd2df47fe48f852e"}},{"ruleId":"D32","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":"0074ec0682c9b21269531213c29b5a146be84112e10447cb81893a6b7dbcbf7e"}},{"ruleId":"D32","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":"9d38d3f7fbfc7324afb8bf5c54007bd08c0014afa46f2037021c837bf4301be5"}},{"ruleId":"D32","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":"44e1d6f23210bb60b9b0619bdf0d9fd0f48c310264e992aabe4b3731836c22df"}},{"ruleId":"D32","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":"0721ea9a0df43298679dd25a0dda15375fbdd7ebfbc541487ca4b08916bd1783"}},{"ruleId":"D32","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":"d75108b5318637bf71ebcd0907aa76928736f98b7c5993f311436515ccac1944"}},{"ruleId":"D32","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":"db9a0c96981cbe3359ee9f5d0fab98f515a3edbf131fa1811993e8f0646406aa"}},{"ruleId":"D32","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":"1f8bc3099b2743bb307296405a26f8a493811e2f48733df48ed0c399fbc33b8d"}},{"ruleId":"D32","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":"847f7557cc8b5b041bef5b7ef9e5f2c188d7c9b61cbcaaf718919f0abf128c37"}},{"ruleId":"D32","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":"d8bb53e177ab3f50039a51528d0f43ff96e20b4b43620b47bb6b41c194be6f67"}},{"ruleId":"D32","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":"0910f1e784fe2a63cfa2ae0006378d7ca83e3f20b6dbb527f831d552f9031e16"}},{"ruleId":"D32","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":"927b3dd0c842ad7a427261e7817a0ae89deff7e62448456e704a64b25c8fbfca"}},{"ruleId":"D32","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":"bf3fd30c697af5d84b7d5f5d98020a338f165dc9b39462bfdd3eaa89bb3948a8"}},{"ruleId":"D32","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":"c90bc3ad0a888bc67ac36fc1b49327481d06d87a2ac4c75e56ffd4ff0c805738"}},{"ruleId":"D32","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":"cdadc3a8492e5ea4e56458522ef90ba41cdc37bd03a594123ddd31c098bbfbea"}},{"ruleId":"D32","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":"f5faf08094451ab7a9f836d29fbab4016999871dcf62fab6f3018efed8866d93"}},{"ruleId":"D32","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":"1aeefabd862a0a3eb5eb29c142f8ef359229802bd3979c17d1a8fa9dc227025c"}},{"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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/AbstractStickyAssignor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75ade349836cdd4ee935443782f5a684916f50a778c9bdd765f1d58ebeac117"}},{"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":"connect/api/src/main/java/org/apache/kafka/connect/data/Values.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7df5002bb1def512d7982cb73e396f8127ec389e267fc04c1950973e86baaa"}},{"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":"streams/src/main/java/org/apache/kafka/streams/processor/assignment/TaskAssignmentUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"650069ff58b95e4d322b629792609207a165d8a600436b05e1a38a8af2b88a74"}},{"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":"streams/streams-scala/src/main/scala/org/apache/kafka/streams/scala/kstream/KTable.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d245895522dd3b15fefa864e27bf12096789a581001443ae16ac5e277ef221"}},{"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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerSinkTask.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcad139adf3e71e7701fe800d8fac2a8e2f0d3c9d548c713c8699900f3104808"}},{"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":"connect/runtime/src/main/java/org/apache/kafka/connect/util/TopicAdmin.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6713b3b7830a8ac1fb6c11d223c0054874ebe1a24985e0926b8d8c54bb48211"}},{"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":"streams/src/main/java/org/apache/kafka/streams/state/internals/metrics/RocksDBMetrics.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9410a61893f5c0d63569c222ceb83e694387d8f43256cdc82a05c8e8d838ba5e"}},{"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":"clients/src/main/java/org/apache/kafka/common/security/authenticator/SaslClientAuthenticator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7539c7822394c96a91974eda740315caa0bc1557f2d014763aabfe925441cad5"}},{"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":"streams/src/main/java/org/apache/kafka/streams/state/internals/RocksDBVersionedStoreSegmentValueFormatter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"525a3737a5738194d5068d869e9f83cbf2034aa4e5127e5ab231118d99f02a20"}},{"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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/ConnectMetricsRegistry.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"236592c1afed16ee36a0b7fb1634450f6c6975bbdf80f72ec49b853616956b40"}},{"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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/AbstractWorkerSourceTask.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"019ab88665fd0f984ef442f70a3cf89c9affb0e7f6a50542268352fde0791d12"}},{"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":"connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaStatusBackingStore.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40917d7e4a2714089a49f786a040148c780dbfbcf74006c1f8beaa8c4fcb6787"}},{"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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsMetadataState.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"081c683dfa453dcbd2546c6655846139e62b1cf13ac0bd876df669de1217380a"}},{"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":"clients/src/main/java/org/apache/kafka/common/network/KafkaChannel.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb7d7037a0cc85600a9b4779f5a2a2bc1b7d3244bfa03ad9fd19c9bed4a5ca9"}},{"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":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerNetworkClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9581da0846a9b6c9fc78d203c0a71cd2b17a8930f34aec91e677431e79ff8af9"}},{"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":"streams/src/main/java/org/apache/kafka/streams/state/internals/metrics/RocksDBMetricsRecorder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a02ba783dcf8aae3750c28ea794929a62590db50dc5fe53c42d76c0c7f46c0"}},{"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":"tools/src/main/java/org/apache/kafka/tools/ManifestWorkspace.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8258ad0c1d0dce8ec155b3143a6f2dbfecb9a2c69e871e9883196500a60de20f"}},{"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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/ExactlyOnceWorkerSourceTask.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ceb8ed7ae0a442c45740ce688d44b7f980e3845698b81168b1570aee2a4106"}},{"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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/RackAwareTaskAssignor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea20367d0e0fa36141cd139334a75b139b93752095f6dfa956523099a8f6ff8"}},{"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":"generator/src/main/java/org/apache/kafka/message/JsonConverterGenerator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92095df24b946e63f53ebdc898d044dc24fa9b0ad8ac6dabbb83e3fabf717295"}},{"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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerTask.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7a9eecd5e9c90d9d762103c1205d0bad1595dfa2aa620a7127f8af4e70c933"}},{"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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/ClientState.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea3b850475ce013e49f0b4aa1e579049c59ede573f90b6e6ed90b3ad5a721ce"}},{"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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerConnector.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb1d4c8fd277e98bfe606ede1070952832e3847a106f70ed34c7f90f30bc8fc"}},{"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":"clients/src/main/java/org/apache/kafka/common/security/oauthbearer/internals/expiring/ExpiringCredentialRefreshingLogin.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8420dea0d0dfdd4d0c930e934b8eb1c585e5a49aaa738dea3535b0669a2d29"}},{"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":"trogdor/src/main/java/org/apache/kafka/trogdor/workload/ConsumeBenchWorker.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8561ad6ea437ec364c582af43025c73c7f76b25fa22306dab8a0e1fa16bba880"}},{"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":"clients/src/main/java/org/apache/kafka/clients/ClusterConnectionStates.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86d278e1806f0467b632dbd157bfbe35abb99d97c0fc8f9c6891976c617961b"}},{"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":"connect/transforms/src/main/java/org/apache/kafka/connect/transforms/TimestampConverter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"712a87b46106f9079e6ba1078faca516cae715bdca343cae3173e7d95d83136f"}},{"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":"streams/src/main/java/org/apache/kafka/streams/state/ReadOnlySessionStore.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8ece235ad4b2447c1f94ecde5e034b8c828bc11b1968db08f5f4d98eb3c18c"}},{"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":"connect/runtime/src/main/java/org/apache/kafka/connect/storage/ConnectorOffsetBackingStore.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2eeb7ea15bd2c70c33a16e02770fdbf1405774b9995e33540824a04e3afe16"}},{"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":"trogdor/src/main/java/org/apache/kafka/trogdor/coordinator/CoordinatorClient.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a81fd8e28ed412ff89644a169768e4e7592ba8f9a61a672c9e6e79e66b09db2"}},{"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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/ClientTagAwareStandbyTaskAssignor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea900f8cf4d6e7dcbe83b1cb27d99c074223d38cdf9f7a4172339731b89b7531"}},{"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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/resources/ConnectorsResource.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db43774a4b72fb9e7909b0efadaef6946ebddbfd4bae4397bc19e065c844ded"}},{"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":"tools/src/main/java/org/apache/kafka/tools/OAuthCompatibilityTool.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9835a0f09a9941389e5ca6b2d9c6316f5946e008d208671d520a91f7f61ed100"}},{"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":"streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/Graph.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd62c586b07e1edad562e8f2b6aa61c3842ef7068a8a107aee1a5322a243cc09"}},{"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":"clients/src/main/java/org/apache/kafka/common/requests/MetadataResponse.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43887cffdf207fc90fdb2be83e128473412d1aa17ffb9c4d73ec4f4943c6e50"}},{"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":"connect/runtime/src/main/java/org/apache/kafka/connect/runtime/ConnectMetrics.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70b4906b67c85645a76398a83a399666fd7c0b735fe8f028a642e8d630e7bc1"}},{"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":"clients/src/main/java/org/apache/kafka/common/security/oauthbearer/OAuthBearerLoginModule.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f116bf5722003b73955c2ea323ae24578f14e88e1af39b88ee845777076c0929"}},{"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":"tools/src/main/java/org/apache/kafka/tools/TransactionalMessageCopier.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e827ed8b650d615d1e762ef1203924ddb59a1a503cc1f00cec5c5d5dd6f100ff"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 973 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than listed individually (1011 orphaned of 2519 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":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: ApiKeys.java \u2194 RequestConvertToJson.java: \u0060clients/src/main/java/org/apache/kafka/common/protocol/ApiKeys.java\u0060 (context clients) and \u0060server/src/main/java/org/apache/kafka/network/RequestConvertToJson.java\u0060 (context main) sit in DIFFERENT parts of the tree yet change together 64% of the time (9 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/common/protocol/ApiKeys.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7aedf6880b05e04c2df451a033d073a9fa7d37c9b396d9ba390d146035bc21b"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: GroupSpecImpl.java \u2194 TargetAssignmentBuilderBenchmark.java: \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/GroupSpecImpl.java\u0060 (context group-coordinator) and \u0060jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/TargetAssignmentBuilderBenchmark.java\u0060 (context jmh-benchmarks) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/GroupSpecImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72675b7aa8fe03a525d7a7b110e42b1a45273a3a69db3881c9a209b11ec8dd58"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ServerSideAssignorBenchmark.java \u2194 TargetAssignmentBuilderBenchmark.java: \u0060jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/ServerSideAssignorBenchmark.java\u0060 and \u0060jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/TargetAssignmentBuilderBenchmark.java\u0060 change together 84% of the time (16 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/assignor/ServerSideAssignorBenchmark.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f056bcd50236dd765c02c203c112728830d04a07748692480117354cbefa06"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ActiveTaskCreator.java \u2194 StandbyTaskCreator.java: \u0060streams/src/main/java/org/apache/kafka/streams/processor/internals/ActiveTaskCreator.java\u0060 and \u0060streams/src/main/java/org/apache/kafka/streams/processor/internals/StandbyTaskCreator.java\u0060 change together 83% of the time (20 of the 24 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/ActiveTaskCreator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7ec5665c34f41ddb722cb50ec43c0bfd4512e876f84f478980f96ad5dbe65b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ApplicationEventProcessor.java \u2194 CommitEvent.java: \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/ApplicationEventProcessor.java\u0060 and \u0060clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/CommitEvent.java\u0060 change together 82% of the time (9 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/ApplicationEventProcessor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92abd5d20ffe04e9e788afff2861adb5760cea89c429e6dc8c77f2b018a2ff13"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: UniformHeterogeneousAssignmentBuilder.java \u2194 UniformHomogeneousAssignmentBuilder.java: \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/UniformHeterogeneousAssignmentBuilder.java\u0060 and \u0060group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/UniformHomogeneousAssignmentBuilder.java\u0060 change together 75% of the time (9 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/UniformHeterogeneousAssignmentBuilder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"689145d18d7e0f9c5a7db333bd51513332fb9dc7a6589c2f553ee65c8ad08ffb"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: KafkaApisBuilder.java \u2194 BrokerServer.scala: \u0060core/src/main/java/kafka/server/builders/KafkaApisBuilder.java\u0060 and \u0060core/src/main/scala/kafka/server/BrokerServer.scala\u0060 change together 74% of the time (23 of the 31 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/java/kafka/server/builders/KafkaApisBuilder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"726e27b0214359e42637a26065ae638a08efbea7418bc0463b3a93808af77652"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MirrorMaker.java \u2194 ConnectDistributed.java: \u0060connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorMaker.java\u0060 and \u0060connect/runtime/src/main/java/org/apache/kafka/connect/cli/ConnectDistributed.java\u0060 change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorMaker.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a697c7d0f2a8508b0cbf7dbf047a6031674025ef37b5e40afaca704dcd4b20e4"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: StreamsPartitionAssignor.java \u2194 HighAvailabilityTaskAssignor.java: \u0060streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsPartitionAssignor.java\u0060 and \u0060streams/src/main/java/org/apache/kafka/streams/processor/internals/assignment/HighAvailabilityTaskAssignor.java\u0060 change together 69% of the time (9 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamsPartitionAssignor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce67f8cca15d542b3e6c4d4017a82356495c69cc95b515662f40170a20d5133"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PartitionMakeFollowerBenchmark.java \u2194 UpdateFollowerFetchStateBenchmark.java: \u0060jmh-benchmarks/src/main/java/org/apache/kafka/jmh/partition/PartitionMakeFollowerBenchmark.java\u0060 and \u0060jmh-benchmarks/src/main/java/org/apache/kafka/jmh/partition/UpdateFollowerFetchStateBenchmark.java\u0060 change together 62% of the time (30 of the 48 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"jmh-benchmarks/src/main/java/org/apache/kafka/jmh/partition/PartitionMakeFollowerBenchmark.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c575c94a2c32008d4f7fb99c945a3987a0b08c1ba59d6f406fba85d6f122c58"}},{"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":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0752d0df7434000fcabf1048e2de30a7a1a8b982b3db9a19898c4dec199856b4"}}],"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-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.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-312","guid":"96724ece-b0b2-a45c-83f9-0869fa3f6bea","name":"Cleartext Storage of Sensitive Information","shortDescription":{"text":"Cleartext Storage of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/312.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-359","guid":"b7dfe5b0-0351-645b-a311-b936102c2929","name":"Exposure of Private Personal Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Private Personal Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/359.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-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":114,"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."]}]}