{"$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":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"BoundedLocalCache.remap (cyclomatic 41): BoundedLocalCache.remap has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":3031}}}],"partialFingerprints":{"codehealthFindingId/v1":"d323de894f3f9d0138ea0b2325ae0ee591fe16e1abc68dc44aa720371fe9fed2"}},{"ruleId":"D1","level":"warning","message":{"text":"BoundedLocalCache.put (cyclomatic 36): BoundedLocalCache.put has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":2451}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cbffcdcfb877e5164fd9383d17bbe447b682467d85158be1a25c504e69fd4c"}},{"ruleId":"D1","level":"warning","message":{"text":"BoundedLocalCache.refreshIfNeeded (cyclomatic 29): BoundedLocalCache.refreshIfNeeded has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4057dbbef3cf29ade6e0d3c68da79e4573acf94e0eff056917ac4bba71398de"}},{"ruleId":"D1","level":"warning","message":{"text":"StripedBuffer.expandOrRetry (cyclomatic 22): StripedBuffer.expandOrRetry has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/StripedBuffer.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78d4ba497930fb3e87496c5518297cca494eeca3d3b189e00d58fbc532b6e98"}},{"ruleId":"D1","level":"warning","message":{"text":"BoundedLocalCache.evictFromMain (cyclomatic 21): BoundedLocalCache.evictFromMain 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"1375032ce11cd7f4010dd22c3216b35ff899b5aaf60bab9e50b1f175f807351c"}},{"ruleId":"D1","level":"warning","message":{"text":"BoundedLocalCache.doComputeIfAbsent (cyclomatic 18): BoundedLocalCache.doComputeIfAbsent 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":2853}}}],"partialFingerprints":{"codehealthFindingId/v1":"58901429004f40b9f32e0558ccfc79312ee7d9cfa4d76aca4eed33a1d5fe7918"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalLoadingCache.refresh (cyclomatic 18): LocalLoadingCache.refresh 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalLoadingCache.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"6140d88178230fdbbf966e029a3a7767780e9c1a1edcf935ea0269fc28bced97"}},{"ruleId":"D1","level":"warning","message":{"text":"LoadingCacheView.tryComputeRefresh (cyclomatic 16): LoadingCacheView.tryComputeRefresh has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncLoadingCache.java"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"b333a6e294fefce19e2db6b7b9e60c6574cb55fdc30813c59a30332e9f1c0cb6"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundedLocalCache.put (cognitive 77): BoundedLocalCache.put has cognitive complexity 77 (threshold 15). Drivers by points: if/else 61, ternaries 9, boolean chains 6, loops 1 (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":2451}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d53f1340943bcf57560594af2d6d24534b3d4937312686c5c9d819ad030ae18"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundedLocalCache.remap (cognitive 66): BoundedLocalCache.remap has cognitive complexity 66 (threshold 15). Drivers by points: if/else 54, boolean chains 10, error handling 1, ternaries 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":3031}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da9378358e9af58c3c6443cc1d112480550e2449e312fa6a80624bf109add6e"}},{"ruleId":"D2","level":"warning","message":{"text":"StripedBuffer.expandOrRetry (cognitive 49): StripedBuffer.expandOrRetry has cognitive complexity 49 (threshold 15). Drivers by points: if/else 42, boolean chains 6, loops 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/StripedBuffer.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b2eefc7b42a6055ded783d5b50a7062dd55101095d14fbedcc74744937ab4a"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundedLocalCache.refreshIfNeeded (cognitive 35): BoundedLocalCache.refreshIfNeeded has cognitive complexity 35 (threshold 15). Drivers by points: if/else 22, boolean chains 9, error handling 3, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"2028073cabae0323c5a32c0c95771269f175900e3947aa8433d9fe2bee74cadb"}},{"ruleId":"D2","level":"warning","message":{"text":"FeedbackWindowTinyLfuPolicy.adapt (cognitive 34): FeedbackWindowTinyLfuPolicy.adapt has cognitive complexity 34 (threshold 15). Drivers by points: if/else 27, loops 6, boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/feedback/FeedbackWindowTinyLfuPolicy.java"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"852c69130e317424b7b76e74965ce9ae15e02758de957ab225a0bc07b819fc80"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundedLocalCache.evictFromMain (cognitive 32): BoundedLocalCache.evictFromMain has cognitive complexity 32 (threshold 15). Drivers by points: if/else 27, boolean chains 4, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ead174294dc026b5a913bb652c085ab6f7096f72cd502d5f3f853d2f90ff3b"}},{"ruleId":"D2","level":"warning","message":{"text":"AddTask.run (cognitive 28): AddTask.run has cognitive complexity 28 (threshold 15). Drivers by points: if/else 23, ternaries 4, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3b30064f3b07177b6706fa45fe16fa3ec79b824aaa0f8c245eefc5c99a0be0"}},{"ruleId":"D2","level":"warning","message":{"text":"CacheusPolicy.updateLearningRate (cognitive 25): CacheusPolicy.updateLearningRate has cognitive complexity 25 (threshold 15). Drivers by points: if/else 24, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/adaptive/CacheusPolicy.java"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4cc3639fe4536de59804b4d6c9b0242b082e3762ce5a60bba6e9831f3948a0"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateTask.run (cognitive 25): UpdateTask.run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 25 (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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":2127}}}],"partialFingerprints":{"codehealthFindingId/v1":"7542caca0f7a76b3f07fe68b47986fd8cb73d4c9ff732d9ac2686e73738aa8d2"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundedLocalCache.doComputeIfAbsent (cognitive 24): BoundedLocalCache.doComputeIfAbsent has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, boolean chains 3, ternaries 2, 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":2853}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d4c0f3bb652d571bd5360fa734d502a07ba669b0bef5439f427277ab68d0d4"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundedLocalCache.evictEntry (cognitive 24): BoundedLocalCache.evictEntry has cognitive complexity 24 (threshold 15). Drivers by points: if/else 23, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f43c3e114e4ac7cf9269d8ac9e3c5c6a4d2b16a940cf88f1a1564158a26f1c"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeFactory.getClassName (cognitive 24): NodeFactory.getClassName has cognitive complexity 24 (threshold 15). Drivers by points: if/else 22, 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/NodeFactory.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e7745db85903af4bc74c46cb450ebb8426fd3c5e1b30a49665310d3ffa1b4b"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalLoadingCache.refresh (cognitive 21): LocalLoadingCache.refresh has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9, boolean chains 5, ternaries 5, error handling 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalLoadingCache.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d783310db47aa397c540e32a2a58b4381b458092beef04a496e978e4eb65013"}},{"ruleId":"D2","level":"warning","message":{"text":"ClockProPlusPolicy.runHandCold (cognitive 20): ClockProPlusPolicy.runHandCold has cognitive complexity 20 (threshold 15). Drivers by points: if/else 18, loops 2 (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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"d527beac86eaed8ef097df4a982f1a7d53251286749434d4c8a10ad5e157b76b"}},{"ruleId":"D2","level":"warning","message":{"text":"CacheProxy.putAll (cognitive 20): CacheProxy.putAll has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8, error handling 5, loops 4, boolean chains 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"51babc1afdbc9b3c0df0a18ccc56e1ad03090db766ce9252b75315a9421702a6"}},{"ruleId":"D2","level":"warning","message":{"text":"AsMapView.putIfAbsent (cognitive 20): AsMapView.putIfAbsent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, boolean chains 2, ternaries 2, 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df515029c0637f02e9901feb8613e24f4c3ea87e9fe0b1e9359bf0e43dcfcfb"}},{"ruleId":"D2","level":"warning","message":{"text":"LoadingCacheView.tryComputeRefresh (cognitive 19): LoadingCacheView.tryComputeRefresh has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, ternaries 4, boolean chains 3, error handling 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncLoadingCache.java"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"0262e8dbd81901a68e9f5d4ff76a19d7c2ed432d0db0b02f495791f8c8664d24"}},{"ruleId":"D2","level":"warning","message":{"text":"BoundedVarExpiration.putIfAbsentAsync (cognitive 18): BoundedVarExpiration.putIfAbsentAsync has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":4653}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f7179a73189d95880bd10fdcab4f447e921499b689aeb23980c6f010741b48"}},{"ruleId":"D2","level":"warning","message":{"text":"AsMapView.computeIfAbsent (cognitive 18): AsMapView.computeIfAbsent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, boolean chains 3, ternaries 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0ffdc590beee02050e3e0a28bc9b79a7401799d203fdf0d5bb9fb6c82edff0"}},{"ruleId":"D2","level":"warning","message":{"text":"CartPolicy.onMiss (cognitive 17): CartPolicy.onMiss 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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/adaptive/CartPolicy.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15c6b511eb33852388e43326a92b9c6444c0fc25afc3613b7a379c4d8b87c35"}},{"ruleId":"D2","level":"warning","message":{"text":"HillClimberFrdPolicy.adapt (cognitive 17): HillClimberFrdPolicy.adapt has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, 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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"b872fa86b0ce757ed8b8f1ecec4e94a854ea16fb5367edabb48ca7ec88b25607"}},{"ruleId":"D2","level":"warning","message":{"text":"Metrics.format (cognitive 17): Metrics.format has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, ternaries 7, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/report/Metrics.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"1352932c87f1f426b7314b894a5e641eb6bd9ac1067a9edd294f63a43196ff2f"}},{"ruleId":"D2","level":"warning","message":{"text":"MetricComparator.compare (cognitive 16): MetricComparator.compare has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 3, ternaries 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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/report/Metrics.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb8b08192d99c00f1b8bee7678f28d3549cc0dec9f03005501bf4fd9e6b3545"}},{"ruleId":"D2","level":"warning","message":{"text":"CacheProxy.replace (cognitive 16): CacheProxy.replace has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 8 (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":"jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4388c27b92ec4d32e8467518182f78fb9cb80380baeb64810da65074a4b26f"}},{"ruleId":"D2","level":"warning","message":{"text":"TimerWheel.expire (cognitive 16): TimerWheel.expire has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, error handling 3, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/TimerWheel.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ebd3249f6710e2d28d1097e0f6c99708d7eb49d0fba33409c9924f67163da0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cache/BoundedLocalCache.java: FileTooLong \u2014 3141 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: BoundedLocalCache (112-4973). 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ef2fbce90409e40410c8f774ece6c57c1053ba63da0f588b4cafd4615a0833"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BoundedLocalCache: TooManyMethods \u2014 160 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e041cb7e5cfa887da73d58f1d4f38cf83ef52c3b92d8327c52520770839081"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Caffeine: 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/Caffeine.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde044274a54a81021ab4d5cae1f2033e81e358b098e0af877b7a65889257aa5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cache/LocalAsyncCache.java: FileTooLong \u2014 1137 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: LocalAsyncCache (66-1717). 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2f4bd718991cc2ce452c2c8fafba41cd61ea9a7fe0a0b6666cbba6db61680a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jcache/CacheProxy.java: FileTooLong \u2014 971 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: CacheProxy (88-1435). 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":"jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c349be16be67d14eb00a56b266585733e4779588deebd4f85b5659a3ae9dc416"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cache/UnboundedLocalCache.java: FileTooLong \u2014 919 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: UnboundedLocalCache (67-1441). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/UnboundedLocalCache.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f34333ea04a6b62c4c421dc255f84121cc89d4df15ba654155c22f3494c792"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CacheProxy: 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":"jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c27580791940bbe5941c0ae0fc2ba48d9c6a0a3191dba093acfc2e9784479f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CaffeineConfiguration: 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":"jcache/src/main/java/com/github/benmanes/caffeine/jcache/configuration/CaffeineConfiguration.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5c3dcc84a0768420c88a79e76848d9d362cbf5cf8127bede70b9d2f693f388"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PolicyStats: TooManyMethods \u2014 48 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/PolicyStats.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a1f8a2b61be02f4aeea14f84f8b503f497bf57c9e3ba30bcd36c8dc9d6ed38"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Node: TooManyMethods \u2014 46 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/Node.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9090f89945a82e823c804e7b94acb89132f2b1b6084fe27fe94e391bd223024e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UnboundedLocalCache: TooManyMethods \u2014 45 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/UnboundedLocalCache.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47830fb616ba2218699d0372f301baef406ce5ff7b1c5a421103b0ae655a3be"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractLinkedDeque: TooManyMethods \u2014 41 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/AbstractLinkedDeque.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbdd251ef09b19c43d004f087d6e16a2aecbcee6c25541920f8628dedd4980c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseMpscLinkedArrayQueue: TooManyMethods \u2014 35 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/MpscGrowableArrayQueue.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a627e2220e7745f1fc1117e7b658b2d462c1f667f6f9ab391222fca75aef09c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:335-350 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPolicy.java:304-319 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:335\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c28f13556c45c416acbec8a65b061bf658d65fcd6e27249f8867ef4ed62311a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java:295-309 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java:387-401 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/IndicatorFrdPolicy.java:359-373 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java:295\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3119419e8ec905626e3fa1fba185f70ace674563af68ae7f27cbfe497e69ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:280-294 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPolicy.java:259-273 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:280\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8855730d45fa3cb178b97a3ba3379fd0176ac557920968373f47af5f16725d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:416-429 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPolicy.java:379-392 \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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ff3895d3845c76de5cee6af4f2924a1730d5c76d4c5ab6a01f978cfb8511ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java:269-281 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java:361-373 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/IndicatorFrdPolicy.java:333-345 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java:269\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"68a22ed3e182d2ede535ae210fb9840edf78ef7aa67eebfe20165656af747fe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:520-532 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPolicy.java:462-474 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:520\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"92eb82a969c1e704cdc9874c4a3d7ff75e9c18a9f93b94463ccb219af90210eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:597-609 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPolicy.java:534-546 \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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b66ac1c9ee6bbdca79fa065eebf6dbd4a22a5ec3cb833078aea68a3a369924b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:614-626 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPolicy.java:551-563 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:614\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"de54ca5d30bdd9e6ff1ac37cbc7902b4174d67a7752d754d308942b7171282ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java:141-153 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/IndicatorFrdPolicy.java:121-133 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java:141\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"119607ccdf71f82c3cd09fdfa36ed4bab42e4bb6cf6b0bcda0e118835f5beac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/climbing/gradient/Adam.java:52-64 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/climbing/gradient/Nadam.java:53-65 \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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/climbing/gradient/Adam.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a355ba1ab8906e508986068d2e14d13504f2d17e8d7adc6f2fe9e9861a92ecf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/feedback/FeedbackTinyLfuPolicy.java:138-150 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/feedback/FeedbackWindowTinyLfuPolicy.java:217-229 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/feedback/FeedbackTinyLfuPolicy.java:138\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/feedback/FeedbackTinyLfuPolicy.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"02be1c8f00364a89cf5c92301f38e825aa3aa9d6fe63f574ede8812c95e2b86f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/feedback/FeedbackWindowTinyLfuPolicy.java:202-214 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/WindowTinyLfuPolicy.java:169-181 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/feedback/FeedbackWindowTinyLfuPolicy.java:202\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/feedback/FeedbackWindowTinyLfuPolicy.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa2f34771fd46e017507dafaf87c8e1d197a8e49844264933f1727cb2e5c95f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): jcache/src/main/java/com/github/benmanes/caffeine/jcache/LoadingCacheProxy.java:67-79 | jcache/src/main/java/com/github/benmanes/caffeine/jcache/LoadingCacheProxy.java:146-158 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060jcache/src/main/java/com/github/benmanes/caffeine/jcache/LoadingCacheProxy.java:67\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"jcache/src/main/java/com/github/benmanes/caffeine/jcache/LoadingCacheProxy.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ad9c584a90f08b35d065067e2a60f3bb05394a299cbce6f991f6e844cc1e0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:4661-4673 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:828-840 \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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":4661}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1844c5e26460cddc3affbf82114ebea5330f777051cb08cfa343e0c397c7dcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/adaptive/CarPolicy.java:134-146 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/adaptive/CartPolicy.java:146-157 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/adaptive/CarPolicy.java:134\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/adaptive/CarPolicy.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4aa55c4788cbfc86dd873d3a3937980fae9e2b890e7c4ee9d7ca14aaf42874c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:171-182 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPolicy.java:153-164 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:171\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c732c6e9c9201dc95f6d52dd3be2c2f206a7ded2d124dceb31eb74692a5644a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java:90-101 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/IndicatorFrdPolicy.java:85-96 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java:90\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9230f6ce7601e305305f542e2d8e9a6e08eec41ec9502c7fbad57135204bd1a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3724-3735 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3928-3939 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3724\u0060 it begins part-way through the construct above it, so those exact lines 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":3724}}}],"partialFingerprints":{"codehealthFindingId/v1":"668a8a1d3d867f9ba61ab7d4a6c6da6a1d93c7a0b7949229e04e9e8084fce085"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java:130-140 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java:217-227 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/IndicatorFrdPolicy.java:195-205 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcaa8ea02008bfb9ef73a78379a6ddaafa606949bd11a2fa29167cb3a520a006"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): caffeine/src/main/java/com/github/benmanes/caffeine/cache/Async.java:90-100 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:432-442 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/UnboundedLocalCache.java:193-203 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/Async.java:90\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/Async.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8784e776984103cf03ceb078ba1bd026c3cd9dd4f0bc647628581044fa099d41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:434-444 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPolicy.java:397-407 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:434\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b04782aeaa0c57633e6c2a4332546831f168edba9f80f296bda1aeaa14a528"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:672-682 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPolicy.java:608-618 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:672\u0060 it begins part-way through the construct above it, so those exact lines 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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfdaec1da4145ad9f4e03849556d67bda5b7590ea93610ee88c870267b331146"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java:191-201 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/IndicatorFrdPolicy.java:262-272 \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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bff90ef2b1e3de38c0381be75764d87ea3c236571ee2a1fad51e4258632495"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java:160-170 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/IndicatorFrdPolicy.java:140-150 \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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e01bbc38a3264ad77dba3e64c567c581c645336fbf692db6ec3560ad0a03bc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java:186-196 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/IndicatorFrdPolicy.java:164-174 \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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dbaf8bfec2dede75b117e473bd4519e267504e332bfec8acef2f83705f87670"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/feedback/FeedbackTinyLfuPolicy.java:92-102 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/feedback/FeedbackWindowTinyLfuPolicy.java:130-140 \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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/feedback/FeedbackTinyLfuPolicy.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"df910dd84c83128faecb64a2c18ceae5b7b4acaa64dce36ac9c20e8c3a506f19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3608-3618 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/UnboundedLocalCache.java:677-687 \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 \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3608\u0060 it begins part-way through the construct above it, so those exact lines 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":3608}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b331c0c4ba7d42c37573968cdc3b6b9535c7b3c59d1489fa0496156b220bb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:824-834 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:978-988 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:824\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ee528aa6e4d7fd2fb62a49cd6830d08fdb031caccf7f29a7b80aa872bbc6ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/StripedBuffer.java:242-252 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/StripedBuffer.java:257-267 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/StripedBuffer.java:242\u0060 it begins part-way through the construct above it, so those exact lines 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/StripedBuffer.java"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36996f82cfb8403f9d74b22d77d7aa6e63e40bc658b153a4c06453c68c829ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:489-498 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPolicy.java:432-441 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:489\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fb7e442a93a7a01fc7abd0cf432a3843086b0fc25ef8010322feeda47e8720"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:542-551 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPolicy.java:481-490 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:542\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"f047c393c35bc6a2ba70f1def90b58c6c96bf4fa07bc00e1f7ba95fe8b96c349"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java:603-612 | jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java:674-683 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java:603\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0e4a2629198dca8ed03c8c688362bb38790f55d78616d4d557e42579fd2cba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3247-3256 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:1160-1169 \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 \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3247\u0060 it does not close everything it opens, so those exact lines 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":3247}}}],"partialFingerprints":{"codehealthFindingId/v1":"66459d82e29dfdcc207cff94dbc00b2d5421ada19fd30f7617ccd7eba12d2829"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:4513-4521 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:4554-4562 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:4599-4607 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:4799-4807 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":4513}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85b8bb42344ff59bf4ff1bc99f79551403aa1c6279b510b41d4387f1ab3083c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java:176-184 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java:271-279 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/IndicatorFrdPolicy.java:245-253 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java:176\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"457f00fa39ae03fa04473f98993e98956b002e3561ff50e978d5735920a0bc24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/feedback/FeedbackWindowTinyLfuPolicy.java:146-154 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/WindowTinyLfuPolicy.java:111-119 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/feedback/FeedbackWindowTinyLfuPolicy.java:146\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/feedback/FeedbackWindowTinyLfuPolicy.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c903fabb2eb96ffc657ff1b66491902fea25656915455cbb06db456cd1b668a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java:139-147 | jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java:175-183 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"cabf11767984427c31efab661207aed462cefb83f92f2881cebdc5547e03f356"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java:655-663 | jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java:760-768 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java:655\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"a608429177a011a453163bfff493102c9b8df0b7d86ca5d1740f61c100c9b3ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:1066-1074 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:2244-2252 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:1066\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"9626e96fa676a9867ef8a5ed56acae39c4e06cf5b82df2cc8597c880826be3af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:2714-2722 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:2769-2777 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:2714\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":2714}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee587934c3b711c0ab06b291196b44ed159f32ae830476e7785829cdd36d048"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:1051-1059 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:1087-1095 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:1051\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf7b255b123de1c05d87c6099eaef15ec65860289b288662de42ab26b964377"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:1519-1527 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/UnboundedLocalCache.java:1039-1047 \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 \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:1519\u0060 it begins part-way through the construct above it, so those exact 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"686e3117b4d27eb6c518fad2d6a25801a15f944b860fc664b7512c8274494867"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/product/Cache2kPolicy.java:71-78 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/product/CaffeinePolicy.java:63-70 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/product/GuavaPolicy.java:61-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/product/Cache2kPolicy.java:71\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/product/Cache2kPolicy.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a55449eea6fb55254f94336a6e09d10e1ab353b6ece7362a01343b4aa6447b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3980-3987 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:1519-1526 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/UnboundedLocalCache.java:1039-1046 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3980\u0060 it begins part-way through the construct above it, so those exact lines 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":3980}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a6694c04aa568802dd1aa037c5d1a8972c6ed239d925cca27c3119a2527be3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCache.java:52-59 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCacheWithGhostCache.java:56-63 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCache.java:52\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCache.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"33cd88dba55f5e3b33b4c4ef13c6ea0335382a55effe3c0c149fd3d008061311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:130-137 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPolicy.java:112-119 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:130\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd057078ef0718bf58cf75848172fbe522d5deaec6f4406870d266de13e5ba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/climbing/HillClimberWindowTinyLfuPolicy.java:201-208 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/WindowTinyLfuPolicy.java:181-188 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/climbing/HillClimberWindowTinyLfuPolicy.java:201\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/climbing/HillClimberWindowTinyLfuPolicy.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"3357cae6956c1b5a99f0fda114adffbfeac6ef2bfd509bb5c2248b64b9115386"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): jcache/src/main/java/com/github/benmanes/caffeine/jcache/integration/JCacheLoaderAdapter.java:189-196 | jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java:1358-1365 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note 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":"jcache/src/main/java/com/github/benmanes/caffeine/jcache/integration/JCacheLoaderAdapter.java"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7ebd484ff9fd615579d9573498c17c6a6ab09441d288148d66eb1503491cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:2489-2496 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:2502-2509 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:2489\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":2489}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0f54cc81916d7dacf27c80429fbeb8f6a29660a0370f6a976c414e481123bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:4002-4009 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:1537-1544 \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 \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:4002\u0060 it begins part-way through the construct above it, so those exact 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":4002}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b760e78dc87f9ed6c2d1c86f9d7992c4c5adfc8d24fd13a9b441afc53cd3a6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:4734-4741 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:1075-1082 \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 \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:4734\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":4734}}}],"partialFingerprints":{"codehealthFindingId/v1":"6922de6f6f82651aea170ca5cf2afbf6af7fae641a500c4157ecc5e89cf40c97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:1025-1032 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:1066-1073 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:1025\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b666af2aa2f1df4687a3cf1e31e50c4414afdc4229c181dd1ed340869f1b85a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCache.java:74-80 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCacheSketch.java:75-83 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCacheWithGhostCache.java:78-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCache.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd856e5ecd8d11bd0c19b8ad54d451b99e43edf5a5f1db579d4239479b2bf92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/adaptive/ArcPolicy.java:80-86 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/adaptive/CarPolicy.java:68-74 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/adaptive/CartPolicy.java:71-77 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/adaptive/ArcPolicy.java:80\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/adaptive/ArcPolicy.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c80b0e2ad66867a071b0c69a442dc407c6d2067a33db2b77f08d2179fbea73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java:84-90 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java:83-89 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/IndicatorFrdPolicy.java:78-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java:84\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e04fbe4153b3941d191fe5f2153800a64d9d56f970b36299944463cabfb1a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/countmin4/ClimberResetCountMin4.java:90-96 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/countmin4/PeriodicResetCountMin4.java:81-87 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/countmin4/ClimberResetCountMin4.java:90\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/countmin4/ClimberResetCountMin4.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78eb4e246061ec45d4ca483cab943087a3ecfaee08c1d89004e0b1b05dc361e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCache.java:41-47 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCacheWithGhostCache.java:45-51 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCache.java:41\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCache.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"911431d34d8def1a1e451514d2f970232e351b81c273d9b3ed1b31022852f04b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCache.java:86-93 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCacheWithGhostCache.java:96-102 \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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCache.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bec1fdc8204459cbb0c12618b94571940605dc67219b785eef14147a3e0715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinySetIndexing.java:45-51 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinySetIndexing.java:63-70 \u2014 both copies are in the same file, so extract the block 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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinySetIndexing.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd6c8245f11c9ac626e556dabab678106ce223f1f9d701d1d3577d4c2e9968c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:560-566 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPolicy.java:498-504 \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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"59970443c364ed43875d6a2fbe9db22581225b88ea0ab2262a9f9bba0954a3b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/climbing/gradient/Adam.java:42-48 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/climbing/gradient/Nadam.java:43-49 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/climbing/gradient/Adam.java:42\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/climbing/gradient/Adam.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b471609796406015bcfc2aaf0339cf12267b1141f93e2f8e004228403d3af241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3706-3712 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3910-3916 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3706\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":3706}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f6fdd031e8476f5f38a877b4b07ad8d0519bfa62ede44565c0d9af2bcc511b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:4905-4911 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:4957-4963 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:4905\u0060 it begins part-way through the construct above it, so those exact lines 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":4905}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd07ca879ab18309b96fcd11854d45c4ba2e7c9a02ee08c30fe0d572f21101d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:648-654 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/UnboundedLocalCache.java:154-160 \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 \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java:648\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8b5ae3ad84450c4fa6ebfa3cff39222c27a2f80633ef3ee85e71a14b2c67a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/countmin4/ClimberResetCountMin4.java:43-48 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/countmin4/PeriodicResetCountMin4.java:37-42 \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 \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/countmin4/ClimberResetCountMin4.java:43\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/countmin4/ClimberResetCountMin4.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6e53cb7a71ee814ea062b0773bb10e06aa9376090ad59b991fa13c0bca74f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/greedy_dual/CampPolicy.java:229-234 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/greedy_dual/GdsfPolicy.java:179-184 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/greedy_dual/CampPolicy.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"66cfb86ba9372484604e7242e56c66bacd202ddb3331fdb2e8ab6c7504022d83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:2706-2711 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3065-3070 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:2706\u0060 it does not close everything it opens, so those exact 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":2706}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bafae9bd6f97d847e013f1fbb8d22546034e7ebfe4f5e403345216c98c238f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3261-3266 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3287-3292 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3261\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":3261}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df956102ac2fedced85c82d3e21e3fb6b7ea4e9b39fb119137d3cd82e25f6c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3289-3294 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3310-3315 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:3289\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":3289}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6a7ccc004b52b8450caca28f81616a90f22eeef7b7f5e625036f512370768e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:4018-4023 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/UnboundedLocalCache.java:1072-1077 \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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":4018}}}],"partialFingerprints":{"codehealthFindingId/v1":"2daee04b97864dfc5205fedfe7ecc3bd8c07cb9d302d56f759e3e6e024a8ddac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:4374-4379 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/UnboundedLocalCache.java:1259-1264 \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 \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java:4374\u0060 it does not close everything it opens, so those exact lines 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":4374}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97c75f46d86bdc669576532f1a6a468df93e36a8892fb5293a94b78830bfc9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): caffeine/src/main/java/com/github/benmanes/caffeine/cache/UnboundedLocalCache.java:1365-1370 | caffeine/src/main/java/com/github/benmanes/caffeine/cache/UnboundedLocalCache.java:1418-1423 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/UnboundedLocalCache.java"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad086a41c18b824e43dafaeae7b7cc3083dcb4707b3d90f5004565c79a5dc008"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCache.java:99-105 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCacheSketch.java:104-108 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCache.java:99\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/admission/tinycache/TinyCache.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b89647a03b11cebac08a12fa7f4c9f0e563ffa1f144246f312282c75a2949e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/parser/glcache/GLCacheTraceReader.java:57-62 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/parser/libcachesim/oracle/OracleGeneralTraceReader.java:54-58 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/parser/glcache/GLCacheTraceReader.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f123b8216c8fec96d3cf12c1bbd18a318ea0f35d5b6a68062455b4cb81e81b87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java:633-637 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPolicy.java:570-574 \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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a15c78a6356673226d26aa9e46fca1f8d861cc952907b00d3aec5499ad7cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java:68-72 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java:63-67 \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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/FrdPolicy.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bcb38d8756140460f55dec0961c2cce63cac75290afb0d44bf975723bef677"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java:312-316 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/IndicatorFrdPolicy.java:284-288 \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":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/HillClimberFrdPolicy.java"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db09a26d7520bf3878cb19c0fda04edea8e4031f0168534ea26823b08a4df5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/feedback/FeedbackWindowTinyLfuPolicy.java:89-93 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/WindowTinyLfuPolicy.java:76-80 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/sketch/feedback/FeedbackWindowTinyLfuPolicy.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b2228286d5883c6712e5e37587c8bf986773de8e46eec6c69333f11a826baf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/two_queue/S3FifoPolicy.java:248-252 | simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/two_queue/S3FifoPolicy.java:257-261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/two_queue/S3FifoPolicy.java:248\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/two_queue/S3FifoPolicy.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c670159255260165aa1fdf68a3c8707291c2a6fa844fd005b9d36b4c71205c48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): jcache/src/main/java/com/github/benmanes/caffeine/jcache/integration/JCacheLoaderAdapter.java:198-202 | jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java:1366-1372 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060jcache/src/main/java/com/github/benmanes/caffeine/jcache/integration/JCacheLoaderAdapter.java:198\u0060 it begins part-way through the construct above it, so those exact lines 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":"jcache/src/main/java/com/github/benmanes/caffeine/jcache/integration/JCacheLoaderAdapter.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1b592c1f2699b4a23f2c35d6bc0a4f4b10976dc69606d9d922a82036eab36a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java:438-442 | jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java:815-819 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java:438\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9162a909d770750449778862e94c457cc1e0ff8fdaedf9d3ac52cce247fdc0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java: caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java changed 34 times in last 90 days, max complexity 41. 7 of those changes were fix/bug commits, and the other 27 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f765876ed128de6a9ed034118713d5cc616c397b2b589e7d3e0ea33c1466a6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java: jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java changed 50 times in last 90 days, max complexity 15. 9 of those changes were fix/bug commits, and the other 41 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b020880910ae113efc50f6c8f58321e396c2fa6b798e0ee2f8567085fed53f24"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncLoadingCache.java: caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncLoadingCache.java changed 9 times in last 90 days, max complexity 16. 2 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncLoadingCache.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b138e1cbbce50854327e9eea5317bdad8ab89edc8257b1a04726a47559594e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalLoadingCache.java: caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalLoadingCache.java changed 5 times in last 90 days, max complexity 18. 2 of those changes were fix/bug commits, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalLoadingCache.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8f11c32f7646e21666b5398e985f4bf426c8175eab7b5150266d182dd6737b"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 118 significant file(s) lose their only recent owner: caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java, caffeine/src/openjdkTest/java/com/github/benmanes/caffeine/openjdk/collection/MOAT.java, caffeine/src/main/java/com/github/benmanes/caffeine/cache/Caffeine.java, caffeine/src/main/java/com/github/benmanes/caffeine/cache/LocalAsyncCache.java, jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java, caffeine/src/main/java/com/github/benmanes/caffeine/cache/Policy.java, caffeine/src/main/java/com/github/benmanes/caffeine/cache/UnboundedLocalCache.java, simulator/src/main/java/com/github/benmanes/caffeine/cache/simulator/policy/irr/ClockProPlusPolicy.java (\u002B110 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ebf7745ce96da4840820b03e158dd5010cc045469834938ff24848e9535214d5"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 2 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 (120 single-owned of 264 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 (1 file(s)), anonymized user #3 (1 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":"2ff63c66538a807ad43773c5415f6b077fa0d249dbd115093ebc5b01a83a9927"},"taxa":[{"id":"CWE-732","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":"68437c76d0f20f61d84548458874337d44a9eee84e399ee877da03098589789d"},"taxa":[{"id":"CWE-732","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":"89e356713f08610d6cd7ec4d0a111af018d5d2aa5d9d9f525bd7bfad674a725f"},"taxa":[{"id":"CWE-732","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":"0a411b793e9de3f94d219b9b33b4b3b6cf9b4cf949d869b3ceb1ef11efae4df8"},"taxa":[{"id":"CWE-732","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":"12dad626d335e02cae78324860c23ac59f020a07574d8a6af8c92f08a2af1b4f"},"taxa":[{"id":"CWE-732","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":"7a4a5bda3d8e72415f400488d9da11f4f9e2aa2ec7b7ecc0e2e4233a71530d42"},"taxa":[{"id":"CWE-732","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":"7c5b0f5e52bac19790a7e81fb343889a4ebc27fc7d7ce9e470c67e20597b64bf"},"taxa":[{"id":"CWE-732","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":"26f267db95828a15f0d94f47a6ce4e747bb655ea963d6939134e91b9c6f05de8"},"taxa":[{"id":"CWE-732","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":"dba927414de41caf49b6dcca7202ba1732d74d6b91a1f9e35e276243797dc1bd"},"taxa":[{"id":"CWE-732","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":"e2c568eb516e136ff51952dd55979fa74487e939fb34464bef441e9395da8768"},"taxa":[{"id":"CWE-502","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":"295b943c06f9347e892f303761b1b4e27d89aed0a54f07aa0a490d5128aa38ff"},"taxa":[{"id":"CWE-502","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":"0dd33c3be8b907c5bc37aa67c753b1f03a86eaba61d2c82f835538eaa2ff45fa"},"taxa":[{"id":"CWE-502","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":"31844b626327370ec9855bbcef174f67b81d780219f553d9f815f941dc2cd779"},"taxa":[{"id":"CWE-502","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":"9934434295d68df67c2001c08a8f6e467805093f95f770084667892af9fe01bc"},"taxa":[{"id":"CWE-676","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":"0352cd742b97b26b8ac6d50a26744f699b4b9b133b18c344c271e6f72cf3d943"},"taxa":[{"id":"CWE-676","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":"8c82e3e44b35aa3d140c303988822d27a457f80f397e99a7fe3fb81c62484f21"},"taxa":[{"id":"CWE-676","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":"61066eaabc313a7e954e56862d0ca26d2986760c85112f6e6ffbf8349eaa3def"},"taxa":[{"id":"CWE-676","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":"826092374b0431681f133cea5a7e9a35ba4041fe464620f5e2f18b53760d7627"},"taxa":[{"id":"CWE-676","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":"f46ed85c18c7be2488e29a17fdc575a674b0935ce7d7d295693effdc6f65999f"},"taxa":[{"id":"CWE-676","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":"2cba4a5f37492e1c22cced1ea05d53ee84209fc1c0ed2c0b5447fb93a37a4609"},"taxa":[{"id":"CWE-676","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":"120f2b88bfdcff05c6c5c6d365edf12b28b63f75b3a74bfd5787deab346561c0"},"taxa":[{"id":"CWE-676","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":"e277f285a20ecb639c0595f837583988e674d24cd328c9ca126416fc6b5aaa21"},"taxa":[{"id":"CWE-676","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":"275f11d260a9314bac6cfe963e2fd919da4a8a029d1776bfe00f2befe83f4e69"},"taxa":[{"id":"CWE-676","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":"c04d77737ff8cff9642d4f2c95cf79ac2142a5c2e24607968461b95a9bda0625"},"taxa":[{"id":"CWE-676","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":"9359294dca31f4eb6141e0a9f970ca6f99b09998f04b7d7b4e1662872e7b67a5"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AsyncCacheLoader.java \u2194 Cache.java: \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/AsyncCacheLoader.java\u0060 and \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/Cache.java\u0060 change together 57% of the time (8 of the 14 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/AsyncCacheLoader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4c853629d91b31dca4c7d9a0407962a208b9be9e2225be7dba72b1d0cfb28b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AsyncCache.java \u2194 AsyncCacheLoader.java: \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/AsyncCache.java\u0060 and \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/AsyncCacheLoader.java\u0060 change together 50% of the time (7 of the 14 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/AsyncCache.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebd1e407f26a546d48ad556ae4435655518bd88f715fabd301b22434bb246e7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AsyncCacheLoader.java \u2194 AsyncLoadingCache.java: \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/AsyncCacheLoader.java\u0060 and \u0060caffeine/src/main/java/com/github/benmanes/caffeine/cache/AsyncLoadingCache.java\u0060 change together 50% of the time (7 of the 14 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":"caffeine/src/main/java/com/github/benmanes/caffeine/cache/AsyncCacheLoader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1120881585dd67a9a66cdc86d8966212c5f4950382284e084f232d62c1bd7934"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CacheProxy.java \u2194 EventTypeAwareListener.java: \u0060jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java\u0060 and \u0060jcache/src/main/java/com/github/benmanes/caffeine/jcache/event/EventTypeAwareListener.java\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"jcache/src/main/java/com/github/benmanes/caffeine/jcache/CacheProxy.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"730007f56943bafb1cde9a6e4fbf1affd94f1b5f5d6bf870f0f014a00efc3a15"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-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-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"CWE-502","shortDescription":{"text":"CWE-502"},"helpUri":"https://cwe.mitre.org/data/definitions/502.html"},{"id":"CWE-676","guid":"550e6fab-2881-3252-8a05-c688a6b19c14","name":"CWE-676","shortDescription":{"text":"CWE-676"},"helpUri":"https://cwe.mitre.org/data/definitions/676.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":27,"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."]}]}