{"$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"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"PictureCommonFragment.checkOnlyMimeTypeValidity (cyclomatic 46): PictureCommonFragment.checkOnlyMimeTypeValidity has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a61d8eec4fb4a3b2d7ded0a5e0b4472fc15b1dfb1fbd9b7cf7e54b04a620b0"}},{"ruleId":"D1","level":"warning","message":{"text":"PictureCommonFragment.checkWithMimeTypeValidity (cyclomatic 35): PictureCommonFragment.checkWithMimeTypeValidity has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f1bed353ed7806309fcebb8f299ef270d5d5853887e6dc97e9c524ee994a21"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalMediaPageLoader.parseLocalMedia (cyclomatic 34): LocalMediaPageLoader.parseLocalMedia has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9e9c7ea109d267fe65f0d9e3db1052c0185e7e18cf2765d63daecd1f2a715e"}},{"ruleId":"D1","level":"warning","message":{"text":"SandboxFileLoader.loadInAppSandboxFile (cyclomatic 34): SandboxFileLoader.loadInAppSandboxFile has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/SandboxFileLoader.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"350739aa74eceb437db7235728e393458365ff453540656350b8bf39908d2656"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalMediaLoader.parseLocalMedia (cyclomatic 28): LocalMediaLoader.parseLocalMedia has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeffad744ddf0e6424108b30f783e4ec462839e907cb850c234e8ec4c2e1587f"}},{"ruleId":"D1","level":"warning","message":{"text":"3.doInBackground (cyclomatic 28): 3.doInBackground has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c48b5d68b55d3b205848ff40324ed61b55e2a0e0b12801a7afe87f9e411d96"}},{"ruleId":"D1","level":"warning","message":{"text":"MainActivity.onCheckedChanged (cyclomatic 26): MainActivity.onCheckedChanged has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":2210}}}],"partialFingerprints":{"codehealthFindingId/v1":"24097599bc9b13f140fe9defc093b9447fca646155d21d8649a80a2af1ab35f9"}},{"ruleId":"D1","level":"warning","message":{"text":"PictureCommonFragment.checkCompleteSelectLimit (cyclomatic 26): PictureCommonFragment.checkCompleteSelectLimit has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd4761fc9531214956bf891defbe0a0e464f09fae64255edf776400de84f7c0"}},{"ruleId":"D1","level":"warning","message":{"text":"CompleteSelectView.setSelectedChange (cyclomatic 25): CompleteSelectView.setSelectedChange has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/widget/CompleteSelectView.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac656feca28934b696208070a5e3d8dc93605902b537a1db54fb8e6282a982e"}},{"ruleId":"D1","level":"warning","message":{"text":"Checker.getOrientation (cyclomatic 25): Checker.getOrientation has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compress/src/main/java/top/zibin/luban/Checker.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e344d1d7f93d6ac237b780363afbd8ae301b4c7546497e0e424e0ead9a03dbb"}},{"ruleId":"D1","level":"warning","message":{"text":"BottomNavBar.setBottomNavBarStyle (cyclomatic 23): BottomNavBar.setBottomNavBarStyle has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/widget/BottomNavBar.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2801576b38e4e45c6f48c2a354e3b4176ab57fc756feaadddd86b09ea7a26b"}},{"ruleId":"D1","level":"warning","message":{"text":"PictureCacheManager.deleteAllCacheDirFile (cyclomatic 22): PictureCacheManager.deleteAllCacheDirFile 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":"selector/src/main/java/com/luck/picture/lib/manager/PictureCacheManager.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26a26f93f2f8e9c868c9b4a4e5a714fca837c7b19ac1d449a19fd954b93c28e"}},{"ruleId":"D1","level":"warning","message":{"text":"1.doInBackground (cyclomatic 22): 1.doInBackground 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":"selector/src/main/java/com/luck/picture/lib/utils/DownloadFileUtils.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"af996f9c010f8f456ba07a5da230497eee4c6068ba6467973d525087241ebe7d"}},{"ruleId":"D1","level":"warning","message":{"text":"TitleBar.setTitleBarStyle (cyclomatic 22): TitleBar.setTitleBarStyle 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":"selector/src/main/java/com/luck/picture/lib/widget/TitleBar.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbb9846125de2ea1a9c8dd276fd087e4633f1294017b7f6a5d2fe135778d48e"}},{"ruleId":"D1","level":"warning","message":{"text":"PictureSelectorPreviewFragment.initComplete (cyclomatic 21): PictureSelectorPreviewFragment.initComplete 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":"selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"a744a27519012d3d0e77fb22eb0bf1c39bea39038dccd7a066d9e034d07c9156"}},{"ruleId":"D1","level":"warning","message":{"text":"PictureCommonFragment.onActivityResult (cyclomatic 20): PictureCommonFragment.onActivityResult has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d55b08264cae9e2df8ad40704e048ee4687a3f7f4cfcde6335d2105567e152"}},{"ruleId":"D1","level":"warning","message":{"text":"PermissionConfig.getReadPermissionArray (cyclomatic 20): PermissionConfig.getReadPermissionArray has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/permissions/PermissionConfig.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1e63116e61dd8ec2e4a9cc136a488bd910c50795b7cc25743193eddea61a8b"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageHeaderParser.parseExifSegment (cyclomatic 20): ImageHeaderParser.parseExifSegment has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/util/ImageHeaderParser.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"670914e8ea3a2c1d56820a2eb879671fd27385c782f9c8f162b2c4d1e86343b2"}},{"ruleId":"D1","level":"warning","message":{"text":"EventHandler.handleMessage (cyclomatic 19): EventHandler.handleMessage has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ijkplayer-java/src/main/java/tv/danmaku/ijk/media/player/IjkMediaPlayer.java"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e30b9a84d7d114be0fd3e7bcb7b03c3147319c51ad9df0a1409343677caf9cb"}},{"ruleId":"D1","level":"warning","message":{"text":"IjkVideoTextureView.onMeasure (cyclomatic 18): IjkVideoTextureView.onMeasure 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":"app/src/main/java/com/luck/pictureselector/IjkPlayerView.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"78310b1482524b42b9962ae8a2b08944f425f4be1c7661959b596e89a1e2a11a"}},{"ruleId":"D1","level":"warning","message":{"text":"LightStatusBarUtils.setAndroidNativeLightStatusBar (cyclomatic 18): LightStatusBarUtils.setAndroidNativeLightStatusBar 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":"selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"94bf8a4af1260cfe1c1a581bcc91f958eaa61cd1008c83f2b3a7802ca283bdde"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomGestureDetector.processTouchEvent (cyclomatic 18): CustomGestureDetector.processTouchEvent 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":"selector/src/main/java/com/luck/picture/lib/photoview/CustomGestureDetector.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b34512c6ae18d3c64aaf2c16a4b61403ae7332d04ad71df3aad01444506418a"}},{"ruleId":"D1","level":"warning","message":{"text":"LightStatusBarUtils.setAndroidNativeLightStatusBar (cyclomatic 18): LightStatusBarUtils.setAndroidNativeLightStatusBar 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":"ucrop/src/main/java/com/yalantis/ucrop/statusbar/LightStatusBarUtils.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69e5796664d26a14996c8d4e46f004acf8e7838f22ef3c9e44d3205578d4cc1"}},{"ruleId":"D1","level":"warning","message":{"text":"BufferedInputStreamWrap.read (cyclomatic 18): BufferedInputStreamWrap.read 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":"compress/src/main/java/top/zibin/luban/io/BufferedInputStreamWrap.java"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"16161579b17fde77551a927f97e617e4fea89d90b96418f49bff49fef1114fa7"}},{"ruleId":"D1","level":"warning","message":{"text":"PhotoViewAttacher.onTouch (cyclomatic 17): PhotoViewAttacher.onTouch has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/photoview/PhotoViewAttacher.java"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f76139021985403cc15a8309db6391f812510e0f249fb6f0a650ca678b3ef1"}},{"ruleId":"D1","level":"warning","message":{"text":"VideoSurfaceView.onMeasure (cyclomatic 17): VideoSurfaceView.onMeasure has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/widget/MediaPlayerView.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a82d8cfebd8ffbf9781788bb32c0ff02cdee913a7ad63efc64a6f93f3e477a2"}},{"ruleId":"D1","level":"warning","message":{"text":"PictureSelectorFragment.mergeFolder (cyclomatic 16): PictureSelectorFragment.mergeFolder 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":"selector/src/main/java/com/luck/picture/lib/PictureSelectorFragment.java"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f33a8dd10468d16119dce7130710ab80dc3aef705bb3ce27fd7dcbabc6376e"}},{"ruleId":"D1","level":"warning","message":{"text":"IjkMediaCodecInfo.setupCandidate (cyclomatic 16): IjkMediaCodecInfo.setupCandidate has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ijkplayer-java/src/main/java/tv/danmaku/ijk/media/player/IjkMediaCodecInfo.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"db169249669cb7c8f895d670c51de90375cbf85d0161268c7a470e249c83f046"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureCommonFragment.checkOnlyMimeTypeValidity (cognitive 129): PictureCommonFragment.checkOnlyMimeTypeValidity has cognitive complexity 129 (threshold 15). Drivers by points: if/else 119, boolean chains 7, ternaries 3 (nesting depth added 83). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"26376c5cbedd6e7ecd5099b56778084096fd1ebaa217ec580c5c86a142f24f71"}},{"ruleId":"D2","level":"warning","message":{"text":"3.doInBackground (cognitive 97): 3.doInBackground has cognitive complexity 97 (threshold 15). Drivers by points: if/else 68, ternaries 15, loops 12, boolean chains 1, error handling 1 (nesting depth added 66). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"275555c85633522f3a4c0d3b111aa882eef86ddf4d8105d81f0128b30fb69bd8"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureCommonFragment.checkWithMimeTypeValidity (cognitive 95): PictureCommonFragment.checkWithMimeTypeValidity has cognitive complexity 95 (threshold 15). Drivers by points: if/else 90, boolean chains 5 (nesting depth added 61). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"d910583100ae7660f530fb6afb696afb476fb43b551a39e53ee201d08c6e54db"}},{"ruleId":"D2","level":"warning","message":{"text":"SandboxFileLoader.loadInAppSandboxFile (cognitive 93): SandboxFileLoader.loadInAppSandboxFile has cognitive complexity 93 (threshold 15). Drivers by points: if/else 80, boolean chains 6, ternaries 3, error handling 2, loops 2 (nesting depth added 58). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/SandboxFileLoader.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae02d8d8d84abbac51287c01147081c1540c8efdeea70511fd7936ee8c16a5e"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureCommonFragment.checkCompleteSelectLimit (cognitive 68): PictureCommonFragment.checkCompleteSelectLimit has cognitive complexity 68 (threshold 15). Drivers by points: if/else 62, boolean chains 4, loops 2 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3bcefa9a2cef1dff49a74eff7f12721c0684fba7c57a5672cf779f485eca19"}},{"ruleId":"D2","level":"warning","message":{"text":"CompleteSelectView.setSelectedChange (cognitive 68): CompleteSelectView.setSelectedChange has cognitive complexity 68 (threshold 15). Drivers by points: if/else 62, ternaries 4, boolean chains 2 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/widget/CompleteSelectView.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"39fb8985e4ed31be5721fd0db5eb4e5310c0b55fcfc58e6d90f5e975bc301315"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureCommonFragment.onActivityResult (cognitive 66): PictureCommonFragment.onActivityResult has cognitive complexity 66 (threshold 15). Drivers by points: if/else 45, ternaries 9, loops 7, error handling 5 (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b08cf862892ef5d21415cc20478b3bec8a3b8f2bdaa8797790959df1cd1849"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureCacheManager.deleteAllCacheDirFile (cognitive 66): PictureCacheManager.deleteAllCacheDirFile has cognitive complexity 66 (threshold 15). Drivers by points: if/else 57, loops 9 (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/manager/PictureCacheManager.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d21c6a6e30437a617d2ec2a9ef681981f32280aa8bf326c8b6ae26bb9f4d0d5"}},{"ruleId":"D2","level":"warning","message":{"text":"IjkMediaCodecInfo.setupCandidate (cognitive 53): IjkMediaCodecInfo.setupCandidate has cognitive complexity 53 (threshold 15). Drivers by points: if/else 42, error handling 10, boolean chains 1 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ijkplayer-java/src/main/java/tv/danmaku/ijk/media/player/IjkMediaCodecInfo.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a49b914061400a9f7116992ce7ffe8c319cd4ff58960b9d8f00548e12677ba7"}},{"ruleId":"D2","level":"warning","message":{"text":"PermissionConfig.getReadPermissionArray (cognitive 52): PermissionConfig.getReadPermissionArray has cognitive complexity 52 (threshold 15). Drivers by points: if/else 26, ternaries 26 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/permissions/PermissionConfig.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90809c369b52d3420ea234423d861a754dc7993ccb22c7ec0e49bf54cef9816"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalMediaPageLoader.parseLocalMedia (cognitive 46): LocalMediaPageLoader.parseLocalMedia has cognitive complexity 46 (threshold 15). Drivers by points: if/else 36, boolean chains 7, ternaries 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"b310496ab33ce8c271dc459959fe9555dbd09dbcce1e167428649d98ec21b74f"}},{"ruleId":"D2","level":"warning","message":{"text":"1.doInBackground (cognitive 46): 1.doInBackground has cognitive complexity 46 (threshold 15). Drivers by points: if/else 21, ternaries 20, boolean chains 4, error handling 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":"selector/src/main/java/com/luck/picture/lib/utils/DownloadFileUtils.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"19134e2533dbafacd3282994a06d5b73de235d93c90260456210977f5843a3f3"}},{"ruleId":"D2","level":"warning","message":{"text":"LightStatusBarUtils.setAndroidNativeLightStatusBar (cognitive 39): LightStatusBarUtils.setAndroidNativeLightStatusBar has cognitive complexity 39 (threshold 15). Drivers by points: if/else 31, boolean chains 7, error handling 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"63823aa1e46c230225b11377af40f74b64c83f1e754bb29bb1ace8bdf0aa9179"}},{"ruleId":"D2","level":"warning","message":{"text":"1.doInBackground (cognitive 39): 1.doInBackground has cognitive complexity 39 (threshold 15). Drivers by points: if/else 29, ternaries 5, loops 3, boolean chains 1, error handling 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bdd0521f339453eda040dde2fbe368ac6c12dae98302caef69eb1006740fc68"}},{"ruleId":"D2","level":"warning","message":{"text":"LightStatusBarUtils.setAndroidNativeLightStatusBar (cognitive 39): LightStatusBarUtils.setAndroidNativeLightStatusBar has cognitive complexity 39 (threshold 15). Drivers by points: if/else 31, boolean chains 7, error handling 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/statusbar/LightStatusBarUtils.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"87499d359d2fdfca0bdb4002c380e7567783f0342981af0394428401aeb71c5e"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageHeaderParser.parseExifSegment (cognitive 39): ImageHeaderParser.parseExifSegment has cognitive complexity 39 (threshold 15). Drivers by points: if/else 35, boolean chains 3, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/util/ImageHeaderParser.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcf87db58dc17c2bb4ee0ce9836ea5fc3a6ab9dd75d65fedd0f86355090ef74"}},{"ruleId":"D2","level":"warning","message":{"text":"BufferedInputStreamWrap.read (cognitive 38): BufferedInputStreamWrap.read has cognitive complexity 38 (threshold 15). Drivers by points: if/else 27, ternaries 8, boolean chains 2, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compress/src/main/java/top/zibin/luban/io/BufferedInputStreamWrap.java"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae0333d364abf730326802cfc332fc4dcf935a662d165bde80887ee75811f4a"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalMediaLoader.parseLocalMedia (cognitive 37): LocalMediaLoader.parseLocalMedia has cognitive complexity 37 (threshold 15). Drivers by points: if/else 29, boolean chains 6, ternaries 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75d424f3be8d9ee91460810340ec8f46b0c357edf9b4000cd643ccc92f516c1"}},{"ruleId":"D2","level":"warning","message":{"text":"IjkVideoTextureView.onMeasure (cognitive 36): IjkVideoTextureView.onMeasure has cognitive complexity 36 (threshold 15). Drivers by points: if/else 30, boolean chains 6 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/IjkPlayerView.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1eec673968472491e280f4a0e65068cf4ff3aa2cc16fcef5856277e23fa67f7"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivity.onCheckedChanged (cognitive 36): MainActivity.onCheckedChanged has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 26, if/else 9, match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":2210}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0904d932879d943eaeb430a0102b2eaefea86567c9295438984887f1b130148"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoSurfaceView.onMeasure (cognitive 35): VideoSurfaceView.onMeasure has cognitive complexity 35 (threshold 15). Drivers by points: if/else 29, boolean chains 6 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/widget/MediaPlayerView.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8bafc28b29d5afb22e03f406e93df0f81b90608d61470d6ac0b642e43f768f"}},{"ruleId":"D2","level":"warning","message":{"text":"TitleBar.setTitleBarStyle (cognitive 35): TitleBar.setTitleBarStyle has cognitive complexity 35 (threshold 15). Drivers by points: if/else 32, ternaries 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":"selector/src/main/java/com/luck/picture/lib/widget/TitleBar.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"0342c59da01e27caf5c1038f0e2105c6f194d4f832fd4778048bb4ee47bbc045"}},{"ruleId":"D2","level":"warning","message":{"text":"Checker.getOrientation (cognitive 34): Checker.getOrientation has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19, boolean chains 8, match/switch 4, loops 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compress/src/main/java/top/zibin/luban/Checker.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ceb3723ee18185d357b3a8b83a044e8c98ff63189fe7052f16e2846eb6b5ca"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureSelectorPreviewFragment.initComplete (cognitive 33): PictureSelectorPreviewFragment.initComplete has cognitive complexity 33 (threshold 15). Drivers by points: if/else 33 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64d9a5bb157b2805f927b6c57f97e1612b28275023cad9f2553da8a555aa2e7"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureFileUtils.deleteAllCacheDirFile (cognitive 30): PictureFileUtils.deleteAllCacheDirFile has cognitive complexity 30 (threshold 15). Drivers by points: if/else 21, loops 9 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed51bb36768629cda857798dba72bea497d3b616789858361c396ed115ab9ca"}},{"ruleId":"D2","level":"warning","message":{"text":"FileUtils.getPath (cognitive 30): FileUtils.getPath has cognitive complexity 30 (threshold 15). Drivers by points: if/else 24, error handling 5, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/util/FileUtils.java"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"318b21374be8138eea02b164cd1e73889c0d8906396c1874f9e935c60fb9ad9b"}},{"ruleId":"D2","level":"warning","message":{"text":"3.openPicture (cognitive 29): 3.openPicture has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 24, if/else 5 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"b330527cfaac8f167d42e85bfbec385c3f25ad3d8fd47f64d714f29aa82e1359"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseRecyclerMediaHolder.dispatchHandleMask (cognitive 29): BaseRecyclerMediaHolder.dispatchHandleMask has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, ternaries 5, boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/adapter/holder/BaseRecyclerMediaHolder.java"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"511b196f64c3519c7956a5d91c4a3d098a59909426bc4155fbda10aaf4fa1aeb"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomGestureDetector.processTouchEvent (cognitive 29): CustomGestureDetector.processTouchEvent has cognitive complexity 29 (threshold 15). Drivers by points: if/else 24, ternaries 4, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/photoview/CustomGestureDetector.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b180a72094828a84ef90e56bba6607050b862587b0569615b4ff139f96a38553"}},{"ruleId":"D2","level":"warning","message":{"text":"MyImageResultCallback.onImageSaved (cognitive 28): MyImageResultCallback.onImageSaved has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22, ternaries 4, boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"camerax/src/main/java/com/luck/lib/camerax/CustomCameraView.java"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a271a1c619c5b526c8b3e738cc71685b724af4fd003bc13450c66cc7c8cedda"}},{"ruleId":"D2","level":"warning","message":{"text":"PhotoViewAttacher.onTouch (cognitive 28): PhotoViewAttacher.onTouch has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21, boolean chains 5, match/switch 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/photoview/PhotoViewAttacher.java"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5ffe868396c2adc44386e17a0f857f06be4b5c051c0ea071007e3b02370f97"}},{"ruleId":"D2","level":"warning","message":{"text":"BottomNavBar.setBottomNavBarStyle (cognitive 28): BottomNavBar.setBottomNavBarStyle has cognitive complexity 28 (threshold 15). Drivers by points: if/else 23, ternaries 5 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/widget/BottomNavBar.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d920686b728efb6649e8c9700febafd1e4902da20949f2bb2c28550a4eb768"}},{"ruleId":"D2","level":"warning","message":{"text":"1.onPageSelected (cognitive 28): 1.onPageSelected has cognitive complexity 28 (threshold 15). Drivers by points: if/else 24, boolean chains 4 (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":"selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda7ab6cf97e62f137b2337a355875af144ecf8f105f481d5d8a86d6fc434124"}},{"ruleId":"D2","level":"warning","message":{"text":"UCropMultipleActivity.initCropFragments (cognitive 27): UCropMultipleActivity.initCropFragments has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11, ternaries 11, boolean chains 4, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/UCropMultipleActivity.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c1f01af393c8bdb8cbfbbb42e3450c5b968a8fbdff24427fa9ebee02825ad9"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureCommonFragment.checkCropValidity (cognitive 26): PictureCommonFragment.checkCropValidity has cognitive complexity 26 (threshold 15). Drivers by points: if/else 22, loops 3, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":1502}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e0335a97549e3b0ad681fc1a258a757be365926243001bd744d219b741adde"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureCommonFragment.checkOldCropValidity (cognitive 26): PictureCommonFragment.checkOldCropValidity has cognitive complexity 26 (threshold 15). Drivers by points: if/else 22, loops 3, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18e26dc669807e5394e2941f52ab814bde70dbf938946b9e16eceb98c41106c"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureFileUtils.getPath (cognitive 26): PictureFileUtils.getPath has cognitive complexity 26 (threshold 15). Drivers by points: if/else 25, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2c9f1c49094dd39d925abb2ab97bce890e938167fff7392e3b886d9e4acaa2"}},{"ruleId":"D2","level":"warning","message":{"text":"LubanUtils.getPath (cognitive 26): LubanUtils.getPath has cognitive complexity 26 (threshold 15). Drivers by points: if/else 25, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"compress/src/main/java/top/zibin/luban/LubanUtils.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd4c7ae66e5db3a0cbf52b087b32941f7a5988c16758a6a7da33a9727b97f3d"}},{"ruleId":"D2","level":"warning","message":{"text":"Task.run (cognitive 25): Task.run has cognitive complexity 25 (threshold 15). Drivers by points: if/else 23, error handling 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/thread/PictureThreadUtils.java"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e97dccc0db1171fe1f8cf06591ac200b25acfccfdcfb017475c8a6b72818c74"}},{"ruleId":"D2","level":"warning","message":{"text":"RecyclerPreloadView.onScrolled (cognitive 25): RecyclerPreloadView.onScrolled has cognitive complexity 25 (threshold 15). Drivers by points: if/else 25 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/widget/RecyclerPreloadView.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"177db915ce93abc4f1ea134da8cb786c944c0b7155bbf3a16f9448653a7acd95"}},{"ruleId":"D2","level":"warning","message":{"text":"1.doInBackground (cognitive 23): 1.doInBackground has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15, loops 3, boolean chains 2, ternaries 2, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"916166f185a9e4c3cc29891410f0f31f15e84aff6eefa961a29fbe4a864060f1"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureCacheManager.deleteCacheDirFile (cognitive 23): PictureCacheManager.deleteCacheDirFile has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, loops 3, ternaries 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/manager/PictureCacheManager.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b0662debe350abe8a00d852663e8312e9d3649c1a9a36278cfd5e73fd3f0bc"}},{"ruleId":"D2","level":"warning","message":{"text":"BottomNavBar.setSelectedChange (cognitive 23): BottomNavBar.setSelectedChange has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, ternaries 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/widget/BottomNavBar.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"7224c4b88b2c2c9e5462fe74df56542bb3dc6a9905137acfa447a00b7e895b01"}},{"ruleId":"D2","level":"warning","message":{"text":"SlideSelectTouchListener.processAutoScroll (cognitive 23): SlideSelectTouchListener.processAutoScroll has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, boolean chains 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/widget/SlideSelectTouchListener.java"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"912e1377f116a24b703bc62f5a1a4b3d2d040e2fff34cb65fff39e9e37ffa382"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureSelectorFragment.checkNotifyStrategy (cognitive 23): PictureSelectorFragment.checkNotifyStrategy has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10, boolean chains 8, ternaries 5 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorFragment.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"16669b705d6605d6606bc62c07e4281523e9ad6469b532a4a7355dd7472f3ffe"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageHeaderParser.moveToExifSegmentAndGetLength (cognitive 23): ImageHeaderParser.moveToExifSegmentAndGetLength has cognitive complexity 23 (threshold 15). Drivers by points: if/else 22, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/util/ImageHeaderParser.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4ceaeff16d65adc86da9608a7343990b99003168de5891044121c396ec7635"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultMediaCodecSelector.onMediaCodecSelect (cognitive 23): DefaultMediaCodecSelector.onMediaCodecSelect has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, loops 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ijkplayer-java/src/main/java/tv/danmaku/ijk/media/player/IjkMediaPlayer.java"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13660b54907cbd6c92e1ae754342dcfda5d77eacd4d3cf81e97632eefa33623"}},{"ruleId":"D2","level":"warning","message":{"text":"ImmersiveManager.immersiveAboveAPI23 (cognitive 22): ImmersiveManager.immersiveAboveAPI23 has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 4, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/immersive/ImmersiveManager.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"77946962837e68ae97cb587dd07fa52759cfb654b2eedddc6f67a83e8d56576c"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureFileUtils.formatFileSize (cognitive 22): PictureFileUtils.formatFileSize has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 17, if/else 5 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7a87f48729a0f90afb772f4f26a6271be1cc8c72addeb58dda7d08f4327801"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseRecyclerMediaHolder.\u003Cinit\u003E (cognitive 21): BaseRecyclerMediaHolder.\u003Cinit\u003E has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, loops 6, boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/adapter/holder/BaseRecyclerMediaHolder.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5d020b47527803ae873412a1a0759fe4a808b2cf696d8a434eaac73718d11e"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureSelectorFragment.mergeFolder (cognitive 21): PictureSelectorFragment.mergeFolder has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, ternaries 5, boolean chains 3, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorFragment.java"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee3a1be4b7265ac446accbeececdabd666f527a00c7be5c8061065448806e0c"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureSelectorFragment.onStartPreview (cognitive 21): PictureSelectorFragment.onStartPreview has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, ternaries 7, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorFragment.java"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c51166bb9a4dfd4aa25c9dbbfa79081b9b706f7983393544c142ff0f2784ea"}},{"ruleId":"D2","level":"warning","message":{"text":"GridImageAdapter.onBindViewHolder (cognitive 20): GridImageAdapter.onBindViewHolder has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, ternaries 5, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/adapter/GridImageAdapter.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95a5ced87a05f1a685dc10c19f5fcc2962ff25d97d38b940da2566a4e13fba1"}},{"ruleId":"D2","level":"warning","message":{"text":"PermissionUtil.isAllGranted (cognitive 20): PermissionUtil.isAllGranted has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 2, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/permissions/PermissionUtil.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb5432bb235be25a347fb5e7490bbb09fd26a10c5f0a3e3d70fe720344d6086"}},{"ruleId":"D2","level":"warning","message":{"text":"BitmapCropTask.crop (cognitive 20): BitmapCropTask.crop has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/task/BitmapCropTask.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c041ad3e707e70781a0a1ba0a4387b1b93706b747939ed21825d71c7c1170e"}},{"ruleId":"D2","level":"warning","message":{"text":"PermissionChecker.requestPermissions (cognitive 19): PermissionChecker.requestPermissions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, loops 5 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/permissions/PermissionChecker.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"928cf95865fc1fb60d6fbdf3a1103ade602b16fd77adddac28898b6167d5e22e"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureFileUtils.createOutFile (cognitive 19): PictureFileUtils.createOutFile has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, ternaries 8, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"427515540fd23c96082885783bca0e95df8e6e27a08611356a41111c55d63ecb"}},{"ruleId":"D2","level":"warning","message":{"text":"7.onItemClick (cognitive 19): 7.onItemClick has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 3, ternaries 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorFragment.java"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cc8708a3e8792c6bacbdac03b9483fb592bc769a5857e0b7fb4a8c0ca7854f"}},{"ruleId":"D2","level":"warning","message":{"text":"ImmersiveManager.immersiveAboveAPI23 (cognitive 19): ImmersiveManager.immersiveAboveAPI23 has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, boolean chains 3, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/statusbar/ImmersiveManager.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f060cd33fd112ba0aae82a8bc2aae456a9f16261b73773e9edc29bb6837b2ca6"}},{"ruleId":"D2","level":"warning","message":{"text":"FullyGridLayoutManager.onMeasure (cognitive 18): FullyGridLayoutManager.onMeasure has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, match/switch 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":"app/src/main/java/com/luck/pictureselector/FullyGridLayoutManager.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a05285bc30c4ce0a970e5959f8317277c1814fed94badb1270306db133c519"}},{"ruleId":"D2","level":"warning","message":{"text":"PermissionChecker.requestPermissions (cognitive 18): PermissionChecker.requestPermissions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 5 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"camerax/src/main/java/com/luck/lib/camerax/permissions/PermissionChecker.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfcf4012a4c244a85e3fdbd97d6267decdef1731eb71f464980be87b9a67079a"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureCommonFragment.confirmSelect (cognitive 18): PictureCommonFragment.confirmSelect has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (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":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ead4ef7ada097da5f5237313711c3fc1589d33822304cccb68e655f85c9a23"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureSelectionPreviewModel.startFragmentPreview (cognitive 18): PictureSelectionPreviewModel.startFragmentPreview has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionPreviewModel.java"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"847ef15297319f2bd7a6f7951187115cac31cbd09c771ad132c0e394d0c33019"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureSelectorFragment.initComplete (cognitive 18): PictureSelectorFragment.initComplete has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorFragment.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad976ad90e8b895d1540bb3fce8f521b1ffa636f8db4128ae68a03b4055ff29e"}},{"ruleId":"D2","level":"warning","message":{"text":"13.onItemClick (cognitive 18): 13.onItemClick has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, ternaries 6, boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"d089d36cf16d55e055e896dd7ec944a6b4d43c1f2c12356d981db4698a8626b0"}},{"ruleId":"D2","level":"warning","message":{"text":"14.clearView (cognitive 18): 14.clearView has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, loops 3, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee8ad93be1d0ca7a18677a25f1d3073b76ac0be8c2055f03bc9dd0acac03180"}},{"ruleId":"D2","level":"warning","message":{"text":"BitmapLoadTask.doInBackground (cognitive 18): BitmapLoadTask.doInBackground has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, error handling 6, boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/task/BitmapLoadTask.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d99324f86548a1a85fc5d2a46854b46c0e6c3efebc4e7ade0c9d7af9f408dbe0"}},{"ruleId":"D2","level":"warning","message":{"text":"UCropActivity.processOptions (cognitive 18): UCropActivity.processOptions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, ternaries 6, boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e503e98b46bd0edd6a502b00d5b845368033574af4e5f61710d6cc7749430c"}},{"ruleId":"D2","level":"warning","message":{"text":"UCropFragment.processOptions (cognitive 18): UCropFragment.processOptions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, ternaries 6, boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/UCropFragment.java"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4683bc2df0aaf4a29f565d66d3caee91736caabc2025544576ceda6913dbf2b"}},{"ruleId":"D2","level":"warning","message":{"text":"2.onClick (cognitive 17): 2.onClick has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17 (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":"selector/src/main/java/com/luck/picture/lib/adapter/holder/BaseRecyclerMediaHolder.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d44371516eb16a256cf16395d5a0b3408b42f592c71f49c93ea49d10c0121c"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureSelectionModel.setQueryOnlyMimeType (cognitive 17): PictureSelectionModel.setQueryOnlyMimeType has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionModel.java"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"eddb67bd20887601d7bf886e045e759b76448a73bfc9cd19cc87a985d699a9e2"}},{"ruleId":"D2","level":"warning","message":{"text":"BuildRecycleItemViewParams.generateViewParams (cognitive 17): BuildRecycleItemViewParams.generateViewParams has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 2, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/magical/BuildRecycleItemViewParams.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d72811072874edec89d54b4baae11c62a4cc05d9c29fb33ce4e04f96c99bf73"}},{"ruleId":"D2","level":"warning","message":{"text":"IjkMediaMeta.parse (cognitive 17): IjkMediaMeta.parse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ijkplayer-java/src/main/java/tv/danmaku/ijk/media/player/IjkMediaMeta.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ed06b844414b8243bb9f9f3ad3e9b62469c9bbec88c56bc032f3a47bf60a75"}},{"ruleId":"D2","level":"warning","message":{"text":"BitmapUtils.computeSize (cognitive 16): BitmapUtils.computeSize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 5, boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"camerax/src/main/java/com/luck/lib/camerax/utils/BitmapUtils.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d6e6bb4ad951e6957185fff2b6b8cea597267a7a84f52900c78d25b83ffa14"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageViewHolder.\u003Cinit\u003E (cognitive 16): ImageViewHolder.\u003Cinit\u003E has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 6 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/adapter/holder/ImageViewHolder.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0026c3afa9f29c5c56bbf154d86678c075ea0218d7399d17e8145697f5c7ac9"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureCommonFragment.startCameraImageCapture (cognitive 16): PictureCommonFragment.startCameraImageCapture has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (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":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca9453f4c1eaf456526e70fcd6bfaf47a557bd71b67ddd47c49a3e35ca983782"}},{"ruleId":"D2","level":"warning","message":{"text":"PictureCommonFragment.startCameraVideoCapture (cognitive 16): PictureCommonFragment.startCameraVideoCapture has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (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":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9bb881facd7d16feaab228c1b2e3a5f13f46d4c02cf8dfc2cc28f8bbb24320"}},{"ruleId":"D2","level":"warning","message":{"text":"10.onCallback (cognitive 16): 10.onCallback has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":1457}}}],"partialFingerprints":{"codehealthFindingId/v1":"9804a96e15046396d6d2c03ddbb139acec2caac650bb3787c97a56e182f20db8"}},{"ruleId":"D2","level":"warning","message":{"text":"BitmapUtils.computeSize (cognitive 16): BitmapUtils.computeSize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 5, boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"selector/src/main/java/com/luck/picture/lib/utils/BitmapUtils.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"beacd3de08f9fd5542966f1f09b60728c10edb67197348c6d36407248f444a3a"}},{"ruleId":"D2","level":"warning","message":{"text":"BitmapUtils.rotateImage (cognitive 16): BitmapUtils.rotateImage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 1, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/utils/BitmapUtils.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0323f99ae997a6ea7901e0c20c6fe5c7422e8123900eef594cbb0bdabd1e221a"}},{"ruleId":"D2","level":"warning","message":{"text":"FileDirMap.init (cognitive 16): FileDirMap.init has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"selector/src/main/java/com/luck/picture/lib/utils/FileDirMap.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9de20d1c2db179efe30fd5782050c880d4fb041c24f4c33e81ca0c3f53383c"}},{"ruleId":"D2","level":"warning","message":{"text":"CompleteSelectView.setCompleteSelectViewStyle (cognitive 16): CompleteSelectView.setCompleteSelectViewStyle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/widget/CompleteSelectView.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c129c9dfe2e3999acdbaa9db3f4ac49b9d6b9372162c9d8e116b829d3ea42c"}},{"ruleId":"D2","level":"warning","message":{"text":"SlideSelectTouchListener.notifySelectRangeChange (cognitive 16): SlideSelectTouchListener.notifySelectRangeChange has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/widget/SlideSelectTouchListener.java"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"821fe30eaa6dde830cfde0427c609626cb2d917481c9ff8a7e61352d1bd6a178"}},{"ruleId":"D2","level":"warning","message":{"text":"BitmapLoadUtils.computeSize (cognitive 16): BitmapLoadUtils.computeSize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 5, boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"ucrop/src/main/java/com/yalantis/ucrop/util/BitmapLoadUtils.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d475b75ed6f4b3615f51e9bfa23a75b1d5c84391bb57f6ba5b85bd63ad37b50"}},{"ruleId":"D2","level":"warning","message":{"text":"UCropMultipleActivity.onCropFinish (cognitive 16): UCropMultipleActivity.onCropFinish has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 3, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/UCropMultipleActivity.java"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"9043c89e78d0d8be2a5e5daa4fd167eb8829b6e16e395e957b085c6958cafb31"}},{"ruleId":"D2","level":"warning","message":{"text":"Engine.computeSize (cognitive 16): Engine.computeSize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 5, boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"compress/src/main/java/top/zibin/luban/Engine.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21c82408257018a43f8c6c86a6161ef999a1f9d099acc34ba4b6382a4ef063c"}},{"ruleId":"D2","level":"warning","message":{"text":"EventHandler.handleMessage (cognitive 16): EventHandler.handleMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, match/switch 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ijkplayer-java/src/main/java/tv/danmaku/ijk/media/player/IjkMediaPlayer.java"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13ee670cf5bf49fd841e754222078287efa52fe6320c8f8bc01f5023445b912"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IjkMediaPlayer: TooManyMethods \u2014 117 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":"ijkplayer-java/src/main/java/tv/danmaku/ijk/media/player/IjkMediaPlayer.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"892540b55289b88bd4c298b87c98d38e267e1af922a7ab8180e53bd1e3ea6093"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PictureSelectionModel: TooManyMethods \u2014 114 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionModel.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f9aa4620a36e11516a6028ce36308bdfa88cadeffa8d841e98673356a31a17"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SelectMainStyle: TooManyMethods \u2014 107 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":"selector/src/main/java/com/luck/picture/lib/style/SelectMainStyle.java"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d281e6aa0d0ddca02d7490bd6fdc643e05a27aca4af73804d25d43cf939f71b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pictureselector/MainActivity.java: FileTooLong \u2014 1668 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: MainActivity (167-2390). 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":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8901d8810f9acab579d367a8ed38492060ad1038f5316c366cb02e86c9e6e806"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PictureCommonFragment: TooManyMethods \u2014 97 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac299dc1c263312beb70b6263841d69e04cd41baf8670cc1a5fee5af30389bc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LocalMedia: TooManyMethods \u2014 87 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":"selector/src/main/java/com/luck/picture/lib/entity/LocalMedia.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a15da9ecb2c7fa3fcaa1fe8ec31825e3724db9cf4c4bbb6c1e23cde23d35d74"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: basic/PictureCommonFragment.java: FileTooLong \u2014 1318 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: PictureCommonFragment (97-2153). 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":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbccf6121c2c163344903603d005aea5654419cd0e41825d0ffe6311a31068d3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PictureThreadUtils: 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":"selector/src/main/java/com/luck/picture/lib/thread/PictureThreadUtils.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"05adf393e57c345d738c8b0b521bf36d9fc426aae43acfe89c3f2b87edf63132"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/PictureSelectorPreviewFragment.java: FileTooLong \u2014 1105 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: PictureSelectorPreviewFragment (92-1734). 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":"selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d6a9d2fdbc2a8aaae5ec4cc97b52e0631d156b875e08697b156a43dd4f05ee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PictureSelectorPreviewFragment: TooManyMethods \u2014 64 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":"selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb56ee31919cb312e0f49996298d4b3fc0a87c0a53728c14d05cbadcaca7f53"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PictureSelectionCameraModel: TooManyMethods \u2014 53 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a0d65b4ea6254c8af737c60cdeaa3dbccbac401c1de4c473c17e633c51f8f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/PictureSelectorFragment.java: FileTooLong \u2014 868 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: PictureSelectorFragment (84-1289). 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":"selector/src/main/java/com/luck/picture/lib/PictureSelectorFragment.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a634d1460bb7dff6caa828a73cd9ebccd7cfe224be39ba77e6957eaae37dacb8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PictureSelectorFragment: TooManyMethods \u2014 52 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorFragment.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"8539a741e3b1251dc6418078202b23aa137c3c5666402de540ece0858b5cd06b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PhotoViewAttacher: TooManyMethods \u2014 52 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/photoview/PhotoViewAttacher.java"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fbfb6cca08fe406d69fdba750dc0043e392e43547b0b4df25f4eb60af7e5fcf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BottomNavBarStyle: TooManyMethods \u2014 47 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/style/BottomNavBarStyle.java"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"801a91a661582582e990f808c792fc8ebbe17da6f50dd1ba461abb94e4bf0413"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Options: TooManyMethods \u2014 47 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/UCrop.java"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c23daf40b863503e772037c018db6e917c195634480da7d29638ecbc3c80e62"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TitleBarStyle: 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":"selector/src/main/java/com/luck/picture/lib/style/TitleBarStyle.java"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"981703f5716bf85e7f09590c860febf84c0d2a0fe3f9e549b3635076e8cfe815"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: camerax/CustomCameraView.java: FileTooLong \u2014 744 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: CustomCameraView (96-1197). 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":"camerax/src/main/java/com/luck/lib/camerax/CustomCameraView.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f0e6d9bab91a426d617ec9f8e97c269ce0380b577e2cfade8d06a1d5843d78"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: player/IjkMediaPlayer.java: FileTooLong \u2014 735 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: IjkMediaPlayer (68-1287). 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":"ijkplayer-java/src/main/java/tv/danmaku/ijk/media/player/IjkMediaPlayer.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1840115c2be40920aa9f4aa8e0e6ceacff0a50d2b531a6db9dfa298ebeeea9a2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MediaPlayerProxy: TooManyMethods \u2014 44 methods. Most of these members implement player.IMediaPlayer (38 of 40 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ijkplayer-java/src/main/java/tv/danmaku/ijk/media/player/MediaPlayerProxy.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"13897066df01a994d00f2916356e472df11999d475d11bbec5d08082d2e27066"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PhotoView: TooManyMethods \u2014 44 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/photoview/PhotoView.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1f27acdeef4340de7525b0a71e187e5830582a9c08524c81339b4fa03b40f6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MainActivity: TooManyMethods \u2014 43 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfa0af5d95b9454be907bcf38582e2d52f255ac44def210084e17395a1cdf76"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CustomCameraView: TooManyMethods \u2014 39 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"camerax/src/main/java/com/luck/lib/camerax/CustomCameraView.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"7481ba987207c34ae9a493717b591bbfc7368fb84df33003f11dbd58114d5894"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AndroidMediaPlayer: TooManyMethods \u2014 38 methods. Most of these members implement player.IMediaPlayer (30 of 34 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ijkplayer-java/src/main/java/tv/danmaku/ijk/media/player/AndroidMediaPlayer.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ec7ea8d7994c283c52f47dd114858fe48333145299bfd3352974c7bcdb7765"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OverlayView: TooManyMethods \u2014 38 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/view/OverlayView.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5e2cd44c52bd29c83ff6010a777e554c0a2e4499ead28970a7c6873d7064ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: thread/PictureThreadUtils.java: FileTooLong \u2014 596 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: PictureThreadUtils (34-1387). 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":"selector/src/main/java/com/luck/picture/lib/thread/PictureThreadUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf7662ac904615887b0ed8730ce3ce92d37484564fdb012cda7f315772b1118"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PictureMimeType: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/config/PictureMimeType.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"b455dcdadbf2c6cb9027a2b281baf2df2e0857c7160531022d9e9192059ecccf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CropImageView: TooManyMethods \u2014 33 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/view/CropImageView.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"066a2a1fba46a82adfa3803e1f33df754533e82d4751814470ebefb0c050c135"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: basic/PictureSelectionModel.java: FileTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: PictureSelectionModel (70-1543). 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":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionModel.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e028c694d7be0267e127499eadbd1b04a7c36b2f05745ae36538b2cb7c26c308"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UCropActivity: TooManyMethods \u2014 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5404f25db6be20a9de9168c2e0e485e3eb75554b31b8e894440485cfe8d54d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TransformImageView: TooManyMethods \u2014 32 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/view/TransformImageView.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd5e4d671464474516f69517e684efe440c0f0fa09995851f1ecd11235ab161"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: photoview/PhotoViewAttacher.java: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: PhotoViewAttacher (25-809). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/photoview/PhotoViewAttacher.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"104a9702424be2de7afdc05ccde0455252d536a60539a43a45887c4f8bd3e5a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/immersive/RomUtils.java:36-54 | ucrop/src/main/java/com/yalantis/ucrop/statusbar/RomUtils.java:34-52 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060selector/src/main/java/com/luck/picture/lib/immersive/RomUtils.java:36\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/immersive/RomUtils.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6d161c4eed9068f267b45ddaa11d40f70266e0c13a4391bc396dc7128e2b44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/immersive/ImmersiveManager.java:88-105 | ucrop/src/main/java/com/yalantis/ucrop/statusbar/ImmersiveManager.java:89-106 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/immersive/ImmersiveManager.java:88\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/immersive/ImmersiveManager.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"3feae9387b6630c7416d1ab3488594d0c772ae20904d858677f535cc8f2c008f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/manager/PictureCacheManager.java:156-172 | selector/src/main/java/com/luck/picture/lib/manager/PictureCacheManager.java:182-198 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/manager/PictureCacheManager.java:156\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/manager/PictureCacheManager.java"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"9865ec7b5e417bf037dc4ff47aaac23bc76c202ce270c3533ec5b04b1f17521e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:528-544 | ucrop/src/main/java/com/yalantis/ucrop/UCropFragment.java:403-419 \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 \u0060ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:528\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc94fa4fcd4ba54e6747b09fdf57b27997ff1e5e9b3cb8e11ec334b751d00103"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java:142-157 | ucrop/src/main/java/com/yalantis/ucrop/statusbar/LightStatusBarUtils.java:142-157 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java:142\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"753adbac35550b47a5f7db9de0845151ff96b77399fb3695cee651028b9c7cec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/manager/PictureCacheManager.java:95-110 | selector/src/main/java/com/luck/picture/lib/manager/PictureCacheManager.java:208-223 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/manager/PictureCacheManager.java:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/manager/PictureCacheManager.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed238f1307c4fcafd68b399a5063fe6912200d03a45a81f6bf8a590449da30f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java:278-292 | ucrop/src/main/java/com/yalantis/ucrop/util/FileUtils.java:400-414 | compress/src/main/java/top/zibin/luban/LubanUtils.java:84-98 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java:278\u0060 it begins part-way through the construct above it, so those exact lines 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":"selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f7fb0759a0593e1fabbf0f84a0e092c39108f0aa019fc7897070db119d8936"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/java/com/luck/pictureselector/MainActivity.java:1433-1447 | app/src/main/java/com/luck/pictureselector/MainActivity.java:1560-1574 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/luck/pictureselector/MainActivity.java:1433\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8a3b079fc8913895f1d8a7473d3127de50195fe476be5d603d0991da2c1b8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java:40-54 | ucrop/src/main/java/com/yalantis/ucrop/statusbar/LightStatusBarUtils.java:40-54 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java:40\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d231c65faba37fb743c98343828ae0920a01b067caae292bd844dbfd3dcb7fe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/luck/pictureselector/MainActivity.java:973-986 | app/src/main/java/com/luck/pictureselector/MainActivity.java:1051-1064 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/luck/pictureselector/MainActivity.java:973\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"205e20b85d22cb8b78d9bc8014ba731aadd331f75acad7dee31457fdb2ed9799"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/immersive/RomUtils.java:127-140 | ucrop/src/main/java/com/yalantis/ucrop/statusbar/RomUtils.java:125-138 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/immersive/RomUtils.java:127\u0060 it begins part-way through the construct above it, so those exact lines 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":"selector/src/main/java/com/luck/picture/lib/immersive/RomUtils.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"083667107ecca3cffce38ad7985cb95f250c40a10131d59a78c0cc58969890a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java:281-296 | selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:659-672 \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 \u0060selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java:281\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1398a305713b319e77093f2b56129a88e8a661e5dd7ece9330125e712de0764"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:572-585 | ucrop/src/main/java/com/yalantis/ucrop/UCropFragment.java:447-460 \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 \u0060ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:572\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead12af63b582ca916b9df8681848ed54c951a5b3c807ff85b7bf3751d3f6f8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java:184-196 | selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:241-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 \u0060selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java:184\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed760d3216e08a08d02400aa03a470996ad1cfc50addffa43589acc7b2069e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/utils/PSEglUtils.java:60-72 | ucrop/src/main/java/com/yalantis/ucrop/util/EglUtils.java:58-70 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060selector/src/main/java/com/luck/picture/lib/utils/PSEglUtils.java:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/utils/PSEglUtils.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7641d322fddf8be19fd8fa9cec46ae7c585b6cb5f6e63ecd1b6b84ab9e37ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java:244-256 | compress/src/main/java/top/zibin/luban/LubanUtils.java:50-62 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java:244\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aea86d45bca62aca354d3910ec1acb24bbbfa1a50020f87858a08dc8bfd020e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): camerax/src/main/java/com/luck/lib/camerax/utils/FileUtils.java:222-233 | selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java:342-353 | ucrop/src/main/java/com/yalantis/ucrop/util/FileUtils.java:500-511 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060camerax/src/main/java/com/luck/lib/camerax/utils/FileUtils.java:222\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"camerax/src/main/java/com/luck/lib/camerax/utils/FileUtils.java"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d0a247ee80c2167783a40f180738b8d9bf2fab8e806f685d90c0948a13029d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java:658-669 | selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java:717-728 | selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionModel.java:1514-1525 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"802bec67625c38b3bb94fa40b3cba1f333a825b31c80d5543a551c1284ecbcf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/luck/pictureselector/MainActivity.java:1337-1348 | app/src/main/java/com/luck/pictureselector/PictureSelectorEngineImp.java:135-146 \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 \u0060app/src/main/java/com/luck/pictureselector/MainActivity.java:1337\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"16225ecd648e68a3ce4303800f34984e61ea3af6aaa1a05a34f244aaa99941a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): camerax/src/main/java/com/luck/lib/camerax/utils/FileUtils.java:86-97 | selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java:100-111 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060camerax/src/main/java/com/luck/lib/camerax/utils/FileUtils.java:86\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"camerax/src/main/java/com/luck/lib/camerax/utils/FileUtils.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"248c39a63696b0be208928ddbae92d8051a5b8b4729d71196bc316c462874783"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:478-489 | selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:612-623 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:478\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a752d665385c097b2f98fbb49567a9d9c5657256b8d907eb9f4756cf1a201c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java:695-706 | selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionModel.java:1493-1504 \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":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d05f6fe9872bd5b0b85044fcb67593ea815312cad752b036757c57ced06a233"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java:809-820 | selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionSystemModel.java:483-494 \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":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"2386a47ef0452a449c88c750f94ff83d11b1dbfb9d05c92ab109821414bd262e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java:177-188 | ucrop/src/main/java/com/yalantis/ucrop/statusbar/LightStatusBarUtils.java:177-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 \u0060selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java:177\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1760b10aa08dfca7b202d2cf63ce79e51cda551daff410e758d4d9ebf7adca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java:214-225 | selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:570-582 \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 \u0060selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java:214\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2ee543e85cf7cf366c48398b4dbd47a790fc7b8f506768f8d8a7b572c01fde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java:403-414 | selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java:415-426 \u2014 both copies are in the same file, so extract the block 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":"selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c3c74bcc4e3d514f1e5c4985c9e7983f8c4936506451df3fd1b6bb1606b963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java:168-179 | selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java:262-273 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java:168\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5cf5c864bb206778a3df2a07fedc20557fe2e4aff37044c5a57be93b90c6046"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): ucrop/src/main/java/com/yalantis/ucrop/task/BitmapLoadTask.java:101-112 | ucrop/src/main/java/com/yalantis/ucrop/util/BitmapLoadUtils.java:121-132 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ucrop/src/main/java/com/yalantis/ucrop/task/BitmapLoadTask.java:101\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/task/BitmapLoadTask.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3048cbd68820a39a897b2de678952516dcd9a6917d17609a737d7396f0462ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:499-510 | ucrop/src/main/java/com/yalantis/ucrop/UCropFragment.java:374-385 \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 \u0060ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:499\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d05c9b9a92f065b1a26119b6433a5357c9383f7f89b4489f8de420dfba8b67e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java:195-205 | ucrop/src/main/java/com/yalantis/ucrop/util/FileUtils.java:315-325 | compress/src/main/java/top/zibin/luban/LubanUtils.java:122-132 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java:195\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"b927f3acab34a9c1f721759de6ebcdb6ac6b3b7178c32e7f6653e559f467be7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/luck/pictureselector/MainActivity.java:717-727 | selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java:964-974 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060app/src/main/java/com/luck/pictureselector/MainActivity.java:717\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b0bef30e53900b0ab40f0cd1740d6eb92b54ce9d9458a1c9399234d512bff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/adapter/holder/AudioViewHolder.java:36-46 | selector/src/main/java/com/luck/picture/lib/adapter/holder/VideoViewHolder.java:36-46 \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":"selector/src/main/java/com/luck/picture/lib/adapter/holder/AudioViewHolder.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6264e96d1a856d052354747580d0ac16eb1c750e47be04d54f5defe2f150353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:508-520 | selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:598-608 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:508\u0060 it begins part-way through the construct above it, so those exact 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":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"024e15464ac2f5bf1909d3d617ae4d7b98af252217e28d728e891d28006e2b9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:535-546 | selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:644-654 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:535\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"126afa5100e0be65373cf72254a7e20a5cab97d98dc344be73c6cd90bbe03f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:1507-1517 | selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:1540-1550 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:1507\u0060 it begins part-way through the construct above it, so those exact lines 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":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00cb2f20b7e78fadbbf5abae09c266ec3bf536262ed7bfec25bc24a2b14b881"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java:90-100 | ucrop/src/main/java/com/yalantis/ucrop/statusbar/LightStatusBarUtils.java:90-100 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java:90\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dbb1a4f748d0cc207721060a119e37eb7230785b3b701a75401b4f5e573a82d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/immersive/RomUtils.java:70-80 | ucrop/src/main/java/com/yalantis/ucrop/statusbar/RomUtils.java:68-78 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/immersive/RomUtils.java:70\u0060 it begins part-way through the construct above it, so those exact lines 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":"selector/src/main/java/com/luck/picture/lib/immersive/RomUtils.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d44e8f0eac80f405142353e758e77109cf277ffc3adaf798c3d54b3f557d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java:350-360 | selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:726-736 \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 \u0060selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java:350\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"193f1c01ade1960668d78c3dfb1fb323cad5ed12e1fdd3ae2e5699e8b2809e1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/utils/MediaUtils.java:298-308 | selector/src/main/java/com/luck/picture/lib/utils/MediaUtils.java:330-340 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/utils/MediaUtils.java:298\u0060 it begins part-way through the construct above it, so those exact lines 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":"selector/src/main/java/com/luck/picture/lib/utils/MediaUtils.java"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b199b8c61e3ea48ab76047cf36883215312f11a302bc2eedc587d9794dfbf82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/utils/PSEglUtils.java:108-118 | ucrop/src/main/java/com/yalantis/ucrop/util/EglUtils.java:106-116 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/utils/PSEglUtils.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f222a6c8f40994c925620e4bc731566674ad9d52741fd6fdf3edcf33e179996b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/utils/ValueOf.java:93-103 | ucrop/src/main/java/com/yalantis/ucrop/statusbar/RomUtils.java:204-214 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060selector/src/main/java/com/luck/picture/lib/utils/ValueOf.java:93\u0060 it begins part-way through the construct above it, so those exact lines 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":"selector/src/main/java/com/luck/picture/lib/utils/ValueOf.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1886ef439abbfdcca875b8e65d061548cc0c2c70cf83236a0bfdd10310f0be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java:209-219 | selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java:308-318 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java:209\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b4ab2fbb0a3db55d6e7f302973f95ca02a26f5d247892117920055139a80d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): camerax/src/main/java/com/luck/lib/camerax/utils/BitmapUtils.java:36-45 | selector/src/main/java/com/luck/picture/lib/utils/BitmapUtils.java:204-213 | ucrop/src/main/java/com/yalantis/ucrop/util/BitmapLoadUtils.java:89-98 | compress/src/main/java/top/zibin/luban/Engine.java:45-54 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060camerax/src/main/java/com/luck/lib/camerax/utils/BitmapUtils.java:36\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"camerax/src/main/java/com/luck/lib/camerax/utils/BitmapUtils.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7421dd5fbdb9d970d01e212c273a54026e7bda1063da23dc9dcebc741e07e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/src/main/java/com/luck/pictureselector/MainActivity.java:1420-1429 | app/src/main/java/com/luck/pictureselector/MainActivity.java:1547-1556 | app/src/main/java/com/luck/pictureselector/MainActivity.java:1605-1614 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/luck/pictureselector/MainActivity.java:1420\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":1420}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda6040855ace2f6335771f9a37f4ec4b8551e82193bdd84358b4729cf2534b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java:783-792 | selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionModel.java:1464-1473 | selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionSystemModel.java:459-468 \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 \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java:783\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d029549e8fbc98065bff3704423d9e6b0519141fa5477e24776d64caec0a221"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/luck/pictureselector/ImageLoaderUtils.java:17-26 | selector/src/main/java/com/luck/picture/lib/utils/ActivityCompatHelper.java:44-53 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/luck/pictureselector/ImageLoaderUtils.java:17\u0060 it begins part-way through the construct above it, so those exact lines 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":"app/src/main/java/com/luck/pictureselector/ImageLoaderUtils.java"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1932bf0574518a93dee631168d07a0627c65262e524954fb7bfee34b04d203"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/luck/pictureselector/MainActivity.java:656-665 | selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java:932-941 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060app/src/main/java/com/luck/pictureselector/MainActivity.java:656\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba095b34120026c67442d49964e5bb194b7e0b480986f0d92172155bee7cad6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/luck/pictureselector/PicassoEngine.java:78-87 | app/src/main/java/com/luck/pictureselector/PicassoEngine.java:126-135 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/luck/pictureselector/PicassoEngine.java:78\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/PicassoEngine.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"45aa4014e5f7ae206e9584295af762d57aef6b6eaf7b0a4aba93bd396c70b7c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): camerax/src/main/java/com/luck/lib/camerax/utils/FileUtils.java:146-155 | selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java:448-457 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060camerax/src/main/java/com/luck/lib/camerax/utils/FileUtils.java:146\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"camerax/src/main/java/com/luck/lib/camerax/utils/FileUtils.java"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"daafcba42d1504b7f691d01a52105286daeda763fce8639470b6520e41ea7202"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:683-692 | selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:722-731 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:683\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"1301f5aba2314148a6c3a8ab5c817c8e10adf6ea9a060f5b81faed1f32968f9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:1311-1320 | selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:1341-1350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:1311\u0060 it begins part-way through the construct above it, so those exact lines 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":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":1311}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a934bf694e85295752973c27cc72a329076460d264d8572924726bf876ffc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionQueryModel.java:218-227 | selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionQueryModel.java:243-252 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionQueryModel.java"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"6337a4f6fb3dcec2fb63261e4d8c012d28834d06aa25557677579a75c8a82c73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/utils/MediaUtils.java:171-180 | selector/src/main/java/com/luck/picture/lib/utils/MediaUtils.java:202-211 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/utils/MediaUtils.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":"selector/src/main/java/com/luck/picture/lib/utils/MediaUtils.java"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"15151b0e5781b5789a568bfb491e88acc053a204e2339a1ce5bbf8eb1cdda3f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/utils/MediaUtils.java:275-284 | selector/src/main/java/com/luck/picture/lib/utils/MediaUtils.java:319-328 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/utils/MediaUtils.java:275\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/utils/MediaUtils.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b271d3c5ebaa9346e9ca2e6ab2890406e34e43889515bbf63097fc978b8067"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java:1558-1567 | selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java:1600-1609 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java:1558\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"7535845dd4c2ee39910cadbdbe5c82b5cd24edc9fd16871ab207f348d9a08efa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java:222-231 | selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java:327-336 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java:222\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"20de9ef960b3aabf7b6af19fae3c81312c113200df289f3de80a1212535c54e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ucrop/src/main/java/com/yalantis/ucrop/util/ImageHeaderParser.java:428-437 | ucrop/src/main/java/com/yalantis/ucrop/util/ImageHeaderParser.java:471-480 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060ucrop/src/main/java/com/yalantis/ucrop/util/ImageHeaderParser.java:428\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/util/ImageHeaderParser.java"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"bedb3c51d3fbe92bde7a9fbd7cceb97afa17f50f30c311bc7a7a4b7de8c23afe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:154-163 | ucrop/src/main/java/com/yalantis/ucrop/UCropMultipleActivity.java:452-461 \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 \u0060ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:154\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d4dfc5628d63b44d381b0870f4a8357effd6366969b24aa317f62aa4088f78c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:173-182 | ucrop/src/main/java/com/yalantis/ucrop/UCropMultipleActivity.java:471-480 \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 \u0060ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:173\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d63b58a55b25449e9ed3f283808a878cce706bc7d179031ff65c2c0a951addc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:370-379 | ucrop/src/main/java/com/yalantis/ucrop/UCropMultipleActivity.java:314-323 \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":"ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3a6abcb9ef20007b4ea86eeb7e8adefebea27c34a9d2a079a4558010f65917"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:659-668 | ucrop/src/main/java/com/yalantis/ucrop/UCropFragment.java:534-543 \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 \u0060ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:659\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"b031a1efa03de245cc5845bfaac50a4856dd96694ba04c0e426fe35d7f078f46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/luck/pictureselector/IjkPlayerEngine.java:98-107 | selector/src/main/java/com/luck/picture/lib/engine/MediaPlayerEngine.java:97-105 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/luck/pictureselector/IjkPlayerEngine.java:98\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/IjkPlayerEngine.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a94e80661710432d37ae00256c9279c742556b70aa4eb873e88703157e5a71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/luck/pictureselector/MainActivity.java:1818-1826 | app/src/main/java/com/luck/pictureselector/MainActivity.java:1836-1844 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/luck/pictureselector/MainActivity.java:1818\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":1818}}}],"partialFingerprints":{"codehealthFindingId/v1":"794bad43a4d42164d2b23a67ed93b9a71f2d35584cb2e2bff88af79ecbb10c7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): camerax/src/main/java/com/luck/lib/camerax/permissions/PermissionChecker.java:70-78 | selector/src/main/java/com/luck/picture/lib/permissions/PermissionChecker.java:72-80 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060camerax/src/main/java/com/luck/lib/camerax/permissions/PermissionChecker.java:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"camerax/src/main/java/com/luck/lib/camerax/permissions/PermissionChecker.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49d09971bfd52073a5730fe364f8d9259f940f60dae9d45d38fc49cca8a2c60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:1298-1306 | selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:1328-1337 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:1298\u0060 it begins part-way through the construct above it, so those exact lines 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":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":1298}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0243ab75e6b0b40d3ce7fac8d67bf333f7f6b6fcb20a5749967c5979ba8c93b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:1571-1579 | selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:1584-1592 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:1571\u0060 it begins part-way through the construct above it, so those exact lines 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":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":1571}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e776b9ea352f2c7add018024f9d83db5d64748eb98fe6274c3c2f932af487a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java:737-745 | selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionModel.java:1534-1542 \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 \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java:737\u0060 it begins part-way through the construct above it, so those exact lines 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":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c16d5faf210ec714c3e19c03495b4a30167b8e7954a3cc5933829ba24f3572e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionModel.java:1437-1445 | selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionModel.java:1469-1477 \u2014 both copies are in the same file, so extract the block 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":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionModel.java"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d3a287deb441661bd86d0e64b058ea2e70a0dc2719e192df8b056e9e8186dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionSystemModel.java:370-378 | selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionSystemModel.java:411-419 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionSystemModel.java:370\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionSystemModel.java"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa67dd801a51ed79aacee55666677a219bca1b09567c8fd4b36d8b3e90fa5e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/decoration/GridSpacingItemDecoration.java:33-41 | ucrop/src/main/java/com/yalantis/ucrop/decoration/GridSpacingItemDecoration.java:31-39 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060selector/src/main/java/com/luck/picture/lib/decoration/GridSpacingItemDecoration.java:33\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/decoration/GridSpacingItemDecoration.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5414cf4422f2ad9ee77b24cf4427489b06f228ae9ec5f7a38f8f3db926458c0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java:232-240 | selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:589-597 \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 \u0060selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java:232\u0060 it does not close everything it opens, so those exact lines 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":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"5364c9c12f1dcbca17e7d1f062bf6b1371258a54afd94c20986f1160bacb9294"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/widget/BottomNavBar.java:100-108 | selector/src/main/java/com/luck/picture/lib/widget/BottomNavBar.java:160-170 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/widget/BottomNavBar.java:100\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/widget/BottomNavBar.java"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"64537f5b742a477b12ebaa34459fdcad86f0cbce97a8721744abac7673d2c7e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/PictureSelectorFragment.java:324-332 | selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java:572-580 \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 \u0060selector/src/main/java/com/luck/picture/lib/PictureSelectorFragment.java:324\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorFragment.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff347e70704e2261b6d06f012f20a155ce8309274204f7a1500e2f821b52d2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java:183-191 | selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java:283-291 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java:183\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fbc2c7e311bd56e2b5120f864188b6f11d6a378e4dea57d4469887f179addf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): ucrop/src/main/java/com/yalantis/ucrop/task/BitmapLoadTask.java:118-126 | ucrop/src/main/java/com/yalantis/ucrop/util/BitmapLoadUtils.java:135-143 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060ucrop/src/main/java/com/yalantis/ucrop/task/BitmapLoadTask.java:118\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/task/BitmapLoadTask.java"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ed1133a7352e63ca73028c9cd702b097f9e9e861d0aa71606bce95754f4927"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/luck/pictureselector/adapter/GridImageAdapter.java:158-166 | app/src/main/java/com/luck/pictureselector/OnlyQueryDataActivity.java:113-120 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060app/src/main/java/com/luck/pictureselector/adapter/GridImageAdapter.java:158\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/adapter/GridImageAdapter.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd64f76c51db17c965d31b5775560914b7595844b934c0ddc52984e06bb8d56d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/luck/pictureselector/InjectFragmentActivity.java:86-93 | app/src/main/java/com/luck/pictureselector/MainActivity.java:2276-2283 \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 \u0060app/src/main/java/com/luck/pictureselector/InjectFragmentActivity.java:86\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/InjectFragmentActivity.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5bcc0696f5bc2e8f3447f8ec413d2f404f30c7cbd2a75d07d05e8f4cb56df6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/luck/pictureselector/PicassoEngine.java:89-96 | app/src/main/java/com/luck/pictureselector/PicassoEngine.java:136-143 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/luck/pictureselector/PicassoEngine.java:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/PicassoEngine.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b952096c9cb2bf4415ede16a74db7c5b0e945aafc76f38778096ea94fe882967"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): camerax/src/main/java/com/luck/lib/camerax/utils/FileUtils.java:71-78 | selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java:85-92 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060camerax/src/main/java/com/luck/lib/camerax/utils/FileUtils.java:71\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"camerax/src/main/java/com/luck/lib/camerax/utils/FileUtils.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0039162a40cdc6de087a6ce500c6fa6ddee1accff1f7b1b0ae513c6150d9234"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java:756-763 | selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionSystemModel.java:434-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 \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java:756\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionCameraModel.java"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ce3230ff423897b758d81063c1e449bcc02f9496eb2037c7e0e3bb1cb210a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionPreviewModel.java:330-337 | selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionPreviewModel.java:374-381 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionPreviewModel.java:330\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionPreviewModel.java"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e9985a80f4d289b495afe91d65fd5ad1080bf04ee7987f5ec8952a5e336672"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/immersive/ImmersiveManager.java:176-183 | ucrop/src/main/java/com/yalantis/ucrop/statusbar/ImmersiveManager.java:122-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060selector/src/main/java/com/luck/picture/lib/immersive/ImmersiveManager.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":"selector/src/main/java/com/luck/picture/lib/immersive/ImmersiveManager.java"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d53fb009b2108bf1961ea8ed5fd61a5d39330d28c7e3fc0b0b37f71d3e1a49f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java:59-66 | ucrop/src/main/java/com/yalantis/ucrop/statusbar/LightStatusBarUtils.java:59-66 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java:59\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/immersive/LightStatusBarUtils.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e566782db19474beed6999eb54050160634551e92efe88ab65246fe972a022"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:298-305 | ucrop/src/main/java/com/yalantis/ucrop/UCropFragment.java:274-281 \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 \u0060ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:298\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c78fcec6425d61c40aac32a74d19d3c881f4d25349e712c23f34ecdb38f2010"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/luck/pictureselector/MainActivity.java:1697-1703 | app/src/main/java/com/luck/pictureselector/MainActivity.java:1767-1774 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/luck/pictureselector/MainActivity.java:1697\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note 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":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":1697}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a80a3977fedce564c36c3ef3b4e7db423fca75c9db8bdfc142e92bb19efdf29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): camerax/src/main/java/com/luck/lib/camerax/utils/CameraUtils.java:42-48 | selector/src/main/java/com/luck/picture/lib/utils/MediaStoreUtils.java:122-128 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060camerax/src/main/java/com/luck/lib/camerax/utils/CameraUtils.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. 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":"camerax/src/main/java/com/luck/lib/camerax/utils/CameraUtils.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4840f128e2f317cdc1b3b9b7ac8d2f11573132720387a977fa2a77a68eeadc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): camerax/src/main/java/com/luck/lib/camerax/utils/CameraUtils.java:73-79 | selector/src/main/java/com/luck/picture/lib/utils/MediaStoreUtils.java:178-184 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060camerax/src/main/java/com/luck/lib/camerax/utils/CameraUtils.java:73\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"camerax/src/main/java/com/luck/lib/camerax/utils/CameraUtils.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3281925d44244f5b57a86563fa5cd40f405e859428f35d9f0578e7d80a2d01a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureSelectorSupporterActivity.java:46-52 | selector/src/main/java/com/luck/picture/lib/basic/PictureSelectorTransparentActivity.java:66-72 \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 \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureSelectorSupporterActivity.java:46\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectorSupporterActivity.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"37deffe78d5e6f50b5abe87ce7f3bc81353a8243cbfd2902b5cb21b84b63ec08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/loader/IBridgeMediaLoader.java:204-210 | selector/src/main/java/com/luck/picture/lib/loader/IBridgeMediaLoader.java:216-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/loader/IBridgeMediaLoader.java:204\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/IBridgeMediaLoader.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"5937dc1cb9cf739691b035578e40000b76653e5ff929592850d252834a6ff24c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java:232-238 | compress/src/main/java/top/zibin/luban/LubanUtils.java:38-44 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java:232\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/utils/PictureFileUtils.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dcea850f8c00b4fb06b1ff1f70799c808d0a5c02822ce70bbf36d93583407b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/widget/CompleteSelectView.java:136-142 | selector/src/main/java/com/luck/picture/lib/widget/CompleteSelectView.java:209-215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/widget/CompleteSelectView.java:136\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/widget/CompleteSelectView.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"824c05a8687e2383e068a3526298ee279fa1e5dbcda2fe10c1bbfacb1c548a26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/PictureSelectorFragment.java:291-297 | selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java:661-667 \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 \u0060selector/src/main/java/com/luck/picture/lib/PictureSelectorFragment.java:291\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorFragment.java"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb47f6863cd29f5e976f8112aa0eeae52a6a24c7b6a9bcfc90e4810f5d14d414"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java:271-277 | selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java:316-322 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java:271\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorSystemFragment.java"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc0b8f479c913922b502cce1881a92fc36d4d85bdc5f9262f84ab2778975b05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:476-482 | ucrop/src/main/java/com/yalantis/ucrop/UCropFragment.java:351-357 \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 \u0060ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:476\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96123ac7f6fbd37fa6cf6c31b35a5f2b68bc9bf2948864ac58f0273637c314a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:726-732 | ucrop/src/main/java/com/yalantis/ucrop/UCropFragment.java:598-604 \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 \u0060ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java:726\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ucrop/src/main/java/com/yalantis/ucrop/UCropActivity.java"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c55fd4288d87f1fd894db69b8d9c220bda1829081c286731e167149108b6a1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): app/src/main/java/com/luck/pictureselector/CustomLoadingDialog.java:26-31 | selector/src/main/java/com/luck/picture/lib/dialog/PictureCommonDialog.java:42-47 | selector/src/main/java/com/luck/picture/lib/dialog/PictureLoadingDialog.java:28-33 | selector/src/main/java/com/luck/picture/lib/dialog/RemindDialog.java:58-63 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/CustomLoadingDialog.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"2597634df898d9884f91cd52ea3e45ec4c00bfad9b9ee0a363fe65afcb68ad80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/java/com/luck/pictureselector/MainActivity.java:337-342 | app/src/main/java/com/luck/pictureselector/MainActivity.java:346-351 | app/src/main/java/com/luck/pictureselector/MainActivity.java:356-361 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"067d451c72fd51114ae83a7f6fe1a9a1e4034941977e92b9262968c10ca66215"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): selector/src/main/java/com/luck/picture/lib/widget/CompleteSelectView.java:76-81 | selector/src/main/java/com/luck/picture/lib/widget/CompleteSelectView.java:132-137 | selector/src/main/java/com/luck/picture/lib/widget/CompleteSelectView.java:205-210 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/widget/CompleteSelectView.java:76\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/widget/CompleteSelectView.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f64e861c2471ce508886351f1766f8318b5c0ad3effc97a4798f4aa3e7bfc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/adapter/holder/PreviewImageHolder.java:28-33 | selector/src/main/java/com/luck/picture/lib/adapter/holder/PreviewVideoHolder.java:67-72 \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 \u0060selector/src/main/java/com/luck/picture/lib/adapter/holder/PreviewImageHolder.java:28\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/adapter/holder/PreviewImageHolder.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0635b43f1c801f67fc53b80be00f4652fc71297fb72712a6b6076f14cfc97a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java:148-153 | selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:377-382 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java:148\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d216f29a8206b9c54b646fa32c67af60b9dff96424b86a9a861f3d530bb643"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:63-69 | selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:491-496 \u2014 both copies are in the same file, so extract the block 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":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed3f057f14bc3d95b99d210147eff490f9660c4b4b35b93ccf98a42eae9fcd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:519-524 | selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:529-534 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:519\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce85e5d266433302ebe7867781427d3b072cdb26820349e5cbd55015c5e220a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:778-782 | selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:791-795 | selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:804-808 | selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:1972-1976 | selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java:988-992 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:778\u0060 it does not close everything it opens, so those exact 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":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea10341468904b77d673393ed61abe6feabf149c655d8e8a1a5d71af7dc7d17e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): selector/src/main/java/com/luck/picture/lib/loader/IBridgeMediaLoader.java:174-178 | selector/src/main/java/com/luck/picture/lib/loader/IBridgeMediaLoader.java:202-206 | selector/src/main/java/com/luck/picture/lib/loader/IBridgeMediaLoader.java:214-218 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/loader/IBridgeMediaLoader.java:174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/loader/IBridgeMediaLoader.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6f59507fdec8266200c173d9bed94f33cde32a8c5d89589257953e8fc7c368"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:88-93 | selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:107-111 | selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:123-127 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:88\u0060 it does not close everything it opens, so those exact lines 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":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc80d384d37d9e93667e45e1ed6abfcd280ec94e6aefa1eababcc80dd794082"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/luck/pictureselector/MainActivity.java:2097-2101 | app/src/main/java/com/luck/pictureselector/MainActivity.java:2123-2128 \u2014 both copies are in the same file, so extract the block 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":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":2097}}}],"partialFingerprints":{"codehealthFindingId/v1":"688b476b5065c98e63678684304ffdaeff11bccb74ec94874732c66172f96d9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/adapter/holder/BaseRecyclerMediaHolder.java:313-317 | selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java:1623-1627 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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 \u0060selector/src/main/java/com/luck/picture/lib/adapter/holder/BaseRecyclerMediaHolder.java:313\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/adapter/holder/BaseRecyclerMediaHolder.java"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8ff4e4546845e158f3e40ad34dde970b622b5c59cadae3e572a0d49e0fbc77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java:1081-1085 | selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java:1668-1672 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or 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":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab20f8f5ae3ae513471a816c8043f74f002dd1796fce917433eca22bf802053"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java:258-262 | selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:626-630 \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":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26359aa7baf9c2a7d412fbac1dd836b654bb89c13181310aca2df216d223399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java:266-270 | selector/src/main/java/com/luck/picture/lib/loader/LocalMediaPageLoader.java:634-638 \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":"selector/src/main/java/com/luck/picture/lib/loader/LocalMediaLoader.java"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"29443f7d5378ceac89d9996455e00e87cecd8b98194022a29eb7b5db3ff36bb3"}},{"ruleId":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: All 140 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains \u2014 nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"569d55ea5cb0330f13c125b289d07e5abdfcceac947a2c2645277937942e7d5f"}},{"ruleId":"D19","level":"note","message":{"text":"The Contents outline lists Usage as a section, but the visible text only shows Download and Permission; no Usage content appears in the clipped document.: Add a short Usage section covering how to add PictureSelector to an Android project (Kotlin/Java) and call its main API."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"700ac1deaad0a761bee8f97c77f594a6650f50485fde440f75fb090a21783868"}},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b8924e3d8800fd9f11043fa805edef4bbbd8e6ad36bb13d45c37dbcc2f290139"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 146 of 146 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 146 separate risks. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd097c07163390bdf7687e09da73ecf28c6bbe1e6b05b2e49d348b8fc2563b68"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/basic/PictureCommonFragment.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e29bd5b7ac75b582478cead7b751fa087c6d38a823aec25af5fbfe6f7c476f"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f22cd2d8ba2aa8c3068934cf6fa3fd4e2729b8cdd4f8eab7a87f92055407722"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: MainActivity.java \u2194 PictureSelectionPreviewModel.java: \u0060app/src/main/java/com/luck/pictureselector/MainActivity.java\u0060 (context main) and \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionPreviewModel.java\u0060 (context selector) sit in DIFFERENT parts of the tree yet change together 62% of the time (13 of the 21 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13e127af43af4366d83b45256ca69c94d3c00069823e96c3f6586515f515da7"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: MainActivity.java \u2194 UCropMultipleActivity.java: \u0060app/src/main/java/com/luck/pictureselector/MainActivity.java\u0060 (context main) and \u0060ucrop/src/main/java/com/yalantis/ucrop/UCropMultipleActivity.java\u0060 (context ucrop) sit in DIFFERENT parts of the tree yet change together 60% of the time (9 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58eb36cc10e369ed84bb143877657f57618113c42b64c0ee57cf96f501454523"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: MainActivity.java \u2194 BaseRecyclerMediaHolder.java: \u0060app/src/main/java/com/luck/pictureselector/MainActivity.java\u0060 (context main) and \u0060selector/src/main/java/com/luck/picture/lib/adapter/holder/BaseRecyclerMediaHolder.java\u0060 (context selector) sit in DIFFERENT parts of the tree yet change together 50% of the time (9 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8de047c2001eba79107fe1888246bf330d0fe1c88d9b84338ff7caa740abbb"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: PictureSelectorEngineImp.java \u2194 PictureSelectorPreviewFragment.java: \u0060app/src/main/java/com/luck/pictureselector/PictureSelectorEngineImp.java\u0060 (context main) and \u0060selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java\u0060 (context selector) sit in DIFFERENT parts of the tree yet 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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/PictureSelectorEngineImp.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25aae7af3e02976422a8b7c84a3d1e01a93844a777ccb722db61d569f590f60"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: InjectFragmentActivity.java \u2194 PictureSelectionModel.java: \u0060app/src/main/java/com/luck/pictureselector/InjectFragmentActivity.java\u0060 (context main) and \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionModel.java\u0060 (context selector) sit in DIFFERENT parts of the tree yet change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/InjectFragmentActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"518a7528d7a12067215560afff8d60a2f55dbd8d62687226445dfac63d0dc3b5"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MainActivity.java \u2194 PictureSelectorEngineImp.java: \u0060app/src/main/java/com/luck/pictureselector/MainActivity.java\u0060 and \u0060app/src/main/java/com/luck/pictureselector/PictureSelectorEngineImp.java\u0060 change together 75% of the time (9 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/MainActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81a91d6825b8e378f78bcf4cfb77673a23f2d7b09654da570982cde318f8155"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PictureSelectionModel.java \u2194 PictureSelectionPreviewModel.java: \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionModel.java\u0060 and \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionPreviewModel.java\u0060 change together 67% of the time (14 of the 21 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":"selector/src/main/java/com/luck/picture/lib/basic/PictureSelectionModel.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4827ec1784318a03969a4884d137c64b7b4f701c054eb8f0ac6ca05f1db4c0"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: App.java \u2194 MainActivity.java: \u0060app/src/main/java/com/luck/pictureselector/App.java\u0060 and \u0060app/src/main/java/com/luck/pictureselector/MainActivity.java\u0060 change together 58% of the time (11 of the 19 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/luck/pictureselector/App.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5186b804047ac42e05defa5e4ee85c4e861d2ec0d7f42fda74d05893cfe9591d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PictureImageGridAdapter.java \u2194 PicturePreviewAdapter.java: \u0060selector/src/main/java/com/luck/picture/lib/adapter/PictureImageGridAdapter.java\u0060 and \u0060selector/src/main/java/com/luck/picture/lib/adapter/PicturePreviewAdapter.java\u0060 change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"selector/src/main/java/com/luck/picture/lib/adapter/PictureImageGridAdapter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b78b1c8f96200d04b406c49be0b1f510eedd132714fd5d78e6dcb172fe180a7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PictureSelectorPreviewFragment.java \u2194 PictureSelectorSupporterActivity.java: \u0060selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java\u0060 and \u0060selector/src/main/java/com/luck/picture/lib/basic/PictureSelectorSupporterActivity.java\u0060 change together 50% of the time (12 of the 24 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) 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":"selector/src/main/java/com/luck/picture/lib/PictureSelectorPreviewFragment.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07195992847d922202d5549c26a2642fa21dbf04a0ee1cd6f2d58f1b84247ee2"}}],"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-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-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"CWE-328","shortDescription":{"text":"CWE-328"},"helpUri":"https://cwe.mitre.org/data/definitions/328.html"},{"id":"CWE-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":1,"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."]}]}