{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D33","name":"JS/npm Dependency Vulnerabilities","shortDescription":{"text":"JS/npm Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D33","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"JsonScanner.scanNumber (cyclomatic 70): JsonScanner.scanNumber has cyclomatic complexity 70 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/JsonScanner.java"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"81361e2600c85cefb6eb8b9c8b9024976f1984d61ec48982f9ff3f401371cdc1"}},{"ruleId":"D1","level":"warning","message":{"text":"ParameterBindingJsonReader.readBsonType (cyclomatic 53): ParameterBindingJsonReader.readBsonType has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8e7cb8e686c6ccc5b7b803ccb9455ff88b03308d63c0904521c46e88fe334d"}},{"ruleId":"D1","level":"warning","message":{"text":"MongoExceptionTranslator.doTranslateException (cyclomatic 27): MongoExceptionTranslator.doTranslateException 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoExceptionTranslator.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a0c07341b774df39767550cbab6381c3c184476865054b3e7aa25bee5e084f"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonSchemaObject.of (cyclomatic 25): JsonSchemaObject.of has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/JsonSchemaObject.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"50426c554ebe7c814b15935d053416de2b6338bc5622ef18225abeb256460ac5"}},{"ruleId":"D1","level":"warning","message":{"text":"ParameterBindingJsonReader.visitExtendedJSON (cyclomatic 24): ParameterBindingJsonReader.visitExtendedJSON 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d5759f5460a11a3591a3ebdf7ff5746bfa66ddeff3a5cc7befe013377bee41"}},{"ruleId":"D1","level":"warning","message":{"text":"MongoEncryptionConverter.decrypt (cyclomatic 21): MongoEncryptionConverter.decrypt 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/encryption/MongoEncryptionConverter.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1730f7bca8028fcea1eaa3db7e247bacf6019b978fc53c79089ff531711dc5"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonScanner.nextToken (cyclomatic 21): JsonScanner.nextToken has cyclomatic complexity 21 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/JsonScanner.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa61262523b15faecb96a6ad48091daf27b1ed8dfbc62184546b167668733fac"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryExecutionCodeBlockBuilder.build (cyclomatic 20): QueryExecutionCodeBlockBuilder.build 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/QueryBlocks.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"181892ba8805217499a381bd8f517d8961419cc216cf9447e7a6a593f064c7be"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonScanner.scanRegularExpression (cyclomatic 20): JsonScanner.scanRegularExpression has cyclomatic complexity 20 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/JsonScanner.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e3bd7a7bbee8d8491b0a0826d4f656a05c92d4fa516ce91f775de2e2f308cf"}},{"ruleId":"D1","level":"warning","message":{"text":"ChangeStreamTask.initCursor (cyclomatic 19): ChangeStreamTask.initCursor 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/messaging/ChangeStreamTask.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58b2eef5d7f8123f06abe6a177a3b5ee76142a11c58f3e9ce7830670fbd23f1"}},{"ruleId":"D1","level":"warning","message":{"text":"Criteria.isEqual (cyclomatic 19): Criteria.isEqual 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Criteria.java"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5394a8414c7dde7f2088539837b14d218001aa88d84212eee45bb64737338c2"}},{"ruleId":"D1","level":"warning","message":{"text":"ReactiveMongoTemplate.mapReduce (cyclomatic 19): ReactiveMongoTemplate.mapReduce 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java"},"region":{"startLine":2215}}}],"partialFingerprints":{"codehealthFindingId/v1":"617e46c9fa3a64d1fcaaccffee3e5ca9082b068514b565268d5073025651b8b3"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryCodeBlockBuilder.build (cyclomatic 19): QueryCodeBlockBuilder.build 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/QueryBlocks.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfb2e9a3ef453b80d6bc76158fb1e10883d0dce7cd3c79e9f03e0be5d2dfe91"}},{"ruleId":"D1","level":"warning","message":{"text":"MappingMongoConverter.convertToMongoType (cyclomatic 18): MappingMongoConverter.convertToMongoType 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"64519ee5d4dbc703a6ee947075b9c007ca789c04179274030009dbbc68604ca4"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexConverters.getIndexDefinitionIndexOptionsConverter (cyclomatic 18): IndexConverters.getIndexDefinitionIndexOptionsConverter 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/IndexConverters.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e320765ddb2c60cdd6edd7ba4b64d9979f3f9f41a11c4adc41a410cdbd71127d"}},{"ruleId":"D1","level":"warning","message":{"text":"MongoTemplate.mapReduce (cyclomatic 18): MongoTemplate.mapReduce 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":2022}}}],"partialFingerprints":{"codehealthFindingId/v1":"1964f8d137af5a8c0dbda86f4040c2965946d6a531136e17c2367d19900a3b24"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryCursorPreparer.prepare (cyclomatic 18): QueryCursorPreparer.prepare 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":3578}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab55b28d8f7bc242b46acd581109da55ce98dfb1f647aa3146eadc4dbc56a99"}},{"ruleId":"D1","level":"warning","message":{"text":"BsonUtils.simpleToBsonValue (cyclomatic 18): BsonUtils.simpleToBsonValue 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/BsonUtils.java"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc596b8ee659141258df249460c01e2fe53f4a2a06b78f2875aab6cfb57864d6"}},{"ruleId":"D1","level":"warning","message":{"text":"MappingMongoConverter.writePropertyInternal (cyclomatic 17): MappingMongoConverter.writePropertyInternal 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b12491baf7052b8ae26be73b5b6231171531f1f84752cb36685c311f47f7335"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexInfo.equals (cyclomatic 17): IndexInfo.equals has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/IndexInfo.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"c679385030da608e25f81a1e7e8e4c8f02fac88811193627d93498dfd88e4961"}},{"ruleId":"D1","level":"warning","message":{"text":"ReactiveMongoTemplate.doUpdate (cyclomatic 17): ReactiveMongoTemplate.doUpdate 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"76177d242bbf1984dd43c280295d4ee0ccffbef9df74de6956dec7aeb3fa721f"}},{"ruleId":"D1","level":"warning","message":{"text":"JsonScanner.scanString (cyclomatic 17): JsonScanner.scanString has cyclomatic complexity 17 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/JsonScanner.java"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d83ae1d0953321bde5821fa98fb2e370bbc8c84fa16fbb6cc16068a7c90bc1"}},{"ruleId":"D1","level":"warning","message":{"text":"MappingMongoJsonSchemaCreator.computeSchemaForProperty (cyclomatic 16): MappingMongoJsonSchemaCreator.computeSchemaForProperty 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MappingMongoJsonSchemaCreator.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d994dd2e6419a56a26db2112ed4f440fa1376b8124d696afd693660101b9dde"}},{"ruleId":"D1","level":"warning","message":{"text":"ParameterBindingJsonReader.visitDateTimeConstructor (cyclomatic 16): ParameterBindingJsonReader.visitDateTimeConstructor 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"299521a9f11492c032b3472dc41ef124f488f530f1d3495733ebb9798ec5a488"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonScanner.scanNumber (cognitive 97): JsonScanner.scanNumber has cognitive complexity 97 (threshold 15). Drivers by points: if/else 65, match/switch 27, loops 4, boolean chains 1 (nesting depth added 55). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/JsonScanner.java"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"c867525d8d425226a219a38f08ba1fa072ea1fd8f2e71fa7398fa043bbdbdad9"}},{"ruleId":"D2","level":"warning","message":{"text":"ParameterBindingJsonReader.readBsonType (cognitive 88): ParameterBindingJsonReader.readBsonType has cognitive complexity 88 (threshold 15). Drivers by points: if/else 80, boolean chains 4, match/switch 4 (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"7164fe45462bc76575ea4e0094c91dc0a2ba2f41baa743ba34c79a5b6159e979"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoExceptionTranslator.doTranslateException (cognitive 50): MongoExceptionTranslator.doTranslateException has cognitive complexity 50 (threshold 15). Drivers by points: if/else 39, loops 6, ternaries 3, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoExceptionTranslator.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25b2269fe6eb6860e44058c2d0b4147db1554f2b3c7f93ba32f92107dfacede"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryExecutionCodeBlockBuilder.build (cognitive 41): QueryExecutionCodeBlockBuilder.build has cognitive complexity 41 (threshold 15). Drivers by points: if/else 25, ternaries 13, boolean chains 3 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/QueryBlocks.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4cd5e5eff15abc3f84b666cff808ea1446bada6fd3f85a03c1a2470dbd4204"}},{"ruleId":"D2","level":"warning","message":{"text":"ParameterBindingJsonReader.visitDateTimeConstructor (cognitive 41): ParameterBindingJsonReader.visitDateTimeConstructor has cognitive complexity 41 (threshold 15). Drivers by points: if/else 33, boolean chains 4, loops 4 (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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5e228bd310886bc402e826c769fd9c2f345514ef86451e2844bfffd906e27a"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoEncryptionConverter.decrypt (cognitive 34): MongoEncryptionConverter.decrypt has cognitive complexity 34 (threshold 15). Drivers by points: if/else 27, boolean chains 5, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/encryption/MongoEncryptionConverter.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a009b961867150e007fe6366c66c95548c78b3bea66a08e23bb65d44aaaa10"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoRepositoryContributor.contributeQueryMethod (cognitive 34): MongoRepositoryContributor.contributeQueryMethod has cognitive complexity 34 (threshold 15). Drivers by points: if/else 31, boolean chains 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/MongoRepositoryContributor.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed00358551f146a108e43c54253c524ed8276ac148fcf100bbe40a97902aa362"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonSchemaObject.of (cognitive 30): JsonSchemaObject.of has cognitive complexity 30 (threshold 15). Drivers by points: if/else 27, boolean chains 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/JsonSchemaObject.java"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"117b453f55c3dd62eab3f26da784ca6ad902c3ee515bedabbe09dc23e7b42ca0"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionOptions.collectPaths (cognitive 30): CollectionOptions.collectPaths has cognitive complexity 30 (threshold 15). Drivers by points: if/else 22, ternaries 4, boolean chains 2, loops 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CollectionOptions.java"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee184f87b3cd5bb9652a6f9d5546a5a30a35e83974261c441f73a111e8399c7"}},{"ruleId":"D2","level":"warning","message":{"text":"ParameterBindingJsonReader.visitExtendedJSON (cognitive 30): ParameterBindingJsonReader.visitExtendedJSON has cognitive complexity 30 (threshold 15). Drivers by points: if/else 27, boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bda1777b435c9760cd5fd6f0abbf13d0ebc5fd4cee214ee7d65e0df565a696c"}},{"ruleId":"D2","level":"warning","message":{"text":"ParameterBindingJsonReader.bindableValueFor (cognitive 29): ParameterBindingJsonReader.bindableValueFor has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, loops 6, boolean chains 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09aa1c296af4f91e2e562d032c24a07c88d3621d9910ddba861cf7afac171b7"}},{"ruleId":"D2","level":"warning","message":{"text":"LinkageDocument.updatePlaceholders (cognitive 28): LinkageDocument.updatePlaceholders has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22, ternaries 3, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/DocumentPointerFactory.java"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2760e6a7b5f7d4afcb40c6b25a627941857b289a483e57168297ed5a7e98be"}},{"ruleId":"D2","level":"warning","message":{"text":"ChangeStreamTask.initCursor (cognitive 28): ChangeStreamTask.initCursor has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21, ternaries 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/messaging/ChangeStreamTask.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc0728c49a54467191bf63c1d8ae1205186ce507c58d9bd66628422fc16d34c"}},{"ruleId":"D2","level":"warning","message":{"text":"Criteria.isEqual (cognitive 27): Criteria.isEqual has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16, boolean chains 7, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Criteria.java"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e691f2d55c4189664397e3d546621e0391c6f3cebe24760b44ef6300a78bc6"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexInfo.indexInfoOf (cognitive 26): IndexInfo.indexInfoOf has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19, loops 6, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/IndexInfo.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"32bf021264bd771e5ea3eeec7073142755ef798fd35b81fee30837cf72ce5224"}},{"ruleId":"D2","level":"warning","message":{"text":"MappingMongoJsonSchemaCreator.computeSchemaForProperty (cognitive 26): MappingMongoJsonSchemaCreator.computeSchemaForProperty has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14, boolean chains 5, loops 4, ternaries 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MappingMongoJsonSchemaCreator.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8094ed004b39b92d11345752d2f0d84bb306b9b04cdcfd44b69c7498720936"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryCodeBlockBuilder.build (cognitive 26): QueryCodeBlockBuilder.build has cognitive complexity 26 (threshold 15). Drivers by points: if/else 24, boolean chains 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/QueryBlocks.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c100837946a11868407e5bc2b5ba5c3af9dda49a3ad47af3b3de7afb608f71"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoTemplate.mapReduce (cognitive 25): MongoTemplate.mapReduce has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20, boolean chains 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":2022}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e7a78dd7a1dfb9ddbe228140470ce13a284fcd9425c1dab7300e6d00c60bdd"}},{"ruleId":"D2","level":"warning","message":{"text":"ReactiveMongoTemplate.doUpdate (cognitive 25): ReactiveMongoTemplate.doUpdate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, ternaries 5, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"94250a04fba80753dc6c5027a6687a26b6fb0fbe052366d7ffa85556432a7758"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoCredentialPropertyEditor.setAsText (cognitive 24): MongoCredentialPropertyEditor.setAsText has cognitive complexity 24 (threshold 15). Drivers by points: if/else 23, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/config/MongoCredentialPropertyEditor.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd48cdb9c529bc257f00994b334ef8e5bcae3c6ff342280dbe585924d02606dc"}},{"ruleId":"D2","level":"warning","message":{"text":"MappingMongoConverter.removeTypeInfo (cognitive 24): MappingMongoConverter.removeTypeInfo has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14, loops 10 (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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcaf8d8236b089ad307c8aaf836ccbd3f44a15e293be1ae7f611740e1437bb5"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoConverter.mapValueToTargetType (cognitive 24): MongoConverter.mapValueToTargetType has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16, boolean chains 4, ternaries 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MongoConverter.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"8274780221f5614dd5b2878a0719450b239f6625f462a56ced22fe0be02354f4"}},{"ruleId":"D2","level":"warning","message":{"text":"1.doWithPersistentProperty (cognitive 24): 1.doWithPersistentProperty has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9, error handling 6, ternaries 5, boolean chains 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/MongoPersistentEntityIndexResolver.java"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"367a428a3bd664ef8c2f9895caf79ae5e7ba716043c19c5c5ee2b5f0304f8ddc"}},{"ruleId":"D2","level":"warning","message":{"text":"PlaceholderParameterAccessor.getPlaceholder (cognitive 24): PlaceholderParameterAccessor.getPlaceholder has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20, ternaries 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/AotQueryCreator.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65928bb9a0990125ad614140727994dd8f75c8bd9858c84b4e0fec3daf07101"}},{"ruleId":"D2","level":"warning","message":{"text":"MappingMongoConverter.readAssociation (cognitive 23): MappingMongoConverter.readAssociation has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"d073536d6b3d56ea3088877585058ff7614f48cd2e1345468d7d9f467c863ec8"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryCursorPreparer.prepare (cognitive 23): QueryCursorPreparer.prepare has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, match/switch 3, loops 2, ternaries 2, boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":3578}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0917b4a82daaeba2379f697c1d56ac3d1b840828879d13b6078c2e37e3e36c"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonToken.getValue (cognitive 23): JsonToken.getValue has cognitive complexity 23 (threshold 15). Drivers by points: if/else 22, error handling 1 (nesting depth added 10). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/JsonToken.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b09aa1f90aea6dc43afe8f0c383b3da46adaaf9e3c736d5078df5910f18258a"}},{"ruleId":"D2","level":"warning","message":{"text":"MappingMongoConverter.convertToMongoType (cognitive 22): MappingMongoConverter.convertToMongoType has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, loops 6, boolean chains 1, ternaries 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"198e2d7e03bb54c0cda6e343fbaf933975b0c5ea287a4d248cf6f5307695f615"}},{"ruleId":"D2","level":"warning","message":{"text":"ReactiveMongoTemplate.mapReduce (cognitive 22): ReactiveMongoTemplate.mapReduce has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java"},"region":{"startLine":2215}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6c680240fb7a5b731f3547b62ee6ab78779a7dcf4dfc20f023130bcae7616a"}},{"ruleId":"D2","level":"warning","message":{"text":"ParameterBindingJsonReader.visitDateTimeExtendedJson (cognitive 22): ParameterBindingJsonReader.visitDateTimeExtendedJson has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, error handling 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71f4f46336d5c0d94ca54e15d940241ff416d4cc731d9e8743f627cfbce6136"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryMapper.getMappedObject (cognitive 21): QueryMapper.getMappedObject has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/QueryMapper.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a778e305fd5d05a8c5cb4d16fe2a80796a64d03eadab8adff216dc33458a96e9"}},{"ruleId":"D2","level":"warning","message":{"text":"Criteria.getSingleCriteriaObject (cognitive 21): Criteria.getSingleCriteriaObject has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Criteria.java"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d7b881e8f5c9480dd22f2b1486160b9177910844371d0d1c30c85b9ae89faf"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoExampleMapper.applyPropertySpecs (cognitive 20): MongoExampleMapper.applyPropertySpecs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, ternaries 3, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MongoExampleMapper.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"0102255cdbf20cbd3534795fda8a40f2de7dd0a0eeea799f804128f00ab86a20"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoEncryptionConverter.collectionLikeToBsonValue (cognitive 19): MongoEncryptionConverter.collectionLikeToBsonValue has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, ternaries 7, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/encryption/MongoEncryptionConverter.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"714ded56aa50580480ad1843ed3e4f6bf12d225c23f08e2ec066f3f4df164c76"}},{"ruleId":"D2","level":"warning","message":{"text":"MappingMongoConverter.writePropertyInternal (cognitive 19): MappingMongoConverter.writePropertyInternal has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, ternaries 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f50ea385a302905cbbbc738c855baccade22afc6243533e0e7928ba9b30320b"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultConversionContext.convert (cognitive 19): DefaultConversionContext.convert has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java"},"region":{"startLine":2396}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8ec0f24510ec7904f4c51e2d891f14a29eb5e0a222157edc672a061696cc6c"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractMongoEventListener.onApplicationEvent (cognitive 19): AbstractMongoEventListener.onApplicationEvent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/event/AbstractMongoEventListener.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"740b16c7dd45b039f3ce0dc545772a6b079ba4713cba377d530c79f9436c1e8d"}},{"ruleId":"D2","level":"warning","message":{"text":"VectorSearchDelegate.createVectorSearchPipeline (cognitive 19): VectorSearchDelegate.createVectorSearchPipeline has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/VectorSearchDelegate.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99437fb045aa549f4b88a79b72c397f304b1d22c844c9d0641327bb869c2d0d"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexEnsuringQueryCreationListener.onCreation (cognitive 19): IndexEnsuringQueryCreationListener.onCreation has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/IndexEnsuringQueryCreationListener.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a8c724e940aaab256e316338fa98b899412030b29107b88b72aac2f2f8ba93"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonScanner.scanBindString (cognitive 19): JsonScanner.scanBindString has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 4, loops 1 (nesting depth added 9). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/JsonScanner.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2bdf968fd85497d632931806e2e9ab261d94c61c65aa72b541a919a02cb4ac4"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexInfo.equals (cognitive 18): IndexInfo.equals has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/IndexInfo.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a6f544808dfbf82a749769237d987bdcdbbcebf3d6e91e0c6b3001f6be6292"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexConverters.getIndexDefinitionIndexOptionsConverter (cognitive 18): IndexConverters.getIndexDefinitionIndexOptionsConverter has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/IndexConverters.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa9af82f16595d024f0d1180250ee7f171b0877b8944c18c3f3f7a76a952ba5"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoTemplate.doUpdate (cognitive 18): MongoTemplate.doUpdate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, ternaries 7 (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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"8511fc41d72e3bd56356135183ad4e81d9ae295fdee14fc8f980f7174aa0a348"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryFindPublisherPreparer.prepare (cognitive 18): QueryFindPublisherPreparer.prepare has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, ternaries 2, boolean chains 1, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java"},"region":{"startLine":3435}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb423c2ad435aefc833482a2f51b98334b3be20dfaab04ae58de614b5b6539a3"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonScanner.scanString (cognitive 18): JsonScanner.scanString has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, match/switch 5, loops 1 (nesting depth added 11). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/JsonScanner.java"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f4323ae8385a854755ffaf3ecc453fc661ca408216b727aab73dbfbbbb3cc5"}},{"ruleId":"D2","level":"warning","message":{"text":"ParameterBindingDocumentCodec.decode (cognitive 18): ParameterBindingDocumentCodec.decode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, error handling 7, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingDocumentCodec.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7b2f5537d796e8705310b6e2be01d4e6cf2e175e73730de6a76198d68aa2d9"}},{"ruleId":"D2","level":"warning","message":{"text":"LazyLoadingInterceptor.intercept (cognitive 17): LazyLoadingInterceptor.intercept has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 2, ternaries 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/LazyLoadingProxyFactory.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4bd05746b1204c318f00019466556f391680bb2940778eeea983ed81617154d"}},{"ruleId":"D2","level":"warning","message":{"text":"MappingMongoConverter.readDocument (cognitive 17): MappingMongoConverter.readDocument has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, ternaries 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"249ee2254dfda324586bbcb20a9b831d006bd52c7ff01bed18f10f9b6c554ba0"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateMapper.getMappedObject (cognitive 17): UpdateMapper.getMappedObject has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 3, ternaries 2, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/UpdateMapper.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"14dced82f117e1709bd0d5dc25b80bc297ca67e2b5e3770411beb4e67218384c"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryCodeBlockBuilder.queryParametersCodeBlock (cognitive 17): QueryCodeBlockBuilder.queryParametersCodeBlock has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 3, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/QueryBlocks.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5362d3a7c5d034590c934cfd973cb8ec23a91f9c4ec69bd752fcec922b50b72c"}},{"ruleId":"D2","level":"warning","message":{"text":"SpringDataMongodbSerializer.convert (cognitive 17): SpringDataMongodbSerializer.convert has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SpringDataMongodbSerializer.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee06834a9d83e516ebd89be3c1cadc6f3ba9c478de21ff9ad5174bf393461bf"}},{"ruleId":"D2","level":"warning","message":{"text":"ParameterBindingDocumentCodec.readValue (cognitive 17): ParameterBindingDocumentCodec.readValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingDocumentCodec.java"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"7814ddf50310f16e597acf22506a7ed133d62250a35efd5377c543775d222fee"}},{"ruleId":"D2","level":"warning","message":{"text":"BsonUtils.simpleToBsonValue (cognitive 17): BsonUtils.simpleToBsonValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, ternaries 2, boolean chains 1, error handling 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/BsonUtils.java"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe863aa76472960ad5ae62f25a41546d7844fb9c9a5709cda5c2b7f8a7b34260"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractAggregationExpression.unpack (cognitive 16): AbstractAggregationExpression.unpack has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, loops 6, ternaries 3 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/AbstractAggregationExpression.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f05a22beeb627bb2c28b0d91c866daab85761a1d6b773bf1395c2ebb549aa7b"}},{"ruleId":"D2","level":"warning","message":{"text":"LazyLoadingInterceptor.resolve (cognitive 16): LazyLoadingInterceptor.resolve has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9, if/else 6, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/LazyLoadingProxyFactory.java"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"1281941c4a00aae1cafb11f589f0083cf628a0d61e31022f0859106ba73b3619"}},{"ruleId":"D2","level":"warning","message":{"text":"MappingMongoConverter.writeMapInternal (cognitive 16): MappingMongoConverter.writeMapInternal has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 5, boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java"},"region":{"startLine":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76b6fa08b0a6325de8ba2c886e963d5819f2dfe1f3089d78a7c48288e6438e8"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryMapper.convertSimpleOrDocument (cognitive 16): QueryMapper.convertSimpleOrDocument has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 2, ternaries 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/QueryMapper.java"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff011f0d3472763a05513833be7ca855beb6799d3ab039bb917cd1e8406c7c26"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryMapper.getMappedKeyword (cognitive 16): QueryMapper.getMappedKeyword has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9, if/else 3, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/QueryMapper.java"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36cc696f94d69a4c22b07b2b508cf67f3ff35e2535a60f528df08f8afb580c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ReferenceLookupDelegate.computeFilter (cognitive 16): ReferenceLookupDelegate.computeFilter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, loops 4, boolean chains 3, ternaries 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/ReferenceLookupDelegate.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6e7841f5a1fcf7bc241cfed224f51d7c16050008cd637e15d72cb47317bcd6"}},{"ruleId":"D2","level":"warning","message":{"text":"EncryptionKeyResolver.annotated (cognitive 16): EncryptionKeyResolver.annotated has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, ternaries 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/encryption/EncryptionKeyResolver.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"076df09cd6567c31a19508139ca2456ce8ddb8215418ed69b5b63e87f7a4f972"}},{"ruleId":"D2","level":"warning","message":{"text":"TypeUnifyingMergeFunction.merge (cognitive 16): TypeUnifyingMergeFunction.merge has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/TypeUnifyingMergeFunction.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad8bc5e26b23b76672b6ee7923b1c38ffd5163041e4314e5fb72dacc62ea954"}},{"ruleId":"D2","level":"warning","message":{"text":"TypedEntityOperations.getCollectionOptions (cognitive 16): TypedEntityOperations.getCollectionOptions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/EntityOperations.java"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"19cd592181aa819eeba57a47ce3e5d43718f5aec1d9d97b9034e4b1ceeb65aa1"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoTemplate.doAggregate (cognitive 16): MongoTemplate.doAggregate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":2300}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ed797aa3bcdf1a7b8d31c3113ab95145636a4a25dfc547769918dad6e71acd"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractMongoQuery.getExecution (cognitive 16): AbstractMongoQuery.getExecution has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/AbstractMongoQuery.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87374790362e585aac962368e35ec8b5e22f6337dc93f6154be93921e4002a8"}},{"ruleId":"D2","level":"warning","message":{"text":"MongoQueryMethod.verify (cognitive 16): MongoQueryMethod.verify 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/MongoQueryMethod.java"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa6b5bb900f7d2bbad4a23f74143f7fc2ffa3f9d471abe7a4502443d780359a"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonScanner.scanRegularExpression (cognitive 16): JsonScanner.scanRegularExpression has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 10, if/else 5, loops 1 (nesting depth added 9). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/JsonScanner.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9062aab66731c6148b857fe5767cc0253702e25dc517659edd89ff1c5ce3cb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MongoTemplate: TooManyMethods \u2014 213 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"5769e314a9540f7e1551e23cb14f4989447b6adb9e86531f2909563d9268ea28"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ReactiveMongoTemplate: TooManyMethods \u2014 211 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e96c76339153d448b7ea7d42d365a16b4fcbe1a2a9eb83f239230b9f018e07"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/MongoTemplate.java: FileTooLong \u2014 2073 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74ee07ae105c5d798f0f854cbe0e6247687b5e74c320c27ab3fadcbed58d6f2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/ReactiveMongoTemplate.java: FileTooLong \u2014 1907 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: ReactiveMongoTemplate (199-3639). 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc592ac2a93eceedc57390cb429f6545ab647cb24d559bec5dfea47714a35336"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ParameterBindingJsonReader: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"181a57b650548c7e2f4091ec8609f78f6d3fc801274dbb0d86e57edd7dac1147"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ArithmeticOperatorFactory: TooManyMethods \u2014 83 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ArithmeticOperators.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b64613a422f90461326345ec5065ee3c18f3d520bb8766143cbe694f588f04"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProjectionOperationBuilder: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ProjectionOperation.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"619757e365f7833531dbea2973930c423328eab70625665592ee537ad96a8a04"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MappingMongoConverter: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e7f782267ed11b4f8f750dbf4e952dac23235e19916f4cc87390f2a8941292"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: convert/MappingMongoConverter.java: FileTooLong \u2014 1258 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: MappingMongoConverter (128-2569). 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0836a2036e5911ebb86bccc8a8398b844c3f90f48eaff1311308e261d9fbcac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: json/ParameterBindingJsonReader.java: FileTooLong \u2014 1228 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: ParameterBindingJsonReader (67-1750). 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d13bea70a6419c32b43c3c5360703ae5888cd78582b3eb415ded3cda35e8a22"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Criteria: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Criteria.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"00094086d748009a2c9f32303a446566bbd6de9fd8b72dbfeb8a69accd8b6f8e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StringOperatorFactory: TooManyMethods \u2014 66 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/StringOperators.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b8a6fd996e87f55572f9a30455e8becf174404d4a4b54a60ef2c35f7db62cc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Aggregation: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/Aggregation.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2787646f1040100ed21c812fadb148127e2e44218403648e073d637f13da28a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UnwrappedMongoPersistentProperty: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/UnwrappedMongoPersistentProperty.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4023df252b3599f471cf6643b366b53e067f89786fb6c34ce2fd63ca7b3fa7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: aggregation/DateOperators.java: FileTooLong \u2014 921 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: DateOperators (42-3482). 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/DateOperators.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"038ecf0ae72bfe8d8dcf8af012d72b560dd2986105dee2ce58c7f4b309188dbd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Query: TooManyMethods \u2014 55 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Query.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7648bd9cd0632bb04114ec232a9f1481b97b6c3bfe385e879b2cff1efaf07eb7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UnwrappedMongoPersistentEntity: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/UnwrappedMongoPersistentEntity.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c653ec7eead7fba13a13c13d2fa506aa5ebe942ba1829a42569ebf0863860dc4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Update: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Update.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b25e32be373e3349131605ff27d696278cfaedf1f595639a159f73bdec5524"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SpringJsonWriter: TooManyMethods \u2014 52 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/SpringJsonWriter.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"68495c6a7e18d588596c999d503861da0e95631e40a8d7badcc579263a704047"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: aggregation/ArithmeticOperators.java: FileTooLong \u2014 860 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: ArithmeticOperators (50-3270). 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ArithmeticOperators.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb65931a49dc5403dc8b318385be04e15e2e0604d94615d0c3b5648a419f2cf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DateOperatorFactory: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/DateOperators.java"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"062ae6d0e5a08814b5c96f6c131a425308cb656f500b29d0afacb49bee26b499"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: convert/QueryMapper.java: FileTooLong \u2014 729 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: QueryMapper (97-1672). 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/QueryMapper.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a40dd42d9bbce822df476810366b00a1b29afd49118ac7634cda56eec4596a8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MongoQueryMethod: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/MongoQueryMethod.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3e3f38d9d7ca95b75bc7e99d9343572c2e293af8897921c327c4db7acd0611"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SimpleReactiveMongoRepository: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SimpleReactiveMongoRepository.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafa185d817f97533c1b5c63b0c60c4afa599fbc0544ae52720436bc5be5258d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: schema/TypedJsonSchemaObject.java: FileTooLong \u2014 684 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: TypedJsonSchemaObject (47-1459). 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/TypedJsonSchemaObject.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf42ae0417c8c781f4aa647e135c5b66bd4f81c70424638d430234c474c28a5c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: aggregation/StringOperators.java: FileTooLong \u2014 674 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: StringOperators (38-2505). 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/StringOperators.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa23a680609d3fde3aa886ac626dc6ab47cf6b0e17c27e6fac948015c3cec8d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: aggregation/ArrayOperators.java: FileTooLong \u2014 660 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ArrayOperators (44-2149). 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ArrayOperators.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c8d36a790229e6abed3d77c2ca57d90c1b93536feddd7dd9679b8951e8c845"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CollectionOptions: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CollectionOptions.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e341028c558aee4d7262042a71e3243b2947deadf59443746a6cf7a3733d9a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QueryMapper: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/QueryMapper.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"273a5236415c239806866884956f36bd3aaf67b5019bfec39e0bc3dcda830c0b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BsonUtils: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/BsonUtils.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e61a3ba545a37c4b31bae041ec15f0abc04e4c9b76fd61e7bb49b1e6ee81f80"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MongoClientSettingsFactoryBean: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoClientSettingsFactoryBean.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca21dcd1ac15eca233dca0f001712f7c941a3c5e9104442194fa119855ade75"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NearQuery: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/NearQuery.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ed1a30b54cddf151caa5733ade09599f405e72d21dda5cae47aabf74e19700"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GroupOperation: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/GroupOperation.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dec5441ad3fef78665d34d7236b87e76edbeb853138d052404a48e736fbd635"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/EntityOperations.java: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: EntityOperations (95-1210). 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/EntityOperations.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"893ec622882106955505d7607deebe96d0b5e481673b223395ab92b31188f7d1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Collation: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Collation.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"186bd661b45adc7b6fe50002fa0496cb1d187356f44ec0e43511390ecb4f8ed6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: aggregation/ProjectionOperation.java: FileTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: ProjectionOperation (55-1872). 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ProjectionOperation.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77008d26a9388b41d320eaad09424407fba7107d82987164d72ff1a5b03500fa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MongoPersistentEntityIndexResolver: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/MongoPersistentEntityIndexResolver.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70d8fef4523a4d14de1bb56c6d4bab466a44a8263102fac7f9d25724cbc790e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AggregationOptions: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/AggregationOptions.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"3330360233bc2c80dd39155d13b5756ed17ed4ce0451346b1957bc55f34de134"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ComparisonOperatorFactory: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ComparisonOperators.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c51d90eb173ff80c90b0510de562ec0413b93188411d3645e351ee73e52985d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SimpleMongoRepository: 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SimpleMongoRepository.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"880f258aa81aaf84a92b5ed12995601a5a60c8f1efc18054624b9650159d214f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: index/MongoPersistentEntityIndexResolver.java: FileTooLong \u2014 515 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/MongoPersistentEntityIndexResolver.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5740d3858e45d22bed2e3ed8568c6339687a20db9641e447e80c200fc0353b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: query/Criteria.java: FileTooLong \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: Criteria (73-1508). 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Criteria.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0290b7e1dbd5ebbac980d2acb39cbfe4c87ccece98cf7d0f52430a7b164ffd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/bulk/BulkWriteResult.java:38-55 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/bulk/BulkWriteResult.java:78-95 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/bulk/BulkWriteResult.java:38\u0060 it does not close everything it opens, so those exact lines 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/bulk/BulkWriteResult.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbc5f81bef12d2b8bae903594f0b382c87c7b14fa9b585a49aa055f1a27f08f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/JsonScanner.java:361-377 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/JsonScanner.java:388-404 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/JsonScanner.java:361\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/JsonScanner.java"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04f72e0ec14fb63075298ccc4053d124b327712cf7ea452f720a781ad5540e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/VariableOperators.java:111-125 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/VariableOperators.java:143-157 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/VariableOperators.java:111\u0060 it does not close everything it opens, so those exact lines 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/VariableOperators.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"22cff92d86fb36060f0f02c29756008773022f3373170d9d07d21454c94304e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/ReactiveSpringDataMongodbQuery.java:189-201 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SpringDataMongodbQuery.java:255-267 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/ReactiveSpringDataMongodbQuery.java:189\u0060 it begins part-way through the construct above it, so those exact lines 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/ReactiveSpringDataMongodbQuery.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4b8e63683e3263a201d58751f03dc7dbc740443d793aad5b2d3f21d725250c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:3590-3601 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:3446-3460 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:3590\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":3590}}}],"partialFingerprints":{"codehealthFindingId/v1":"53866ac27d6a60f7016f137e2e7f02b1da7f51d0b2eb14ef19d83768d7ae256a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/MongoQueryExecution.java:197-208 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/ReactiveMongoQueryExecution.java:96-107 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/MongoQueryExecution.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cee36f59da878e70c775ef41696a1673c1c5b3294d730614c29252a3d58e4cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/BucketOperationSupport.java:558-568 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ProjectionOperation.java:1464-1474 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/BucketOperationSupport.java:558\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/BucketOperationSupport.java"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d472638c1b8c5aaecfc58e9c02d22df86a1bf091e0dd61436a52b1dfc18d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java:256-266 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java:316-326 \u2014 both copies are in the same file, so extract the block 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7e9c77523c9d4b34b008f5fd0ba617b7074eeba19808ccf0ae1d746dfbdf3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/BasicMongoPersistentEntity.java:372-383 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/BasicMongoPersistentProperty.java:261-271 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/BasicMongoPersistentEntity.java:372\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/BasicMongoPersistentEntity.java"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1763f278f864d25e3b8b730bac88a97525a712f7936b460d110a832bc4c1fad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:2062-2072 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:2270-2280 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:2062\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":2062}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fa72300dab403a13f3894f752132ec4b47d0c2b54cbf5d029e394e8bb1fc73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:3609-3619 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:3469-3479 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:3609\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":3609}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cf8013791e27bfbf3f66398472e17edb86e026f79ddcf5c0d89edf79bf6c95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/GridFsOperations.java:140-150 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/ReactiveGridFsOperations.java:148-158 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/GridFsOperations.java"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"a652a2b301dca92a63724fccf95451c674eb912bd2da98e65262c073eeec82c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/PartTreeMongoQuery.java:111-122 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/ReactivePartTreeMongoQuery.java:119-129 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/PartTreeMongoQuery.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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/PartTreeMongoQuery.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b603cd72a70133981ab9fabc8c933a1c1e0acf5741fbbe8a72395958b2f3219"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/ReactiveStringBasedMongoQuery.java:101-111 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/StringBasedMongoQuery.java:91-101 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/ReactiveStringBasedMongoQuery.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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/ReactiveStringBasedMongoQuery.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebda52f0c9a50674862ae64aa35c0d5ad47e739f1f41171b070713a96be2a5c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/BulkWriter.java:89-98 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/BulkWriter.java:117-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/BulkWriter.java:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/BulkWriter.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"7952fe4c381eaa20f4e7e9e339492e2ae232fe2e4cefd9bf275208a4afcadf0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ExecutableUpdateOperationSupport.java:78-87 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveUpdateOperationSupport.java:72-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. 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ExecutableUpdateOperationSupport.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07825748618ad88096b03b4be71c0ed97195619cc66f09b108a2a969bf85110"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1085-1094 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:1170-1179 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1085\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"00cf48dc00a177b148bc70d057e4d659930fc0fb0294fa4557832bc0fccf50a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1188-1197 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:1250-1259 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1188\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6de3b51118666252152ee1d69397867b360cb572f1fa7707a7a51a159ab0ad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1821-1830 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1839-1848 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1821\u0060 it does not close everything it opens, so those exact lines 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"670467a1130fdf43b4ac2beb616ddaf3bc2831a39ad405d4990d02844dcd4650"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/MongoAotRepositoryFragmentSupport.java:315-324 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/AggregationUtils.java:312-321 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/MongoAotRepositoryFragmentSupport.java"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aaf0dacb1fbd2ee3573ecd0c790aa770f233c75471e6ab2a618295cb4954937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/QuerydslMongoPredicateExecutor.java:308-317 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/ReactiveQuerydslMongoPredicateExecutor.java:273-282 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/QuerydslMongoPredicateExecutor.java:308\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/QuerydslMongoPredicateExecutor.java"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"67055a3833f9f33fbcda280174732d099139434143dc6d530754b942c8888bd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SimpleMongoRepository.java:490-499 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SimpleReactiveMongoRepository.java:620-629 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SimpleMongoRepository.java:490\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SimpleMongoRepository.java"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3db8b386c087df9b7b481716f582115dab0ace90cda22a4742d7c4cebae0af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/MongoTransactionManager.java:361-370 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/ReactiveMongoTransactionManager.java:373-382 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/MongoTransactionManager.java:361\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/MongoTransactionManager.java"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c258992ae53dde8ebc60cf0a825e1f614411532b076d50ecd5acdecfc2080b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/MongoTransactionManager.java:380-389 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/ReactiveMongoTransactionManager.java:392-401 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/MongoTransactionManager.java:380\u0060 it begins part-way through the construct above it, so those exact lines 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/MongoTransactionManager.java"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"45174de58ac205c3f8f300bbcf9849ebc001d57cbafea306dd778a124c431a5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:2351-2359 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:2424-2432 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:1121-1129 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":2351}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c99bbb1326d1e898380ebd1ef5be60af4b99b7f681effce87ac0d5c910ff203"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java:626-634 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java:651-659 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java:626\u0060 it begins part-way through the construct above it, so those exact lines 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"4091c30f24bb277e6701590b9f48e612564e77fa73bda5518a8b880260e77ad9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/DefaultBulkOperations.java:98-106 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/DefaultReactiveBulkOperations.java:89-98 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/DefaultBulkOperations.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"780819706ec348fa2c7a8f55fad823b2670b4e4affdc766e74cad66e43550806"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/DefaultBulkOperations.java:239-247 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/DefaultReactiveBulkOperations.java:196-204 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/DefaultBulkOperations.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"41601d556e6b1478f129886d2a201c2e0b7ec96aba118c75d89237fef97b5e6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:2703-2711 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:2474-2482 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":2703}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c107e6d995cd3ebcb39ef882c2c087fb7c9091355614ec9f132475324511405"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:2759-2767 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:2790-2798 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:2759\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":2759}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a9d28fd39ade68766da97256a8947922b975e140b818d6bf5399f06afa9ee6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:2881-2889 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:2607-2615 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:2881\u0060 it does not close everything it opens, so those exact lines 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":2881}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22576adb6d77294b77e95b72dce8d4919638547cc1c8e374a487deb9a4c1fc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/MongoAotRepositoryFragmentSupport.java:199-207 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/VectorSearchDelegate.java:274-282 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/MongoAotRepositoryFragmentSupport.java:199\u0060 it begins part-way through the construct above it, so those exact lines 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/MongoAotRepositoryFragmentSupport.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b3f75252efc7f4d85d18ffa17f782f11b321da4837d1a65f57e879ee855f72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java:384-392 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java:433-441 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java:384\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"6873d4d223583d47d61f878a90708b5e890ac7eb3fa7787a977ea3c38f8c4b93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java:544-551 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java:675-682 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java:707-714 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java:544\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe2d6e71de59a51f4082a3b751c383d3198e85fcfc9696505eb6c3e9a6d4736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java:594-601 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java:625-632 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java:650-657 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/GeoConverters.java"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"45709cfe74b5b72244ad6e1bd52a8522623a61dea1791aa92ff40d7b8494678a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/DocumentEnhancingOperation.java:123-131 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ReplaceWithOperation.java:77-84 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/DocumentEnhancingOperation.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be6ac29fb15524f9e39cab5eddaf421f57144a37276039d3e16103c6e273ccb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/SerializationUtils.java:123-130 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/BsonUtils.java:769-776 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/SerializationUtils.java:123\u0060 it begins part-way through the construct above it, so those exact lines 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/SerializationUtils.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8de3867907e7e2f70aeed0455d1a94d3c99e98a2bf9b394f1f0f6ea8c3a8af55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/BulkWriter.java:145-152 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveBulkWriter.java:146-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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/BulkWriter.java:145\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/BulkWriter.java"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a788263f594d5f7e04e8189d3c15842b1aeff94d0a4838132a16476d61ad3217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1215-1222 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:1286-1293 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2198aa5eca5f185ba7b93d91902283df6a46df256b23faa5b41803c17247a18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1709-1717 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:1776-1783 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b0d13e3c5b8ea34f12a5551e6b75a032f129ff4ae38baf479b0878675d3860"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:3487-3494 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:3304-3312 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":3487}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6881a35a2e7bd63f57a63bf6dcca4f0e058e2215220f53d86d2263003bbc0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:1796-1804 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:1920-1927 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:1796\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b669cdfcccb0116a015c579aeb68add9d5a2e10e56723698689b91206b6328"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/ReactiveVectorSearchAggregation.java:62-69 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/VectorSearchAggregation.java:55-62 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/ReactiveVectorSearchAggregation.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b00394d83d7b696fcff23a5c568649a5d1815ca5ac6c9b2937cb97c51bdb600"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SimpleMongoRepository.java:293-300 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SimpleReactiveMongoRepository.java:389-396 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SimpleMongoRepository.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca3a633c527c7130620fdfcbf7f1941380100c38891856a872aef6f1afd0309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java:260-267 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java:841-849 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java:260\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5983857544502eb5f275dd4ae48e6759146d5e0a71ad534031cdadd069f2379"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/BulkWriteSupport.java:93-99 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/BulkWriteSupport.java:114-120 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/BulkWriteSupport.java:93\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/BulkWriteSupport.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3b0a1ac69f671df2e9f543f5fda59dc73615bee69c17376ca3be672cfdafe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CollectionOptions.java:823-829 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CollectionOptions.java:831-837 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CollectionOptions.java:823\u0060 it begins part-way through the construct above it, so those exact 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CollectionOptions.java"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"09aadd772f25a9e69ffced16b4a262f2c8d740d9cbcbd40da0d8746957a5da34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ExecutableUpdateOperationSupport.java:215-221 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveUpdateOperationSupport.java:205-211 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ExecutableUpdateOperationSupport.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde6d99215b0b23d49d12f4e2b2788875e00f40bd833a95638bd10c67169db1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoDatabaseFactorySupport.java:224-230 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/SimpleReactiveMongoDatabaseFactory.java:241-247 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoDatabaseFactorySupport.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. 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoDatabaseFactorySupport.java"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14d0ddc976b09307445ffe51c2f05e1cfcbbcdf2aa54c267f72683a3f7d7470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:965-971 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:959-965 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c0bbce4fb786eb4390489466b6ce3935ae3558ffaadaaa7b3da87e8ee1d2453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1432-1438 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:2837-2843 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1432\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"805e203c5b7f21f00d70b1b4b8db48e4b172218225d2fa36ccaa8cbb6eddbcf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1729-1735 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1854-1860 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1729\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":1729}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e89565e48bd3aab6c50efebb32ed3e2edab729af407851591e4f0c74078ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1807-1813 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:1871-1877 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"f271d28c168e03c28b8c231a0e18cc67a0e52ca5d18de047578c171ad98e6c24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:2786-2792 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:2567-2573 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:2786\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":2786}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5b0a32c0b448f97e18150c3f862e045aa8fb06aa0f6d993846eaad41af1180"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:3148-3154 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:3208-3214 \u2014 both copies are in the same file, so extract the block 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java"},"region":{"startLine":3148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e9897631c760f81dfccefaa07f4f4aca4ecc3122c30dcb31f43ba293be2245"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/GridFsUpload.java:216-222 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/ReactiveGridFsUpload.java:196-202 \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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/GridFsUpload.java:216\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/GridFsUpload.java"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"be69635e613073aca39716b46e1bb85b92d4a2a84e5cceac9cd2524dfc7a2c20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/VectorSearchBlocks.java:195-201 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/VectorSearchBlocks.java:235-242 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/VectorSearchBlocks.java:195\u0060 it does not close everything it opens, so those exact lines 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/VectorSearchBlocks.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fc4aa5cd9a78b779847402f309c5da8524cac71e4296119757dd8806ab0e381"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SimpleMongoRepository.java:322-328 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SimpleReactiveMongoRepository.java:402-408 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SimpleMongoRepository.java"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f10554397f5db87f22799d0258ac7076b8585af0402ca51c36db7bc8c5c21f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SimpleMongoRepository.java:334-340 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SimpleReactiveMongoRepository.java:414-420 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SimpleMongoRepository.java"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"09532bbefc0218d061cf8784f0b147b90cbbd7e842537e313fa40f98adcdca93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java:333-339 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java:617-623 \u2014 both copies are in the same file, so extract the block 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/ParameterBindingJsonReader.java"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bba6edb017b735ecd782cb0c320c8fae19e47a72b7cfeda905a310755454a26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1442-1447 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:1527-1532 \u2014 both copies are in the same file, so extract the block 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":1442}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24fe1cabe4896187420e958f5a85f9fd93489898aaaadbf7617e301e4929c47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/GeoBlocks.java:66-71 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/GeoBlocks.java:73-78 \u2014 both copies are in the same file, so extract the block 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/GeoBlocks.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf8fe481699cc272f88634b919a4942cf5d49769bad7801a0886ba3dec235fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/PartTreeMongoQuery.java:63-68 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/ReactivePartTreeMongoQuery.java:63-68 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/PartTreeMongoQuery.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc78f99bbf56d1c36ef24b2602412379289a96f23e08a732997d69b7a516da4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/EntityOperations.java:675-679 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/EntityOperations.java:854-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 \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/EntityOperations.java:675\u0060 it does not close everything it opens, so those exact 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/EntityOperations.java"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d634ab2a63d3d56ea5ea568297b9f41dbe9cd30dec9fddd1427ff60538d3f54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:263-267 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:290-294 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"41007fb8da01ab82d533c920ed5869d146a74c8d4f3ef9c271d39b9368604808"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java:2255-2259 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoTemplate.java:2398-2402 \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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoTemplate.java"},"region":{"startLine":2255}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07c251d4b220ad89d7f3bca10787a7c80c786303a29b61c7eb5821693b19e6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveBulkWriter.java:89-94 | spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveBulkWriter.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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveBulkWriter.java:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveBulkWriter.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9017a4b4e21aaea112b3b5fd47175cb40c879d57fc736ae391381684892d29d"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 6 significant file(s) lose their only recent owner: spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/query/Collation.java, spring-data-mongodb/src/main/java/org/springframework/data/mongodb/util/json/JsonScanner.java, spring-data-mongodb/src/main/java/org/springframework/data/mongodb/ReactiveMongoDatabaseUtils.java, spring-data-mongodb/src/main/java/org/springframework/data/mongodb/SessionAwareMethodInterceptor.java, spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/Index.java, spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/index/GeospatialIndex.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2bccbae5438e9dd9e9abd5e4b85a6d641f393fc0bc2a3f9ffe82a50c4c2d34cd"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (14 single-owned of 445 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 #2 (3 file(s)), anonymized user #3 (3 file(s)), anonymized user #4 (2 file(s)) \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":"c8012c42d297dc9578a0981eaaa3ed7c6e73ed5aa3dc41882e27c10ca099fea5"},"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":"464094caaa2ae2bbbb51d7e323976813586959824e1e7f80a1a24d4889653a5f"},"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":"0786d83b4b1b75ab3129b0e4f3d866d3e8d212a52ee18987c240aa43f0f0569d"},"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":"79e98e61b8a14b754f4bb461758fa1ff2524e949b2cd3f370026c6ea576f33e9"},"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":"cc7c4de14d25b7886667fcd6424e622b0c8b47fd2f9a106de780f27241e286d8"},"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":"ac516d91ca632bcc29bf763391c1c86d6af93b89b1dc98c592c703e074982fcd"},"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":"98fec5503ebd625b94a4b918ef2ee80d5050a239cf002dd92cf5836053e33fbb"},"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":"1c79afdb57944220757997b2e55b01e3128730bd64fb98b624ea4a33d9bf9130"},"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":"869bc08adc9a18ad52246bb034eaee122a55d50a1c26655d45f60ba889ba4cb7"},"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":"560f3dd9f322dd77ab3dfd353c6da6fce1378fb75ea2cb5cd1ac4fa0c2bba617"},"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":"72542e0ad6cea2707da191bd794f181b34421ead507f66ab246812d8aa1339dd"},"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":"d2876df8537c41b108699a7ffac182fc1245a98e85af460edb9133b3b0bbecc9"},"taxa":[{"id":"CWE-94","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":"111fa10380f96d902e02da405b979cf907df36445db2af03d177d4a80471d9db"},"taxa":[{"id":"CWE-94","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":"8b6de6ebabccab9dd0813e43697b1ca15670ebc70e71d2e21b43eb402a670324"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 22 of 445 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 largest first: spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/SpelExpressionTransformer.java, spring-data-mongodb/src/main/java/org/springframework/data/mongodb/config/MappingMongoConverterParser.java, spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/GroupOperation.java (and 19 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AggregationBlocks.java \u2194 QueryBlocks.java: \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/AggregationBlocks.java\u0060 and \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/QueryBlocks.java\u0060 change together 73% of the time (8 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/AggregationBlocks.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e40175d687133b01f03bbc3bbed72e1d45c864363e862685008df250bcfbc66"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MongoAotRepositoryFragmentSupport.java \u2194 MongoCodeBlocks.java: \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/MongoAotRepositoryFragmentSupport.java\u0060 and \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/MongoCodeBlocks.java\u0060 change together 67% of the time (8 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/MongoAotRepositoryFragmentSupport.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2331ea1f9b4783b86dce60708975f13f6afaf2d9537f90fcf2b664ba97edbf7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AggregationBlocks.java \u2194 MongoRepositoryContributor.java: \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/AggregationBlocks.java\u0060 and \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/MongoRepositoryContributor.java\u0060 change together 55% of the time (6 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/aot/AggregationBlocks.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ee74ccb30897642f865c4ee20a433aaa9e842970947d3b5b690ad40e2caa5b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ContextProviderFactory.java \u2194 MongoObservationCommandListener.java: \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/observability/ContextProviderFactory.java\u0060 and \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/observability/MongoObservationCommandListener.java\u0060 change together 54% of the time (7 of the 13 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/observability/ContextProviderFactory.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee755626ac93a081a590ff412fb033cf70abad379927fafe64da97f81f7b4325"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ReactiveStringBasedAggregation.java \u2194 StringBasedAggregation.java: \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/ReactiveStringBasedAggregation.java\u0060 and \u0060spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/StringBasedAggregation.java\u0060 change together 52% of the time (13 of the 25 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":"spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/query/ReactiveStringBasedAggregation.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c181e2a809e04decee996082e50fa3f88e8334e3493135189ea0db051e09ae1"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":14,"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."]}]}