{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"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":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"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"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"RecurrenceProcessor.expand (cyclomatic 75): RecurrenceProcessor.expand has cyclomatic complexity 75 (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":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce0bd2739ec9937e07d42c00228ffc091fd820a53562a9d71fc70f248d8b705"}},{"ruleId":"D1","level":"warning","message":{"text":"DayView.computeNeighbors (cyclomatic 65): DayView.computeNeighbors has cyclomatic complexity 65 (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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":3151}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba54fc7ba0f55c725cfb5e6d02b894c91dd50fc724a15368adc29a992119832"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryHandler.onQueryComplete (cyclomatic 60): QueryHandler.onQueryComplete has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5a28698765ee97e773e988f2a228883bf5e2c4bdf040b8883923ce37d57173"}},{"ruleId":"D1","level":"warning","message":{"text":"CalendarController.sendEvent (cyclomatic 60): CalendarController.sendEvent has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarController.java"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"4160f544e75a365e04b82282d05f5f36da273c1860ea5b48c1959dbdf8cc40a8"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewPager.populate (cyclomatic 59): ViewPager.populate has cyclomatic complexity 59 (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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22edb681e3e335d29fd83908ca3541bf1269206a54963d77d4f55e171aaaaf4"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewPager.populate (cyclomatic 59): ViewPager.populate has cyclomatic complexity 59 (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":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec7e79f0d915f6c03a6c33706592a65352c24602dd53099bba77e605b513eb8"}},{"ruleId":"D1","level":"warning","message":{"text":"CalendarEventModel.checkOriginalModelFields (cyclomatic 58): CalendarEventModel.checkOriginalModelFields has cyclomatic complexity 58 (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":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0cd860b24e0275814c1af260de0a7c7066a816819eab94ce1ad0a35cf630df"}},{"ruleId":"D1","level":"warning","message":{"text":"EditEventHelper.saveEvent (cyclomatic 54): EditEventHelper.saveEvent has cyclomatic complexity 54 (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":"apps/Calendar/src/com/android/calendar/event/EditEventHelper.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b47f4b1635a460ad3e3a5ea5b811e3c55e356b2a87727dbbc5bae25a7087f9f"}},{"ruleId":"D1","level":"warning","message":{"text":"AlertService.processQuery (cyclomatic 43): AlertService.processQuery has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37287b7a23c89058098ba713b112b3d0afd3a62ad0da0053bab967dc651a404"}},{"ruleId":"D1","level":"warning","message":{"text":"AllInOneActivity.setMainPane (cyclomatic 41): AllInOneActivity.setMainPane has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac02210d41bbeccfd119b3224847d83e7e74f647195291036de7c3e877d21c6"}},{"ruleId":"D1","level":"warning","message":{"text":"Utils.createDNAStrands (cyclomatic 39): Utils.createDNAStrands has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/Utils.java"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a923499313b42791019d4f4ca53e7a0111e99c075378f3c8035ea5cba51773"}},{"ruleId":"D1","level":"warning","message":{"text":"StaggeredGridView.layoutChildren (cyclomatic 37): StaggeredGridView.layoutChildren has cyclomatic complexity 37 (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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2218}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a44b8a34123c8669ee9bd46264228df889e01fbfaa4697ab7e8123cf765da9"}},{"ruleId":"D1","level":"warning","message":{"text":"AllInOneActivity.handleEvent (cyclomatic 36): AllInOneActivity.handleEvent has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1253654f11052aadab9188562f053fdf071c23a9aa48438d7f55f858ae257bc"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaPlaybackService.reloadQueue (cyclomatic 35): MediaPlaybackService.reloadQueue 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":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8df317ce50f8a36a64a2e0bd2d511ccb7b478fffbaf11967067d4d063c4ad2"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryHandler.onQueryComplete (cyclomatic 33): QueryHandler.onQueryComplete has cyclomatic complexity 33 (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":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38aecdf4655afe932ca4dd4a29d89a98c7bea8c12e46575eeedf92a895deda0"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryHandler.onQueryComplete (cyclomatic 32): QueryHandler.onQueryComplete has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventFragment.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8b426bbfa4b9106f7361b5405dd5f2fa6862e86edbefa75f769717c2878439"}},{"ruleId":"D1","level":"warning","message":{"text":"RadialPickerLayout.onTouch (cyclomatic 31): RadialPickerLayout.onTouch has cyclomatic complexity 31 (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":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"663ad734542a6b98205a40832f129ddb70f8f2bf143c063a4b67a4c836ddf2a7"}},{"ruleId":"D1","level":"warning","message":{"text":"RadialPickerLayout.onTouch (cyclomatic 31): RadialPickerLayout.onTouch has cyclomatic complexity 31 (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":"apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"09657028936ce9b09671f7e4d57bcb324327a21af8550bfd3eaf47fcdef24d0f"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewPager.onInterceptTouchEvent (cyclomatic 29): ViewPager.onInterceptTouchEvent has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"e195fbeff9eae7696287c2f56f2651e6f1aafa1baaa7b36d38603dfaf1e0a378"}},{"ruleId":"D1","level":"warning","message":{"text":"CalendarEventModel.equals (cyclomatic 29): CalendarEventModel.equals has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7efebeda8e3ed797abbd1d4c097d1bdc15676a9ff2f660110fbf383b91a6758"}},{"ruleId":"D1","level":"warning","message":{"text":"CalendarEventModel.hashCode (cyclomatic 29): CalendarEventModel.hashCode has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9618c51b6a8eed59af22505be03c0a2bd95cd517b9d6532a328309f59b6151"}},{"ruleId":"D1","level":"warning","message":{"text":"DayView.onKeyDown (cyclomatic 29): DayView.onKeyDown has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be54d4accee3fbedc0132bec86e96454d1527a86fb8dd130ea04409323c496b"}},{"ruleId":"D1","level":"warning","message":{"text":"EventInfoFragment.updateEvent (cyclomatic 29): EventInfoFragment.updateEvent has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cdda389fc1074a3c8beae95b45af7bcd210ae44d7d396e72efcb134c0b07793"}},{"ruleId":"D1","level":"warning","message":{"text":"RecurrenceProcessor.filter (cyclomatic 29): RecurrenceProcessor.filter has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec5b2791677b16ee6abb03fdae449435f72f55e74edfaf146b1ae3d48067382"}},{"ruleId":"D1","level":"warning","message":{"text":"TimeZoneData.loadTzsInZoneTab (cyclomatic 29): TimeZoneData.loadTzsInZoneTab has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZoneData.java"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c12b11603d7869abf39a13533eaf79a4ac2a2ce505fcbcffede18fcd791eef6"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewPager.onInterceptTouchEvent (cyclomatic 29): ViewPager.onInterceptTouchEvent has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"9924737e649f5a60dd0e8d42fe0f8796a426c0072d6b0f5fb5f5cc79ba6f19ce"}},{"ruleId":"D1","level":"warning","message":{"text":"DayView.findSelectedEvent (cyclomatic 28): DayView.findSelectedEvent 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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":4627}}}],"partialFingerprints":{"codehealthFindingId/v1":"58cf0fc83ec71f6215d86a081e10657da7b5c8c1404851bb06c5b7b57a00c3b5"}},{"ruleId":"D1","level":"warning","message":{"text":"GoogleCalendarUriIntentFilter.onCreate (cyclomatic 28): GoogleCalendarUriIntentFilter.onCreate 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":"apps/Calendar/src/com/android/calendar/GoogleCalendarUriIntentFilter.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"f357b4b90eb6780f12da668cdf54598f5b74cdbce17327ee9f4cfba5fe8cce2a"}},{"ruleId":"D1","level":"warning","message":{"text":"CalendarEventModel.isUnchanged (cyclomatic 27): CalendarEventModel.isUnchanged has cyclomatic complexity 27 (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":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52a33f4f618072be7e82551b9325e0e69fd225809f54582bb8aa248e0170223"}},{"ruleId":"D1","level":"warning","message":{"text":"DaySet.generateDaysList (cyclomatic 26): DaySet.generateDaysList 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":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04ac7bae5fe567a6aac525c75238fe217d30e7190050b09f83245d2cc7404b5"}},{"ruleId":"D1","level":"warning","message":{"text":"CountingTimerView.setTime (cyclomatic 26): CountingTimerView.setTime 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":"apps/DeskClock/src/com/android/deskclock/timer/CountingTimerView.java"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"688d42706477d8d24d86d5396859c2ebe8811a5cc031d7d502720e882b1781c5"}},{"ruleId":"D1","level":"warning","message":{"text":"StaggeredGridView.fillDown (cyclomatic 26): StaggeredGridView.fillDown 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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2665}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f29c3676e5bebb5c7529d1906c4bd91fbfa17d59074670bf2681d5a6d943d0"}},{"ruleId":"D1","level":"warning","message":{"text":"TouchInterceptor.onTouchEvent (cyclomatic 26): TouchInterceptor.onTouchEvent 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":"apps/Music/src/com/android/music/TouchInterceptor.java"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3abc03966af571dffe5395c986bf8429ca4e27c8cdef491c5d1e72a2269dc0"}},{"ruleId":"D1","level":"warning","message":{"text":"DayView.drawAllDayEvents (cyclomatic 25): DayView.drawAllDayEvents 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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":2856}}}],"partialFingerprints":{"codehealthFindingId/v1":"670da68efa6f276696e9c95e6c1aff1171c69817dfe802876b6a7386016920f4"}},{"ruleId":"D1","level":"warning","message":{"text":"TimerReceiver.onReceive (cyclomatic 25): TimerReceiver.onReceive 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":"apps/DeskClock/src/com/android/deskclock/timer/TimerReceiver.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c18fb31fffdd284c676da4c92df9f1254ebdd6c5f07495d6de4ffeb1b524222"}},{"ruleId":"D1","level":"warning","message":{"text":"StaggeredGridView.calculateLayoutStartOffsets (cyclomatic 25): StaggeredGridView.calculateLayoutStartOffsets 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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2073}}}],"partialFingerprints":{"codehealthFindingId/v1":"82408a5e23c4f344b34010a9f4268f1ffb59d2b1b3e9270ac1d0f0e5e3ae97f6"}},{"ruleId":"D1","level":"warning","message":{"text":"StaggeredGridView.fillUp (cyclomatic 25): StaggeredGridView.fillUp 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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2513}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9ae53cc2bfb33ccd7777f7a91cd58ebd5f1b89447d20e7c520894aa8137a53"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewPager.onTouchEvent (cyclomatic 24): ViewPager.onTouchEvent has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b7a32104d755fcb3ba480e3362a484eb06531bf4c3bbcdaf09b6763f490363"}},{"ruleId":"D1","level":"warning","message":{"text":"RecurrencePickerDialog.copyModelToEventRecurrence (cyclomatic 24): RecurrencePickerDialog.copyModelToEventRecurrence has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3fdcfe1cbccd95ac28ab28fe3e889cecc107329943945060d98348605bda13"}},{"ruleId":"D1","level":"warning","message":{"text":"Utils.findNanpMatchEnd (cyclomatic 24): Utils.findNanpMatchEnd has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/Utils.java"},"region":{"startLine":1987}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93a6435bc13eeea7aa08850c628dc3094ce43fa22c4fd6a37c736cb0a9fd547"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewPager.onTouchEvent (cyclomatic 24): ViewPager.onTouchEvent has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"36836fecf15ca24260ade3c3867f87dd5959f3434e7197f4befb0ae78950752b"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaPlaybackActivity.seekMethod1 (cyclomatic 24): MediaPlaybackActivity.seekMethod1 has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackActivity.java"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"980b12c769c8fd61fe3bf37ce7e8c26439a6bf7a554a126864f2d8e06aee3b2a"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewPager.calculatePageOffsets (cyclomatic 23): ViewPager.calculatePageOffsets has cyclomatic complexity 23 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d9a76a0ffe9373289281b9199ee1ca827a9f8441a8a9ef2ab0ea671345726e"}},{"ruleId":"D1","level":"warning","message":{"text":"RecurrencePickerDialog.copyEventRecurrenceToModel (cyclomatic 23): RecurrencePickerDialog.copyEventRecurrenceToModel has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"16bf0c8abe5450c4a1a10c1730f86dbf8780e0fec012e43f125823a342b0a392"}},{"ruleId":"D1","level":"warning","message":{"text":"DayView.onTouchEvent (cyclomatic 23): DayView.onTouchEvent has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":4236}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7906b2b0086f860e0c084fc84206498d64355a318ee3df355eda05464a7a23d"}},{"ruleId":"D1","level":"warning","message":{"text":"RecipientAlternatesAdapter.getMatchingRecipients (cyclomatic 23): RecipientAlternatesAdapter.getMatchingRecipients has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientAlternatesAdapter.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ad3e59f5bc63ff1e7ea54f28bdf4ab9e47615a1a9173a170bfe5773d2f5abd"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewPager.calculatePageOffsets (cyclomatic 23): ViewPager.calculatePageOffsets has cyclomatic complexity 23 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0432361fb7dae055cb0937353010b8276cf4e68f28678d916c985eed11a7c94"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaPlaybackActivity.onLongClick (cyclomatic 23): MediaPlaybackActivity.onLongClick 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":"apps/Music/src/com/android/music/MediaPlaybackActivity.java"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9eab5ee85f84aa2a2b3ce8b772c6bef93f1579c0f65a0170b57a2c524819322"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaPlaybackService.getNextPosition (cyclomatic 23): MediaPlaybackService.getNextPosition has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8a45c138d18e711c0eb89f3e708653fdd68c32ab2167a31ccf6002fde179fe"}},{"ruleId":"D1","level":"warning","message":{"text":"1.handleMessage (cyclomatic 23): 1.handleMessage has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf0ffa6ea7fd5c6870723a959aa6e4bbee74ea0428d83b054551253d7a08635"}},{"ruleId":"D1","level":"warning","message":{"text":"AlertReceiver.buildBasicNotification (cyclomatic 22): AlertReceiver.buildBasicNotification 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":"apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb18b2dc70f21ccea67615d47dd5ec2ef9e4a252e688e1a96a895f8544ca1bd"}},{"ruleId":"D1","level":"warning","message":{"text":"EditEventView.setModel (cyclomatic 22): EditEventView.setModel has cyclomatic complexity 22 (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":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"055b2ec29c9a7e4169998eaf9f49c79fb8927299a4b5dedbdcb1cdbbede27fb5"}},{"ruleId":"D1","level":"warning","message":{"text":"EventInfo.equals (cyclomatic 22): EventInfo.equals has cyclomatic complexity 22 (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":"apps/Calendar/src/com/android/calendar/widget/CalendarAppWidgetModel.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1eaf37243bbf463caf1bb40d16152b634e896ad5a4ac48114a54ef095a0b2ac"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseEmailAddressAdapter.onDirectoryLoadFinished (cyclomatic 22): BaseEmailAddressAdapter.onDirectoryLoadFinished 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":"apps/Calendar/src/com/android/common/contacts/BaseEmailAddressAdapter.java"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bb5eaedf8baa9601b93ca369a2831b92b30331018a7580cebab132c04ef92c"}},{"ruleId":"D1","level":"warning","message":{"text":"TimePickerDialog.processKeyUp (cyclomatic 22): TimePickerDialog.processKeyUp 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":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"117805ec47c1df37b8c93a5ecd2433cd4e7a6940958c0f22ea08531e48e4f7fb"}},{"ruleId":"D1","level":"warning","message":{"text":"SortCursor.onMove (cyclomatic 22): SortCursor.onMove 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":"apps/Music/src/com/android/music/SortCursor.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"874160e620bc0e679c3a39b7e14e3f3cff4d1facb835aeb1e13d4a792f703570"}},{"ruleId":"D1","level":"warning","message":{"text":"VerticalTextSpinner.onDraw (cyclomatic 22): VerticalTextSpinner.onDraw 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":"apps/Music/src/com/android/music/VerticalTextSpinner.java"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b339ef7509fe5dcd22c0d20ff1bab4036cd6588bd079df8756a111e847cc58"}},{"ruleId":"D1","level":"warning","message":{"text":"TimePickerDialog.processKeyUp (cyclomatic 22): TimePickerDialog.processKeyUp 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":"apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"2694e16f8e40fb25c6117b50724aac22039579fcfef914a6f3dd94dff37a9fac"}},{"ruleId":"D1","level":"warning","message":{"text":"AgendaWindowAdapter.getView (cyclomatic 21): AgendaWindowAdapter.getView 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":"apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"025ab09482a06b5b6b13474db1d0d33fdb90f453ee55920b835caa4e55f9f757"}},{"ruleId":"D1","level":"warning","message":{"text":"Done.run (cyclomatic 21): Done.run 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":"apps/Calendar/src/com/android/calendar/event/EditEventFragment.java"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"441ff5f9b5474179287d99d86d11679fda6f93380991685c27bb20b724ec2f1a"}},{"ruleId":"D1","level":"warning","message":{"text":"AsyncQueryServiceHelper.onHandleIntent (cyclomatic 21): AsyncQueryServiceHelper.onHandleIntent has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/AsyncQueryServiceHelper.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9be8674f53ca70e7ed0839dd657922872f690c5ad46c280856d537accb2cc1"}},{"ruleId":"D1","level":"warning","message":{"text":"StickyHeaderListView.updateStickyHeader (cyclomatic 21): StickyHeaderListView.updateStickyHeader 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":"apps/Calendar/src/com/android/calendar/StickyHeaderListView.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b22f520acdbf46cbd1e045dd7b2b2b9bb59d9de3e8f6c6b0827406ebcf978a5"}},{"ruleId":"D1","level":"warning","message":{"text":"ArrayFilter.performFiltering (cyclomatic 21): ArrayFilter.performFiltering 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":"apps/Calendar/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e03c6ca0764ac197d716d8c15e925455202b8c2c882341f2b686e1826b366ee"}},{"ruleId":"D1","level":"warning","message":{"text":"GlowPadView.handleMove (cyclomatic 21): GlowPadView.handleMove 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":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/GlowPadView.java"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fd14e703f982a951f8db975bc42400be35fa858d3aca5a77798aa0f5b986af"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaButtonIntentReceiver.onReceive (cyclomatic 21): MediaButtonIntentReceiver.onReceive 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":"apps/Music/src/com/android/music/MediaButtonIntentReceiver.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6fe0b89e9b1c13b27437273d779a361d816cd598b38fb5b73e2420a0a427d67"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewPager.arrowScroll (cyclomatic 20): ViewPager.arrowScroll 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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2506}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db70c5980490e5103fc5e86707afa30f49714fe2cfe6435184b7623c031ecc5"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewPager.onMeasure (cyclomatic 20): ViewPager.onMeasure 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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"90440652d74c3d0e30bcc1980778ad30397025f55a705e40cea3d3ed9ec305bd"}},{"ruleId":"D1","level":"warning","message":{"text":"AttendeesView.addOneAttendee (cyclomatic 20): AttendeesView.addOneAttendee 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":"apps/Calendar/src/com/android/calendar/event/AttendeesView.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb943b0713f72f7cb8fd7cadcb110d5f3f183c597bba8c204cc83232f1a9c0f5"}},{"ruleId":"D1","level":"warning","message":{"text":"SimpleWeekView.setWeekParams (cyclomatic 20): SimpleWeekView.setWeekParams has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/SimpleWeekView.java"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a124d64d88c31d5471486f44439086980911949594af51460df206880b342a"}},{"ruleId":"D1","level":"warning","message":{"text":"RecurrencePickerDialog.onCreateView (cyclomatic 20): RecurrencePickerDialog.onCreateView 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":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0830545cfe30b31f9583c8383a97ccf59e301b2ab8f7b56fe88a7e765233a74"}},{"ruleId":"D1","level":"warning","message":{"text":"RecurrenceProcessor.getLastOccurence (cyclomatic 20): RecurrenceProcessor.getLastOccurence 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":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3164f01d8e690f656809948ba1b93cb8ad8df7fe3cca63868b87d1754cea160"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewPager.arrowScroll (cyclomatic 20): ViewPager.arrowScroll 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":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":2508}}}],"partialFingerprints":{"codehealthFindingId/v1":"44506557d5d99e0ae8c2712d3b5da1909a72601fa178f1da9944b45c5085ba58"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewPager.onMeasure (cyclomatic 20): ViewPager.onMeasure 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":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"605661c5216f1757b1cf3033199b41b9d5ab3df821e7038377b3359aed378c8a"}},{"ruleId":"D1","level":"warning","message":{"text":"CalculatorEditable.internalReplace (cyclomatic 19): CalculatorEditable.internalReplace has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/CalculatorEditable.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b88d2256cf70d48dcb2ec626614e260318ccb3a5bf43e7253e1298699155b3a"}},{"ruleId":"D1","level":"warning","message":{"text":"AgendaByDayAdapter.findEventPositionNearestTime (cyclomatic 19): AgendaByDayAdapter.findEventPositionNearestTime has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaByDayAdapter.java"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccfa10d7b0e0aab020e455d21d3545f6382b5e553921a3cbf127e8a8569d9085"}},{"ruleId":"D1","level":"warning","message":{"text":"RecurrencePickerDialog.updateDialog (cyclomatic 19): RecurrencePickerDialog.updateDialog has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"97753a27a315ab6267a27c210249cf9a2a66ececcce00653a40be1631737980d"}},{"ruleId":"D1","level":"warning","message":{"text":"AllInOneActivity.onCreate (cyclomatic 19): AllInOneActivity.onCreate has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc0c269a038a1f68640a9e104a80d21bebbc5ac6f9f888f31dbf85631eda188"}},{"ruleId":"D1","level":"warning","message":{"text":"DayView.doScroll (cyclomatic 19): DayView.doScroll has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":3970}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65a8c6d9ac22d2c91209b8a3f15d5accb86f9dc920d90ffac9037320bf658c7"}},{"ruleId":"D1","level":"warning","message":{"text":"DayView.doSingleTapUp (cyclomatic 19): DayView.doSingleTapUp has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":3856}}}],"partialFingerprints":{"codehealthFindingId/v1":"9154e8ef0c530a886c597dc3f5848397db89357bb1042e0fc5a28a47e5d71e95"}},{"ruleId":"D1","level":"warning","message":{"text":"GoogleCalendarUriIntentFilter.extractEidAndEmail (cyclomatic 19): GoogleCalendarUriIntentFilter.extractEidAndEmail has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/GoogleCalendarUriIntentFilter.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a70532db4bc730b14ead9aa769d606ff58281fa88569c8b3d0c810e511714bf"}},{"ruleId":"D1","level":"warning","message":{"text":"Tweener.to (cyclomatic 19): Tweener.to has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/Tweener.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a50d038eb1018ebd84c99bfdc873ec310b10f73937617029478168dcf982f8"}},{"ruleId":"D1","level":"warning","message":{"text":"StaggeredGridView.addUpdateViewPositionsAnimators (cyclomatic 19): StaggeredGridView.addUpdateViewPositionsAnimators has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7667084d9a785adfcb7a9c8c7b329f16871e612707a8ea65b04c78e3b4223c"}},{"ruleId":"D1","level":"warning","message":{"text":"TrackBrowserActivity.setTitle (cyclomatic 19): TrackBrowserActivity.setTitle has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/TrackBrowserActivity.java"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"58921882a0b8346c7abed4a57f2027be90aa513db1a93beaa9cabe26a57d7668"}},{"ruleId":"D1","level":"warning","message":{"text":"AgendaAdapter.bindView (cyclomatic 18): AgendaAdapter.bindView has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaAdapter.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"7345d5659631290fb5d6362b9faf86fdbf3d336ad22c2f2ac29d36e132d7d617"}},{"ruleId":"D1","level":"warning","message":{"text":"AgendaByDayAdapter.calculateDays (cyclomatic 18): AgendaByDayAdapter.calculateDays 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":"apps/Calendar/src/com/android/calendar/agenda/AgendaByDayAdapter.java"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be9b911cae1b2abd6f2d4548b45391c65d321fd1b15f05cca9d8f4db2c65df3"}},{"ruleId":"D1","level":"warning","message":{"text":"AlarmScheduler.queryNextReminderAndSchedule (cyclomatic 18): AlarmScheduler.queryNextReminderAndSchedule 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":"apps/Calendar/src/com/android/calendar/alerts/AlarmScheduler.java"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a80f45dae567a23fd3341eba10ef61472085c15958f1db8728c4150d0e8c396"}},{"ruleId":"D1","level":"warning","message":{"text":"DayView.sendAccessibilityEventAsNeeded (cyclomatic 18): DayView.sendAccessibilityEventAsNeeded 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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0dd420767d8515f6ca47c1961dd409618c1adcc635d9344ebd3c24954a07f8"}},{"ruleId":"D1","level":"warning","message":{"text":"EventInfoActivity.onCreate (cyclomatic 18): EventInfoActivity.onCreate 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":"apps/Calendar/src/com/android/calendar/EventInfoActivity.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb9166920f3a9f16d166d07e0e1d2158b7d4f1985fdaf69676b1b256463be5d"}},{"ruleId":"D1","level":"warning","message":{"text":"EventInfoFragment.updateCalendar (cyclomatic 18): EventInfoFragment.updateCalendar 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":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7014f20260dc56a9d73977204cc3ced1b8aebb86af25db967b52233c180b6e"}},{"ruleId":"D1","level":"warning","message":{"text":"RadialSelectorView.getDegreesFromCoords (cyclomatic 18): RadialSelectorView.getDegreesFromCoords has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed3d80661be153ad1b865df62032a7bd20094b075a94f6d81ccf8712df84906"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryBrowserActivity.onServiceConnected (cyclomatic 18): QueryBrowserActivity.onServiceConnected 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":"apps/Music/src/com/android/music/QueryBrowserActivity.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e39cfe5b34e9889617a18403738006adce42b5c5116675787f0fd764fc52f09"}},{"ruleId":"D1","level":"warning","message":{"text":"TrackBrowserActivity.getTrackCursor (cyclomatic 18): TrackBrowserActivity.getTrackCursor 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":"apps/Music/src/com/android/music/TrackBrowserActivity.java"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c35289ce8309ba1397ec099e278439db45802b50e4c5885da5da847791a5f64"}},{"ruleId":"D1","level":"warning","message":{"text":"RadialSelectorView.getDegreesFromCoords (cyclomatic 18): RadialSelectorView.getDegreesFromCoords has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ae3f55d4155216b334bb4e557ac5aebc1b1465b19fa40bcf030c64b2a8baa0"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewPager.onLayout (cyclomatic 17): ViewPager.onLayout 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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a703d666db4df9187c678d4b14fc5d78fe1e123d51a5a24268815abec2834d0"}},{"ruleId":"D1","level":"warning","message":{"text":"AgendaByDayAdapter.getView (cyclomatic 17): AgendaByDayAdapter.getView 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":"apps/Calendar/src/com/android/calendar/agenda/AgendaByDayAdapter.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5a1b0c6d828db20274f79714dbbda1db15e7a096dd343aff0484946d2df246"}},{"ruleId":"D1","level":"warning","message":{"text":"MonthWeekEventsView.drawEvent (cyclomatic 17): MonthWeekEventsView.drawEvent has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e205f1eef9d93c9fa3ce9d8476889169fdd8ff924fc35b5955419f0403a5d95"}},{"ruleId":"D1","level":"warning","message":{"text":"RecurrencePickerDialog.canHandleRecurrenceRule (cyclomatic 17): RecurrencePickerDialog.canHandleRecurrenceRule 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":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"3726db60b5e3ddb889d433c216160558d571d587d121389fe2692c4bc2ea980b"}},{"ruleId":"D1","level":"warning","message":{"text":"CalendarFactory.getViewAt (cyclomatic 17): CalendarFactory.getViewAt 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":"apps/Calendar/src/com/android/calendar/widget/CalendarAppWidgetService.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"7265e931a98cd7089d0ca8846a34b058e0968bc387ae4b365ec39dbadd6594ea"}},{"ruleId":"D1","level":"warning","message":{"text":"DayView.remeasure (cyclomatic 17): DayView.remeasure 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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b4dc495e20eb372b990804f188c80642d6a60299d46b9696f051894e9fcf77"}},{"ruleId":"D1","level":"warning","message":{"text":"Utils.extendedLinkify (cyclomatic 17): Utils.extendedLinkify 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":"apps/Calendar/src/com/android/calendar/Utils.java"},"region":{"startLine":1770}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc732b9cc3b460da8960d5353c2398c4e6a2ed864d21c898c365d90e49ba1a8"}},{"ruleId":"D1","level":"warning","message":{"text":"TimePickerDialog.onCreateView (cyclomatic 17): TimePickerDialog.onCreateView has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcfc6b2b0a36df2be1467bdf482da94a37583b82504b9a65217a7306d966dcfd"}},{"ruleId":"D1","level":"warning","message":{"text":"RecipientAlternatesAdapter.getBetterRecipient (cyclomatic 17): RecipientAlternatesAdapter.getBetterRecipient has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientAlternatesAdapter.java"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b400e24868ccfe8fa850912cffdb665ba5f26bc9425d669bdf0a65f8dff829f"}},{"ruleId":"D1","level":"warning","message":{"text":"TimeZoneResultAdapter.onSetFilter (cyclomatic 17): TimeZoneResultAdapter.onSetFilter 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":"apps/Calendar/src/com/android/timezonepicker/TimeZoneResultAdapter.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46441026d849a82eb908669457ae68cd8d74b86b8830f7e1fefcf55c3788af0"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewPager.onLayout (cyclomatic 17): ViewPager.onLayout 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":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"41beef2353ad835256a443ace701b1bca0a270fad28e771281c88a758a327df4"}},{"ruleId":"D1","level":"warning","message":{"text":"StaggeredGridView.populate (cyclomatic 17): StaggeredGridView.populate has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"622ac58f5b0f2c7cb4f95740837393a3e41cdd2c9b1880c2188db744aedda183"}},{"ruleId":"D1","level":"warning","message":{"text":"StaggeredGridView.recycleOffscreenViews (cyclomatic 17): StaggeredGridView.recycleOffscreenViews 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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7f595cbabbb7bc6d223db349806f1898d1855bb6b65c2d72841d064549fb9e"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryListAdapter.bindView (cyclomatic 17): QueryListAdapter.bindView 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":"apps/Music/src/com/android/music/QueryBrowserActivity.java"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"42eec85cc0f3e0cf7b0723f3a613b303d684469e8061ec827506e54a7b986e68"}},{"ruleId":"D1","level":"warning","message":{"text":"TimePickerDialog.onCreateView (cyclomatic 17): TimePickerDialog.onCreateView has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef47c7785be9d6f96c65329a6fdd0dc23b6a3869274cd83ae3653e40b73e9954"}},{"ruleId":"D1","level":"warning","message":{"text":"EventListener.onKey (cyclomatic 16): EventListener.onKey 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":"apps/Calculator/src/com/android/calculator2/EventListener.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"853a916c14d6ba93ffb1eba26a5f9f184ffca4dbea95398c46956ded7bc89d2a"}},{"ruleId":"D1","level":"warning","message":{"text":"AgendaWindowAdapter.refresh (cyclomatic 16): AgendaWindowAdapter.refresh 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":"apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0f7d3935f0d600a4745a1d3387fea03f5270c57b7dd27916067457940e84c7"}},{"ruleId":"D1","level":"warning","message":{"text":"AlertReceiver.createEmailIntent (cyclomatic 16): AlertReceiver.createEmailIntent 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":"apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03b35be85f1cfe0cf4645556627132ee5814afb3b2244cf60dd3eee0770ba54"}},{"ruleId":"D1","level":"warning","message":{"text":"EditEventHelper.offsetStartTimeIfNecessary (cyclomatic 16): EditEventHelper.offsetStartTimeIfNecessary 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":"apps/Calendar/src/com/android/calendar/event/EditEventHelper.java"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa917fd70983a2ce4cec7b942b3ff642b5563fdbfe96d071b8f66f927db9f66"}},{"ruleId":"D1","level":"warning","message":{"text":"MonthByWeekAdapter.setEvents (cyclomatic 16): MonthByWeekAdapter.setEvents 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":"apps/Calendar/src/com/android/calendar/month/MonthByWeekAdapter.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"8942cb5d0820479ab372f6ea4128d9879ab016f41751f5525947032fd7cd7f2b"}},{"ruleId":"D1","level":"warning","message":{"text":"SimpleDayPickerFragment.goTo (cyclomatic 16): SimpleDayPickerFragment.goTo 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":"apps/Calendar/src/com/android/calendar/month/SimpleDayPickerFragment.java"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2d8d717f4feaf670915709e0e7a5cc330820a678538cd3809b3b8849564228"}},{"ruleId":"D1","level":"warning","message":{"text":"AllInOneActivity.initFragments (cyclomatic 16): AllInOneActivity.initFragments 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":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c93d25373f220d3f5fc124bdabca72e7a1f21d5a8a9b8763a9eead08aae1bf7"}},{"ruleId":"D1","level":"warning","message":{"text":"EventRecurrenceFormatter.getRepeatString (cyclomatic 16): EventRecurrenceFormatter.getRepeatString 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":"apps/Calendar/src/com/android/calendar/EventRecurrenceFormatter.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac8ae3743b5a1f21fd43f49cc7359904ff00e2f115a5ef5666b73c205b93666"}},{"ruleId":"D1","level":"warning","message":{"text":"Duration.parse (cyclomatic 16): Duration.parse 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":"apps/Calendar/src/com/android/calendarcommon2/Duration.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f231bf869a6c00a4501224105be7878a8fcd8efcee6a00b0db0992b4cd8ea38"}},{"ruleId":"D1","level":"warning","message":{"text":"ICalendar.extractParameter (cyclomatic 16): ICalendar.extractParameter 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":"apps/Calendar/src/com/android/calendarcommon2/ICalendar.java"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5f30c378bac9cae6708c17cd845380bd04f51e990808b05bb33d31458a79dc"}},{"ruleId":"D1","level":"warning","message":{"text":"RadialPickerLayout.reselectSelector (cyclomatic 16): RadialPickerLayout.reselectSelector 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":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e9da5313ff92b2aabf8f5b81ad9651656ecebad4f852bae71da16578797b85"}},{"ruleId":"D1","level":"warning","message":{"text":"AlarmStateManager.registerInstance (cyclomatic 16): AlarmStateManager.registerInstance 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":"apps/DeskClock/src/com/android/deskclock/alarms/AlarmStateManager.java"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8246b432e47ba706af54b6ab644556a8a38c769e93f0bd4be462197a8f8b825"}},{"ruleId":"D1","level":"warning","message":{"text":"StopwatchService.onStartCommand (cyclomatic 16): StopwatchService.onStartCommand 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":"apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchService.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b315ba0f4d844f79917c90fcaf246902974ffcba766c32f2998af787a9b30d71"}},{"ruleId":"D1","level":"warning","message":{"text":"RadialPickerLayout.reselectSelector (cyclomatic 16): RadialPickerLayout.reselectSelector 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":"apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ba6d7c5d62d8ff8f7d6ea6d74c78646135429fee2de8dcc9c56f842993892d"}},{"ruleId":"D2","level":"warning","message":{"text":"RecurrenceProcessor.expand (cognitive 234): RecurrenceProcessor.expand has cognitive complexity 234 (threshold 15). Drivers by points: if/else 39 (172 pts), loops 7 (23 pts), ternaries 4 (21 pts), boolean chains 12, match/switch 2 (4 pts), error handling 2 (nesting depth added 168). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"309a52f8e61125bdd402ce0a782d982eb44559f8b13c4fe58c15edd34c10046c"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.computeNeighbors (cognitive 154): DayView.computeNeighbors has cognitive complexity 154 (threshold 15). Drivers by points: if/else 57 (144 pts), boolean chains 6, loops 3 (4 pts) (nesting depth added 88). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":3151}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f94093f3a8c29c6234fec2be77bd3f844a7a604a0bf46aa354a5325ff39b75"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.populate (cognitive 142): ViewPager.populate has cognitive complexity 142 (threshold 15). Drivers by points: if/else 30 (74 pts), ternaries 13 (44 pts), loops 6 (12 pts), boolean chains 10, error handling 1 (2 pts) (nesting depth added 82). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb94c93a07e3d62fb1b0489c42610c3318436ea4bd303599251b8eb02a61b54"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.populate (cognitive 142): ViewPager.populate has cognitive complexity 142 (threshold 15). Drivers by points: if/else 30 (74 pts), ternaries 13 (44 pts), loops 6 (12 pts), boolean chains 10, error handling 1 (2 pts) (nesting depth added 82). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"466114c4c974bf03445242e9983b58b88422743e1ed7d7562b2bc5d7f003797c"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryHandler.onQueryComplete (cognitive 119): QueryHandler.onQueryComplete has cognitive complexity 119 (threshold 15). Drivers by points: if/else 44 (94 pts), boolean chains 12, loops 5 (11 pts), match/switch 1 (2 pts) (nesting depth added 57). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5e2918a9fb7c0f3db0e5767c4cde62c07d85a820bec32fe51bd1d21f70ad43"}},{"ruleId":"D2","level":"warning","message":{"text":"GoogleCalendarUriIntentFilter.onCreate (cognitive 116): GoogleCalendarUriIntentFilter.onCreate has cognitive complexity 116 (threshold 15). Drivers by points: if/else 21 (91 pts), error handling 3 (14 pts), match/switch 1 (6 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 89). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/GoogleCalendarUriIntentFilter.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ed8df5663f6defe2bc7ba8afcb35fb8d342e20bbf80f0c61f86770f2f339b5"}},{"ruleId":"D2","level":"warning","message":{"text":"EditEventHelper.saveEvent (cognitive 107): EditEventHelper.saveEvent has cognitive complexity 107 (threshold 15). Drivers by points: if/else 45 (78 pts), loops 3 (13 pts), boolean chains 10, ternaries 3 (6 pts) (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventHelper.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"defb81b29524b1d19e62d0f1d6cf0d01301c160d250b6722b3ca66b5cd73d4f1"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarController.sendEvent (cognitive 94): CalendarController.sendEvent has cognitive complexity 94 (threshold 15). Drivers by points: if/else 39 (59 pts), ternaries 9 (18 pts), boolean chains 10, loops 3 (7 pts) (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarController.java"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f49c6c989d3ad6a259301509a1e3de77a0b001204556270385439e0e528bea"}},{"ruleId":"D2","level":"warning","message":{"text":"Utils.createDNAStrands (cognitive 94): Utils.createDNAStrands has cognitive complexity 94 (threshold 15). Drivers by points: if/else 28 (80 pts), boolean chains 7, loops 3 (7 pts) (nesting depth added 56). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/Utils.java"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca77ad447ba16518f15715012157e6cafe267609e105ecf21bd2ee20cbebeec7"}},{"ruleId":"D2","level":"warning","message":{"text":"DaySet.generateDaysList (cognitive 93): DaySet.generateDaysList has cognitive complexity 93 (threshold 15). Drivers by points: if/else 21 (66 pts), loops 7 (26 pts), boolean chains 1 (nesting depth added 64). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fceddebc6775fbd1954e86dbbe6c9c784860c5d52378aa0db5bb8247679b32"}},{"ruleId":"D2","level":"warning","message":{"text":"AlertService.processQuery (cognitive 83): AlertService.processQuery has cognitive complexity 83 (threshold 15). Drivers by points: if/else 31 (68 pts), boolean chains 14, loops 1 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"93445f94ba8804b67aa2a15d4ed9720c3840f8f70b9b4f46edd4e4276be851d9"}},{"ruleId":"D2","level":"warning","message":{"text":"StaggeredGridView.layoutChildren (cognitive 81): StaggeredGridView.layoutChildren has cognitive complexity 81 (threshold 15). Drivers by points: if/else 27 (58 pts), ternaries 3 (9 pts), boolean chains 8, loops 3 (6 pts) (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2218}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5891d72395d309f1fff49b05a70c55e86f5bed48968414a3c139ec5b0667fa"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaPlaybackService.reloadQueue (cognitive 76): MediaPlaybackService.reloadQueue has cognitive complexity 76 (threshold 15). Drivers by points: if/else 24 (55 pts), boolean chains 9, loops 2 (6 pts), ternaries 3 (6 pts) (nesting depth added 38). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb808a6d7e4c4fd4c0bf26545f7c8e546fcc66a557df351b81461151095694f6"}},{"ruleId":"D2","level":"warning","message":{"text":"AllInOneActivity.handleEvent (cognitive 70): AllInOneActivity.handleEvent has cognitive complexity 70 (threshold 15). Drivers by points: if/else 24 (52 pts), boolean chains 13, ternaries 2 (5 pts) (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"362ef8b47287efcc7f3ca2150baa76546914e7552bbabdc2b23629593a61f2e0"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarEventModel.checkOriginalModelFields (cognitive 69): CalendarEventModel.checkOriginalModelFields has cognitive complexity 69 (threshold 15). Drivers by points: if/else 57 (69 pts) (nesting depth added 12). 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":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd57f1dba78f14755a87b8b12755a37bf91fb93b732ccd68383ab6321b0fb2e3"}},{"ruleId":"D2","level":"warning","message":{"text":"TimeZoneData.loadTzsInZoneTab (cognitive 67): TimeZoneData.loadTzsInZoneTab has cognitive complexity 67 (threshold 15). Drivers by points: if/else 19 (57 pts), boolean chains 4, error handling 4, loops 2 (nesting depth added 38). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZoneData.java"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33abc36647a47f7f6f9c01bc71ada294296c5da22fe9efc17427e2fcec639ce"}},{"ruleId":"D2","level":"warning","message":{"text":"TouchInterceptor.onTouchEvent (cognitive 65): TouchInterceptor.onTouchEvent has cognitive complexity 65 (threshold 15). Drivers by points: if/else 15 (46 pts), ternaries 2 (11 pts), boolean chains 6, match/switch 1 (2 pts) (nesting depth added 41). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/TouchInterceptor.java"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7e2e47471da90c4b5a52bc6ec55cbb77e41348bd0138f430300f0425add284"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryHandler.onQueryComplete (cognitive 62): QueryHandler.onQueryComplete has cognitive complexity 62 (threshold 15). Drivers by points: if/else 23 (48 pts), loops 3 (7 pts), boolean chains 6, match/switch 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventFragment.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"27cfc6767a744f11cb1f9a909dcc2c3c383c42734825c4aa7800861aa7f3fbfd"}},{"ruleId":"D2","level":"warning","message":{"text":"AgendaByDayAdapter.calculateDays (cognitive 61): AgendaByDayAdapter.calculateDays has cognitive complexity 61 (threshold 15). Drivers by points: if/else 12 (36 pts), loops 5 (15 pts), ternaries 2 (10 pts) (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaByDayAdapter.java"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc043790148996a27bb9271c375a30debd59d42ef200471f93a8bdfaf564c418"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.findSelectedEvent (cognitive 61): DayView.findSelectedEvent has cognitive complexity 61 (threshold 15). Drivers by points: if/else 20 (46 pts), boolean chains 6, loops 3 (5 pts), ternaries 1 (4 pts) (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":4627}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8db2184da49e081a17fdb3716940496015c1ec52af211a33d18a6e1fee9d9cc"}},{"ruleId":"D2","level":"warning","message":{"text":"RecurrenceProcessor.filter (cognitive 61): RecurrenceProcessor.filter has cognitive complexity 61 (threshold 15). Drivers by points: if/else 25 (54 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8deb4d7135abc3b19c39e26e2d7697383167206dda6920657c4585807ab8c4"}},{"ruleId":"D2","level":"warning","message":{"text":"RadialPickerLayout.onTouch (cognitive 61): RadialPickerLayout.onTouch has cognitive complexity 61 (threshold 15). Drivers by points: if/else 22 (53 pts), boolean chains 7, match/switch 1 (nesting depth added 31). 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":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"389a146aab1ad00081d359d919f6c1163415e020465e347761d0d2a8ce57698c"}},{"ruleId":"D2","level":"warning","message":{"text":"RadialPickerLayout.onTouch (cognitive 61): RadialPickerLayout.onTouch has cognitive complexity 61 (threshold 15). Drivers by points: if/else 22 (53 pts), boolean chains 7, match/switch 1 (nesting depth added 31). 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":"apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8d46ad14ac749f9295600141d9d92200908842881046b79bbf211b680c0d54"}},{"ruleId":"D2","level":"warning","message":{"text":"AllInOneActivity.setMainPane (cognitive 55): AllInOneActivity.setMainPane has cognitive complexity 55 (threshold 15). Drivers by points: if/else 31 (47 pts), boolean chains 7, 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":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8572f1e41437dd51937b8a56e4fbd182793577b0fb25baba97e4748bf04141d"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryHandler.onQueryComplete (cognitive 54): QueryHandler.onQueryComplete has cognitive complexity 54 (threshold 15). Drivers by points: if/else 22 (41 pts), loops 2 (5 pts), boolean chains 4, ternaries 1 (3 pts), match/switch 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":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fda20608c692a663e84c981ef4e102980d0ea01eb32db0b981cac36ba23372"}},{"ruleId":"D2","level":"warning","message":{"text":"StaggeredGridView.calculateLayoutStartOffsets (cognitive 54): StaggeredGridView.calculateLayoutStartOffsets has cognitive complexity 54 (threshold 15). Drivers by points: if/else 14 (32 pts), loops 6 (12 pts), ternaries 2 (7 pts), boolean chains 3 (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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2073}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f81fba42a645eb75979d7a932823c2b8e9d720a3854586a7ce797b4648aed5c"}},{"ruleId":"D2","level":"warning","message":{"text":"EventInfoFragment.updateEvent (cognitive 52): EventInfoFragment.updateEvent has cognitive complexity 52 (threshold 15). Drivers by points: if/else 24 (39 pts), error handling 2 (7 pts), boolean chains 6 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d51b5ded2b70c08a3166fe54b7fdf5e3bfcfc43ed70607b6fa85c517597146"}},{"ruleId":"D2","level":"warning","message":{"text":"RecipientAlternatesAdapter.getMatchingRecipients (cognitive 52): RecipientAlternatesAdapter.getMatchingRecipients has cognitive complexity 52 (threshold 15). Drivers by points: if/else 16 (30 pts), loops 6 (18 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientAlternatesAdapter.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab02a7d17f05810c939a32a9e01dce24e0f8fbb21913e715e07fd1dddb3f454d"}},{"ruleId":"D2","level":"warning","message":{"text":"VerticalTextSpinner.onDraw (cognitive 52): VerticalTextSpinner.onDraw has cognitive complexity 52 (threshold 15). Drivers by points: if/else 19 (48 pts), boolean chains 4 (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/VerticalTextSpinner.java"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"04405cdc1c56e12d9d3f9d14054fb335bcad7b381bef90dd4eeaca12346628e0"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.onInterceptTouchEvent (cognitive 50): ViewPager.onInterceptTouchEvent has cognitive complexity 50 (threshold 15). Drivers by points: if/else 21 (42 pts), boolean chains 4, ternaries 1 (3 pts), match/switch 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"9710dcf4f86ca53199dc6457225768106fd01655aa940667eba7bb4a44dd2a50"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.onInterceptTouchEvent (cognitive 50): ViewPager.onInterceptTouchEvent has cognitive complexity 50 (threshold 15). Drivers by points: if/else 21 (42 pts), boolean chains 4, ternaries 1 (3 pts), match/switch 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"d414617364358442d9d3ef48c37ba86be55b4a504c5d7a5d0d294e77eaa8d53f"}},{"ruleId":"D2","level":"warning","message":{"text":"StaggeredGridView.fillDown (cognitive 49): StaggeredGridView.fillDown has cognitive complexity 49 (threshold 15). Drivers by points: if/else 17 (29 pts), ternaries 3 (8 pts), boolean chains 6, loops 4 (6 pts) (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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2665}}}],"partialFingerprints":{"codehealthFindingId/v1":"362f10530d2ed7ccb99d7b34f6c600b1cf7a5b781c5d55243160e76a814651b8"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.onMeasure (cognitive 47): ViewPager.onMeasure has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (41 pts), boolean chains 4, loops 2 (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed934b0d50fc21b2fb20e1be62492bc0b1613e49b93674c6d1a2937bab54cac"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.onMeasure (cognitive 47): ViewPager.onMeasure has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (41 pts), boolean chains 4, loops 2 (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"216758528a4237a669133b26bab06c7c7ba01ac77acbc21e6b5c6379357a84d6"}},{"ruleId":"D2","level":"warning","message":{"text":"StaggeredGridView.fillUp (cognitive 47): StaggeredGridView.fillUp has cognitive complexity 47 (threshold 15). Drivers by points: if/else 17 (29 pts), boolean chains 6, loops 4 (6 pts), ternaries 2 (6 pts) (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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2513}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a788f850e38406777a7dca8542f19679de4d45260c4cd0913da89e2147806d6"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.sendAccessibilityEventAsNeeded (cognitive 46): DayView.sendAccessibilityEventAsNeeded has cognitive complexity 46 (threshold 15). Drivers by points: if/else 14 (35 pts), loops 1 (5 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"06eac7bee49c14dedd65b10b2889d59cb7e1a4079babb22236952d2ca56b540d"}},{"ruleId":"D2","level":"warning","message":{"text":"StickyHeaderListView.updateStickyHeader (cognitive 45): StickyHeaderListView.updateStickyHeader has cognitive complexity 45 (threshold 15). Drivers by points: if/else 15 (39 pts), boolean chains 6 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/StickyHeaderListView.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0dbd5b2f07ecaf918137dbb569fa1a5af36d451145c2a3181d98296ee7bc706"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseEmailAddressAdapter.onDirectoryLoadFinished (cognitive 44): BaseEmailAddressAdapter.onDirectoryLoadFinished has cognitive complexity 44 (threshold 15). Drivers by points: if/else 14 (30 pts), loops 4 (6 pts), error handling 1 (4 pts), boolean chains 3, ternaries 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":"apps/Calendar/src/com/android/common/contacts/BaseEmailAddressAdapter.java"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86a29573dc99fdc505b84afbd188e7545445f7864e78426364566fc831323f1"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.calculatePageOffsets (cognitive 43): ViewPager.calculatePageOffsets has cognitive complexity 43 (threshold 15). Drivers by points: loops 10 (28 pts), if/else 5 (8 pts), boolean chains 4, ternaries 3 (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3779f4ebfd677da9bb5f32fe09601b829d0fd8867a8f670b367bc359e04d9a0"}},{"ruleId":"D2","level":"warning","message":{"text":"AlarmScheduler.queryNextReminderAndSchedule (cognitive 43): AlarmScheduler.queryNextReminderAndSchedule has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (32 pts), loops 4 (9 pts), boolean chains 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlarmScheduler.java"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5da05542672ed79d8e68dd3aabcd354d5283a35b0a1841e28c93d18029d998"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.calculatePageOffsets (cognitive 43): ViewPager.calculatePageOffsets has cognitive complexity 43 (threshold 15). Drivers by points: loops 10 (28 pts), if/else 5 (8 pts), boolean chains 4, ternaries 3 (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d0fc5361a51f992701d9e0c42e18a85397e15952845f1ed4c6b33ddae52657"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaPlaybackService.getNextPosition (cognitive 43): MediaPlaybackService.getNextPosition has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (26 pts), loops 5 (13 pts), boolean chains 4 (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":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fba20ffb8369169c678828a3b90c6167e7ae85ebea6b75042d9914157e6a5ef"}},{"ruleId":"D2","level":"warning","message":{"text":"RecurrencePickerDialog.copyModelToEventRecurrence (cognitive 42): RecurrencePickerDialog.copyModelToEventRecurrence has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (33 pts), loops 2 (4 pts), boolean chains 3, match/switch 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"a152ca358dbfe957dc2cfc5e61abc8573f12bf7072463f07005290e36b04457d"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.drawAllDayEvents (cognitive 41): DayView.drawAllDayEvents has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 5, loops 3 (4 pts), ternaries 1 (2 pts) (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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":2856}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2f2fd4812c4261b2660b86e7ba1d206b87e2b42e399c35bbeb77e70f657b07"}},{"ruleId":"D2","level":"warning","message":{"text":"TrackBrowserActivity.setTitle (cognitive 41): TrackBrowserActivity.setTitle has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (38 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/TrackBrowserActivity.java"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0d3797649c1045a0ec52ad7126df7d9f02b7723593a57b4fd864f5e1a991d0"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.onKeyDown (cognitive 40): DayView.onKeyDown has cognitive complexity 40 (threshold 15). Drivers by points: if/else 21 (37 pts), boolean chains 2, 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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f4d483eeab116b97a43ea512d9f0a80ad493993275217bc47988c2fb7067d5"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.onTouchEvent (cognitive 40): DayView.onTouchEvent has cognitive complexity 40 (threshold 15). Drivers by points: if/else 19 (38 pts), boolean chains 1, match/switch 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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":4236}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2873454895589e52baea2a0d2b64af8ec0c8674fbf42db65abaec37fc2a0528"}},{"ruleId":"D2","level":"warning","message":{"text":"CountingTimerView.setTime (cognitive 40): CountingTimerView.setTime has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (26 pts), ternaries 4 (8 pts), boolean chains 6 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/timer/CountingTimerView.java"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a286c4a58443a5bd0641799739c4611c06882f253e86b49943c19b2f961d12e"}},{"ruleId":"D2","level":"warning","message":{"text":"TimePickerDialog.processKeyUp (cognitive 39): TimePickerDialog.processKeyUp has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (35 pts), boolean chains 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"0254da663dea6cffb65aa76d49fc04a1b2c3e8f393b4f7fe355309fa8db824fc"}},{"ruleId":"D2","level":"warning","message":{"text":"GlowPadView.handleMove (cognitive 39): GlowPadView.handleMove has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (25 pts), ternaries 3 (6 pts), boolean chains 4, loops 2 (4 pts) (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":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/GlowPadView.java"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"585b11ae2dec3b921a6fd402b3b103f34474d77f8c313354a3c4b944904df11d"}},{"ruleId":"D2","level":"warning","message":{"text":"StaggeredGridView.recycleOffscreenViews (cognitive 39): StaggeredGridView.recycleOffscreenViews has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 5 (9 pts), ternaries 1 (4 pts) (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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"702b7082eef19ac9e05d01ace748ea6603ee9310015cd18af3babbac5892cda8"}},{"ruleId":"D2","level":"warning","message":{"text":"TimePickerDialog.processKeyUp (cognitive 39): TimePickerDialog.processKeyUp has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (35 pts), boolean chains 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4f359aaa9079ee1f74ffdf7eca37de652b980254e5b9b46e29de268416717d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgendaByDayAdapter.findEventPositionNearestTime (cognitive 37): AgendaByDayAdapter.findEventPositionNearestTime has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (34 pts), boolean chains 2, loops 1 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaByDayAdapter.java"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbae32c677c90b921c2e674b49925f0fd09e4b606afe1a940cb8637d4178adb2"}},{"ruleId":"D2","level":"warning","message":{"text":"EventInfoFragment.initAttendeesCursor (cognitive 37): EventInfoFragment.initAttendeesCursor has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (28 pts), match/switch 1 (5 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c28869ba77d08a119d1da78b694e8a407da6f0934fd113d34247d2818a50e1d"}},{"ruleId":"D2","level":"warning","message":{"text":"ICalendar.extractParameter (cognitive 37): ICalendar.extractParameter has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (35 pts), boolean chains 1, loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/ICalendar.java"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3aad5cdc2ca60f22a7ff8d51b8f0796f0b47d1a493682c28d1deca12cff5e2"}},{"ruleId":"D2","level":"warning","message":{"text":"RecurrenceProcessor.getLastOccurence (cognitive 37): RecurrenceProcessor.getLastOccurence has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (24 pts), loops 3 (7 pts), boolean chains 4, ternaries 1 (2 pts) (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":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9711046478e97facc132bcc91b90fe6b33bc9070d82b535be180d4bf7321fee3"}},{"ruleId":"D2","level":"warning","message":{"text":"EllipsizeLayout.onMeasure (cognitive 37): EllipsizeLayout.onMeasure has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (30 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/EllipsizeLayout.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1896b8b794fc7aabd0b3499a0cd5a6554ac7433c2fd0802b74cde8865c65c5"}},{"ruleId":"D2","level":"warning","message":{"text":"AgendaWindowAdapter.refresh (cognitive 36): AgendaWindowAdapter.refresh has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (28 pts), ternaries 3 (6 pts), boolean chains 2 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d9878aba60795cc9075da4731045b86dc3ab88bf34405758c4e2448a9591b0"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.doScroll (cognitive 36): DayView.doScroll has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (30 pts), ternaries 2 (6 pts) (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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":3970}}}],"partialFingerprints":{"codehealthFindingId/v1":"312c89a346c9621c949be9122597083f7621f3ca34a06878bda3b1cc05e4addf"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryBrowserActivity.onServiceConnected (cognitive 36): QueryBrowserActivity.onServiceConnected has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18 (34 pts), boolean chains 1, ternaries 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":"apps/Music/src/com/android/music/QueryBrowserActivity.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51603c3615239bb412348ff8a5a56527a73d1fb5cd3bf90cfc42ba4da23682d"}},{"ruleId":"D2","level":"warning","message":{"text":"SortCursor.onMove (cognitive 36): SortCursor.onMove has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (25 pts), loops 5 (8 pts), boolean chains 3 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/SortCursor.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60c64aa3752f492c05a3e2449a8a7c3e65add1c5795f128461c6a7e57a48d11"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.onTouchEvent (cognitive 35): ViewPager.onTouchEvent has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (27 pts), ternaries 1 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5df43dac3c7cf9ae88d09357207a3ae08119ea19c66e4d87d90a89649da18e9"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncQueryServiceHelper.onHandleIntent (cognitive 35): AsyncQueryServiceHelper.onHandleIntent has cognitive complexity 35 (threshold 15). Drivers by points: error handling 5 (16 pts), if/else 9 (16 pts), match/switch 1 (2 pts), 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":"apps/Calendar/src/com/android/calendar/AsyncQueryServiceHelper.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ca6df85e1e025caf698960b9c37f7f0aae3023e145e85922d95de2131131e0"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.onTouchEvent (cognitive 35): ViewPager.onTouchEvent has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (27 pts), ternaries 1 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b228c0222bfe524b2d7175da3accafb39c810bd9316b3811fda99d530e24a2"}},{"ruleId":"D2","level":"warning","message":{"text":"TrackBrowserActivity.getTrackCursor (cognitive 35): TrackBrowserActivity.getTrackCursor has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (34 pts), 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":"apps/Music/src/com/android/music/TrackBrowserActivity.java"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b87cb7a8a584a01769e04319fa200d9605652b8155ddf7e555636571fc767db"}},{"ruleId":"D2","level":"warning","message":{"text":"AgendaWindowAdapter.getView (cognitive 34): AgendaWindowAdapter.getView has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 5, ternaries 1 (2 pts) (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":"apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8973e8a77244ea565cce9bfb197fdef34a141a8115ac521e0628f3399b26d3"}},{"ruleId":"D2","level":"warning","message":{"text":"AlertReceiver.buildBasicNotification (cognitive 34): AlertReceiver.buildBasicNotification has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 9 (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":"apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"8038d752dd025bb52b86ba1d2ad97c95e0d5ad9621b0c90b03fca4735c8a6f96"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarFactory.getViewAt (cognitive 34): CalendarFactory.getViewAt has cognitive complexity 34 (threshold 15). Drivers by points: if/else 20 (31 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/widget/CalendarAppWidgetService.java"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fddd30c7d473c01fae0cd01fc55b120fbb7e331e2961b7615249f0bbdfed3b1"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarEventModel.equals (cognitive 34): CalendarEventModel.equals has cognitive complexity 34 (threshold 15). Drivers by points: if/else 28 (34 pts) (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":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c4ce08ffaa3fc5b8a7d210c9bbe1d1bfddb210010ab61d2669cf165026ed24"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaButtonIntentReceiver.onReceive (cognitive 34): MediaButtonIntentReceiver.onReceive has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (29 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaButtonIntentReceiver.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7e34d49b438745e7c155822d1cc649284c98f0072bb3c5adcf4f01535b0353"}},{"ruleId":"D2","level":"warning","message":{"text":"RecurrencePickerDialog.copyEventRecurrenceToModel (cognitive 33): RecurrencePickerDialog.copyEventRecurrenceToModel has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (26 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1ae91c768524a1f640b5b742a0fa9645afd04a18946797bf2feb0f193b75f7"}},{"ruleId":"D2","level":"warning","message":{"text":"RecurrencePickerDialog.onCreateView (cognitive 33): RecurrencePickerDialog.onCreateView has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (29 pts), loops 2, match/switch 1 (2 pts) (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":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"85627d3fa1898e40b38588affefb8679aabfe3ceab3c72d4ab255e9a514d934e"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarEventModel.isUnchanged (cognitive 33): CalendarEventModel.isUnchanged has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22 (29 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"686d259b40dbf09dcceef3df1a6d52abe976dec392afc871fcc984ae8f251c5a"}},{"ruleId":"D2","level":"warning","message":{"text":"Utils.findNanpMatchEnd (cognitive 33): Utils.findNanpMatchEnd has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 11, 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":"apps/Calendar/src/com/android/calendar/Utils.java"},"region":{"startLine":1987}}}],"partialFingerprints":{"codehealthFindingId/v1":"135ee5c8e3f3680a70eda12c30cf220640985b04faf82112fac2c1c9a54cc362"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayFilter.performFiltering (cognitive 33): ArrayFilter.performFiltering has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 3 (7 pts), boolean chains 4 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5dd8cd21c536625f6c3fb72d3ab0fe94db3480c6b1b0f627eb305433057c3a"}},{"ruleId":"D2","level":"warning","message":{"text":"TimerReceiver.onReceive (cognitive 33): TimerReceiver.onReceive has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23 (30 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/timer/TimerReceiver.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5cf6857ea0775cce4d988351219922d3a573320d304cc5cf3b25f2f3de5fe7"}},{"ruleId":"D2","level":"warning","message":{"text":"StaggeredGridView.addUpdateViewPositionsAnimators (cognitive 33): StaggeredGridView.addUpdateViewPositionsAnimators has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (22 pts), ternaries 2 (5 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a0ca4e3276f77a85e21318e2852ddc70c4e95fc436fa31688006564699831a"}},{"ruleId":"D2","level":"warning","message":{"text":"StaggeredGridView.getNextRecordDown (cognitive 33): StaggeredGridView.getNextRecordDown has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 5 (11 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (StaggeredGridView.getNextRecordUp) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2912}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d316c5ca174f6d44cd66fa5764bd7bac60cc8a8706ac76056335aa527edd71f"}},{"ruleId":"D2","level":"warning","message":{"text":"StaggeredGridView.getNextRecordUp (cognitive 33): StaggeredGridView.getNextRecordUp has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 5 (11 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (StaggeredGridView.getNextRecordDown) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2830}}}],"partialFingerprints":{"codehealthFindingId/v1":"0320fc0b2a0ac209f88bea723a98531dc1db8b10da3071d40c6e9a95cce4719b"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.arrowScroll (cognitive 32): ViewPager.arrowScroll has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 5, loops 2 (5 pts) (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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2506}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28f5ab17efcadd6dc9863440d8c77f2f1ba62489c60a1aa70f4c58ca3a7ddda"}},{"ruleId":"D2","level":"warning","message":{"text":"CalculatorEditable.internalReplace (cognitive 32): CalculatorEditable.internalReplace has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (7 pts), boolean chains 6, ternaries 2 (6 pts) (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":"apps/Calculator/src/com/android/calculator2/CalculatorEditable.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"984891960516e8916cee1a3f6a74ec26e4cb3ec6b2e21fbbac6cbc2fb5ddfc3b"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.arrowScroll (cognitive 32): ViewPager.arrowScroll has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 5, loops 2 (5 pts) (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":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":2508}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40824d0766bbc2426638f0a8005e97f1905b8435d4580d5b28635bd40a1282c"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaPlaybackActivity.seekMethod1 (cognitive 32): MediaPlaybackActivity.seekMethod1 has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 9, error handling 1 (4 pts), loops 2 (3 pts) (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":"apps/Music/src/com/android/music/MediaPlaybackActivity.java"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb50342366e2621ef17a973788ab55fc61260632212a284057e449d74b4b926"}},{"ruleId":"D2","level":"warning","message":{"text":"AlertUtils.flushOldAlertsFromInternalStorage (cognitive 31): AlertUtils.flushOldAlertsFromInternalStorage has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (28 pts), loops 1 (3 pts) (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertUtils.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d95ac0b3f7c9301ca17afd280fa519684bc18bee48819ac7ecc9b428fe208d"}},{"ruleId":"D2","level":"warning","message":{"text":"AttendeesView.addOneAttendee (cognitive 31): AttendeesView.addOneAttendee has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 6 (12 pts), boolean chains 1, match/switch 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":"apps/Calendar/src/com/android/calendar/event/AttendeesView.java"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"65024a2c5e9fcabeab0da85be5c394cb899c79fc2de1e9897faac0f2d353c25f"}},{"ruleId":"D2","level":"warning","message":{"text":"Done.run (cognitive 31): Done.run has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 4, match/switch 1 (2 pts) (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":"apps/Calendar/src/com/android/calendar/event/EditEventFragment.java"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc3fa2787f51c385f1fa10f1f52cb77f8aaea49d4408815afdb1843c71703fa"}},{"ruleId":"D2","level":"warning","message":{"text":"EditEventView.setViewStates (cognitive 31): EditEventView.setViewStates has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 6 (12 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f08e58b49e4ca83c9632bc05dc309c3e241a1c1027599b8bfc13df63f9bbe1"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.computeEventRelations (cognitive 31): DayView.computeEventRelations has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 3 (7 pts), boolean chains 3 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":2101}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f5c2bb4571d9bb2ea0ba51effe636e530b0503f5a6bce0733d2522bf9fbdcc"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaPlaybackActivity.onTouch (cognitive 31): MediaPlaybackActivity.onTouch has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (30 pts), boolean chains 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackActivity.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7516ccda82ca5f634bd457ec7cf78f8d622241a3488eeea6cf2a1abd25141e"}},{"ruleId":"D2","level":"warning","message":{"text":"1.handleMessage (cognitive 31): 1.handleMessage has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (26 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ed1045dfa87fa6b48808242250b631b104042c8d1bb83022739b433df61147"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.onLayout (cognitive 30): ViewPager.onLayout has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (19 pts), match/switch 2 (8 pts), loops 2, boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6734af60d793497bbea663574ba05ab01e3da743f7bba9de518e3e93d17349"}},{"ruleId":"D2","level":"warning","message":{"text":"EventInfoActivity.onCreate (cognitive 30): EventInfoActivity.onCreate has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 4, error handling 1 (3 pts), ternaries 1 (2 pts) (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":"apps/Calendar/src/com/android/calendar/EventInfoActivity.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d4d6ff530f2cc1969ce928d6261800e43171cc0cf648c384ca27f06f103f55"}},{"ruleId":"D2","level":"warning","message":{"text":"EventInfoFragment.updateCalendar (cognitive 30): EventInfoFragment.updateCalendar has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 7, ternaries 1 (2 pts) (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":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2dd41154a151ad7cecfc637d5a427a6980b992b5ff77f48c12716a6a2bfe01"}},{"ruleId":"D2","level":"warning","message":{"text":"EventRecurrenceFormatter.getRepeatString (cognitive 30): EventRecurrenceFormatter.getRepeatString has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 1 (4 pts), error handling 1 (3 pts), match/switch 1, ternaries 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":"apps/Calendar/src/com/android/calendar/EventRecurrenceFormatter.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"459c9df1410c119e9c97c9e619542f0366ecf77f57aebadb262281c1de8b47e8"}},{"ruleId":"D2","level":"warning","message":{"text":"GoogleCalendarUriIntentFilter.extractEidAndEmail (cognitive 30): GoogleCalendarUriIntentFilter.extractEidAndEmail has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (23 pts), match/switch 1 (4 pts), boolean chains 1, error handling 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/GoogleCalendarUriIntentFilter.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"768cd7f59c75fb327e6a08aabfd3e3eb12ae623e70c9c29c349ddea18a7bf520"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.onLayout (cognitive 30): ViewPager.onLayout has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (19 pts), match/switch 2 (8 pts), loops 2, boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"785ce908cf124785e10838fdb634cdc59055aebd6180b55f23a89d22e216b5a3"}},{"ruleId":"D2","level":"warning","message":{"text":"AgendaByDayAdapter.getView (cognitive 29): AgendaByDayAdapter.getView has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 5 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaByDayAdapter.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"7899861055ddb4a742f8dfc84dc32767c683b2a29837002a2e0ae5ec9ac58f22"}},{"ruleId":"D2","level":"warning","message":{"text":"TimeZoneResultAdapter.onSetFilter (cognitive 29): TimeZoneResultAdapter.onSetFilter has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 3 (9 pts), boolean chains 1, match/switch 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZoneResultAdapter.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6b70df1120eb5d699db0d34b02689ba598652944d3864b67b1ea33a9a65228"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaPlaybackActivity.onLongClick (cognitive 29): MediaPlaybackActivity.onLongClick has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 7, error handling 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackActivity.java"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e23eefee80beff5981f785ae4bcdc40a1be4b9c8069d526d72449c3242478c"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaPlaybackService.saveQueue (cognitive 29): MediaPlaybackService.saveQueue has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 4 (14 pts) (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":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ff8f0b67f860fae9aa0e85e55750793663e7ef4bed96bac6587885c6a1a403"}},{"ruleId":"D2","level":"warning","message":{"text":"MusicUtils.getArtwork (cognitive 29): MusicUtils.getArtwork has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (24 pts), error handling 2 (4 pts), boolean chains 1 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MusicUtils.java"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"e65ba4388f825d891a583dbcb53a106417cca2fac9e528e22069102e118d7be5"}},{"ruleId":"D2","level":"warning","message":{"text":"AlertReceiver.makeDigestNotification (cognitive 28): AlertReceiver.makeDigestNotification has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"5932c9b83e92191d3d3c76648823ce6519de03f4a16eab77ed78829f9dc6ca45"}},{"ruleId":"D2","level":"warning","message":{"text":"MonthByWeekAdapter.setEvents (cognitive 28): MonthByWeekAdapter.setEvents has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthByWeekAdapter.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"51fd273146c367815d570affedc5128375dea4110107c356eb40f4ed563aeaec"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarEventModel.hashCode (cognitive 28): CalendarEventModel.hashCode has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 28. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"54786b6775a5cf114b5fa3527bacbe05d858d331e615caa27057ed67af4114e4"}},{"ruleId":"D2","level":"warning","message":{"text":"GroupingListAdapter.obtainPositionMetadata (cognitive 28): GroupingListAdapter.obtainPositionMetadata has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (27 pts), loops 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/widget/GroupingListAdapter.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"bafbb8f5827902d42cd7b0e1b6d7538313a5844b47278a6172c2b3e2bc6da994"}},{"ruleId":"D2","level":"warning","message":{"text":"RecipientTextWatcher.afterTextChanged (cognitive 28): RecipientTextWatcher.afterTextChanged has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 1 (2 pts), ternaries 1 (2 pts), 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":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":2225}}}],"partialFingerprints":{"codehealthFindingId/v1":"7485f66c916a2fd720a6632f0d246c6a3866f8f72755552425c4e54339d66a9d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgendaWindowAdapter.pruneAdapterInfo (cognitive 27): AgendaWindowAdapter.pruneAdapterInfo has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c33ad4b9b74e05342ce9470872501964e444e940b5c9a6d845eeb4d2c981aae"}},{"ruleId":"D2","level":"warning","message":{"text":"MonthWeekEventsView.onHoverEvent (cognitive 27): MonthWeekEventsView.onHoverEvent has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (19 pts), boolean chains 4, loops 1 (4 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe995f1687bb9ab7a1c3aa16f0d5ddad732e05bcf7c5b97a41383dbf307e5ca"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleWeekView.setWeekParams (cognitive 27): SimpleWeekView.setWeekParams has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (23 pts), ternaries 2, boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/SimpleWeekView.java"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2712b837068caf621d5d8a4c1dbe38896cc1c7cede6d8c205441697711e2808"}},{"ruleId":"D2","level":"warning","message":{"text":"OverScrollerSGV.computeScrollOffset (cognitive 27): OverScrollerSGV.computeScrollOffset has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (26 pts), match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/OverScrollerSGV.java"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35d3c282e21f7304583b4795c00691b54553cbcb2af7f999f6c39e5aaab112d"}},{"ruleId":"D2","level":"warning","message":{"text":"AgendaAdapter.bindView (cognitive 26): AgendaAdapter.bindView has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 4 (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":"apps/Calendar/src/com/android/calendar/agenda/AgendaAdapter.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd184b55e355b755c6f53d5c6a1c37b96abcaa74ccd42f32d59bd2344a2f9cf"}},{"ruleId":"D2","level":"warning","message":{"text":"EditEventView.setModel (cognitive 26): EditEventView.setModel has cognitive complexity 26 (threshold 15). Drivers by points: if/else 23 (24 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"393069cba1a0d6c06bcc91ba5dab65a9a532395fba91b75ed9e40dea689d66d1"}},{"ruleId":"D2","level":"warning","message":{"text":"RecurrencePickerDialog.updateDialog (cognitive 26): RecurrencePickerDialog.updateDialog has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 4 (6 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"39168e1f46650c761efe1143a42550451c0ece8eb794a61184e7a352c9aea93a"}},{"ruleId":"D2","level":"warning","message":{"text":"AllInOneActivity.onCreate (cognitive 26): AllInOneActivity.onCreate has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49cdaf4c3b2ed53e1a4133ec6b5d9a5b68be4514d57430dafe05282a1158651"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.doSingleTapUp (cognitive 26): DayView.doSingleTapUp has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 7 (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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":3856}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65754956bf7457d5e96c9a71e862fdd97674eb4f7e9e3da7b319ee1b1c32950"}},{"ruleId":"D2","level":"warning","message":{"text":"Utils.extendedLinkify (cognitive 26): Utils.extendedLinkify has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 4, loops 3 (4 pts) (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":"apps/Calendar/src/com/android/calendar/Utils.java"},"region":{"startLine":1770}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0abf24dde1fc0ad5e2ad69ad91fc8cc0b1b7b5d95a1971c41914b6df3ddc4ef"}},{"ruleId":"D2","level":"warning","message":{"text":"RecurrenceSet.init (cognitive 26): RecurrenceSet.init has cognitive complexity 26 (threshold 15). Drivers by points: loops 5 (16 pts), if/else 5 (9 pts), boolean chains 1 (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceSet.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac9f7de62468b1e86cfa519cd78581b641a76c7baeeecfb5b78cb9581362d68"}},{"ruleId":"D2","level":"warning","message":{"text":"RecipientEditTextView.handlePendingChips (cognitive 26): RecipientEditTextView.handlePendingChips has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 4, loops 1 (2 pts) (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":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"258cfeeb2e511f76489cc8651c2071698ca53fe1450e5f1a160c40ffc412ca7f"}},{"ruleId":"D2","level":"warning","message":{"text":"TimeZoneData.loadTzs (cognitive 26): TimeZoneData.loadTzs has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZoneData.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"02671ece9749d043ddf7949258d29df6961878327e0af10985a36a07b4da7b72"}},{"ruleId":"D2","level":"warning","message":{"text":"5.startTransition (cognitive 26): 5.startTransition has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 2 (10 pts), loops 1 (3 pts) (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchFragment.java"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d19de54b478ceb567f421b2c3dfda836b1c31f83450bf1cbfe902da3be39787"}},{"ruleId":"D2","level":"warning","message":{"text":"1.run (cognitive 26): 1.run has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (22 pts), boolean chains 3, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/timer/TimerFragment.java"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c14874e5f2af2d5b1408cb65bcf2fcf6bd0132442ea98304c16f6837e4a68d6"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaPlaybackService.openCurrentAndNext (cognitive 26): MediaPlaybackService.openCurrentAndNext has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab46e742698e9b757e2a6be9412596c1d2fb5e5ab489888d1ac4ee3344d13a2d"}},{"ruleId":"D2","level":"warning","message":{"text":"EndSpinnerAdapter.getView (cognitive 25): EndSpinnerAdapter.getView has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 2, match/switch 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":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1b8939336f456643ef3955891403965c80d824d250f7bf0b799beb41961963"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.switchViews (cognitive 25): DayView.switchViews has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (25 pts) (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"5023de1ac6a82a0c5bab74e51ae1029c7d3652dfb325c17c2ca70b34416e82ba"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayFilter.handleSearchByGmt (cognitive 25): ArrayFilter.handleSearchByGmt has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (6 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"4219b60c3ed29b2f22b39c4e7cc722e6e7125437a5b251da46aaca806457b633"}},{"ruleId":"D2","level":"warning","message":{"text":"1.performFiltering (cognitive 25): 1.performFiltering has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 3, loops 2 (3 pts) (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":"apps/DeskClock/src/com/android/deskclock/worldclock/CitiesActivity.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe14c6c49ef7c235c9e76239fb73df142a146275ca0945c21613d743fff19d4"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaPlaybackActivity.onKeyUp (cognitive 25): MediaPlaybackActivity.onKeyUp has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 2, error handling 1, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackActivity.java"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec50bf2023b4a7a46736af3bce27cf42fc7c62b0f2a70f5bc3822d3c1530f98"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.dataSetChanged (cognitive 24): ViewPager.dataSetChanged has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (3 pts), 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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"10cc9c93d45467fb57254a71311c7d2eab869f1440ddaf2d9a019e80404e29a8"}},{"ruleId":"D2","level":"warning","message":{"text":"EditEventView.setAllDayViewsVisibility (cognitive 24): EditEventView.setAllDayViewsVisibility has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 4, ternaries 1 (2 pts) (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":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4844d10b1a654f9c90541fb890ecc25c84fbe8e3016952090551583250b50c"}},{"ruleId":"D2","level":"warning","message":{"text":"EventInfo.equals (cognitive 24): EventInfo.equals has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21 (24 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/widget/CalendarAppWidgetModel.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2321f408dc4ccf8de10fbbbe47885e1811e65c750f9f5b822e2e73282d832f1"}},{"ruleId":"D2","level":"warning","message":{"text":"AllInOneActivity.initFragments (cognitive 24): AllInOneActivity.initFragments has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 3, error handling 1 (3 pts) (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":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ab115e5f19d6debc70eb2fdbf175f1924e6e9ef9c39b5109cfe7d480a95615"}},{"ruleId":"D2","level":"warning","message":{"text":"EventRecurrence.parse (cognitive 24): EventRecurrence.parse has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (23 pts), 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":"apps/Calendar/src/com/android/calendarcommon2/EventRecurrence.java"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"da85dbb3ec2bb58f7517c7ab4f84347d4985336e5c71df6e737a5613a35427d6"}},{"ruleId":"D2","level":"warning","message":{"text":"OperationScheduler.parseOptions (cognitive 24): OperationScheduler.parseOptions has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 3, 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":"apps/Calendar/src/com/android/common/OperationScheduler.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f74d5db84e7d9d9d983df9bbc228d1f796ee4c616bc0d82a27df99330d9382"}},{"ruleId":"D2","level":"warning","message":{"text":"Rfc822Validator.fixText (cognitive 24): Rfc822Validator.fixText has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 1 (4 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/Rfc822Validator.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae7f31e0cc5801b303885056c6e4c0c75bc1d24477bb0485f987ecd87cbe28b"}},{"ruleId":"D2","level":"warning","message":{"text":"RecipientEditTextView.createTokenizedEntry (cognitive 24): RecipientEditTextView.createTokenizedEntry has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 3, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b5f6fe27ea807e2c65b3872dab9c073e2a3b96a08cd2b16e272a4fbe3f5e53"}},{"ruleId":"D2","level":"warning","message":{"text":"RecipientEditTextView.shrink (cognitive 24): RecipientEditTextView.shrink has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 3, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"2807cb800484699af4aaebf2882b929ec6dcf64ca02b9affbccedd2c69a5a732"}},{"ruleId":"D2","level":"warning","message":{"text":"AlarmStateManager.registerInstance (cognitive 24): AlarmStateManager.registerInstance has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (23 pts), 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":"apps/DeskClock/src/com/android/deskclock/alarms/AlarmStateManager.java"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ca833e3d14b23c3eb67ad2765e1ead83c16ef1f417c20254b7af1eedc3d1fa"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.dataSetChanged (cognitive 24): ViewPager.dataSetChanged has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 2 (3 pts), 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":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"900f8a4e562366e6c205903cd1ff510bca51243393d94611ca14b40b68dec9d7"}},{"ruleId":"D2","level":"warning","message":{"text":"EditEventFragment.startQuery (cognitive 23): EditEventFragment.startQuery has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (23 pts) (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":"apps/Calendar/src/com/android/calendar/event/EditEventFragment.java"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"160bdc0dbd88037e20195535719ea1743da3ce66257a2640b6b0a46e69764124"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarAppWidgetModel.buildFromCursor (cognitive 23): CalendarAppWidgetModel.buildFromCursor has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 4 (5 pts) (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":"apps/Calendar/src/com/android/calendar/widget/CalendarAppWidgetModel.java"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff13d92f79750bb0c33bdb30bb9bce46ec55edb6247562172accf690902dd762"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.remeasure (cognitive 23): DayView.remeasure has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"019127c0f6cf18f44a600b4f4e68966dc028f0400bc5a64716790c090231c553"}},{"ruleId":"D2","level":"warning","message":{"text":"RecurrenceProcessor.filterMonthlySetPos (cognitive 23): RecurrenceProcessor.filterMonthlySetPos has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7276f876cbaad732b6c5b3cbf9bdbc58f6e7db5372eafd180f058616b342f4e"}},{"ruleId":"D2","level":"warning","message":{"text":"RadialSelectorView.getDegreesFromCoords (cognitive 23): RadialSelectorView.getDegreesFromCoords has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 6 (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":"apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ffdd63bda311fe50bf77b334dd160e3065b369c0ff50412a13806d7027ef3b8"}},{"ruleId":"D2","level":"warning","message":{"text":"RecipientEditTextView.commitChip (cognitive 23): RecipientEditTextView.commitChip has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 4 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"1885d9e3db32ae8ca5e4aa437ab666ad502eaa872dce20517f5b67a9849a1ff5"}},{"ruleId":"D2","level":"warning","message":{"text":"DigitalAppWidgetProvider.onReceive (cognitive 23): DigitalAppWidgetProvider.onReceive has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3 (9 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/alarmclock/DigitalAppWidgetProvider.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef182cd44f33eb77ca68ca0ed25b391248fdb6cc1acdaa865af8c782cbaa6e9f"}},{"ruleId":"D2","level":"warning","message":{"text":"Tweener.to (cognitive 23): Tweener.to has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 2, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/Tweener.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bfbe35d9212a8d71adcacb8540765353f0765c0e09fa2dd15862912543349e"}},{"ruleId":"D2","level":"warning","message":{"text":"StaggeredGridView.computeScroll (cognitive 23): StaggeredGridView.computeScroll has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1eadf7d5b668a4e1acd7fc593a0b788f8260dfce5b3fc9e3d466ecf9260497"}},{"ruleId":"D2","level":"warning","message":{"text":"StaggeredGridView.trackMotionScroll (cognitive 23): StaggeredGridView.trackMotionScroll has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 2 (6 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d10776c09efe1d5635989dc1b24e9984527122aa9c4207465590342ab834034"}},{"ruleId":"D2","level":"warning","message":{"text":"RadialSelectorView.getDegreesFromCoords (cognitive 23): RadialSelectorView.getDegreesFromCoords has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 6 (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":"apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f097103acb301039337cc65717b27be0f2673796000145e278b782b16c77924"}},{"ruleId":"D2","level":"warning","message":{"text":"MonthWeekEventsView.drawDNA (cognitive 22): MonthWeekEventsView.drawDNA has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16c66b3e2004048de4f2955859c201b94169c00680bf57ba2654b8d144ab142"}},{"ruleId":"D2","level":"warning","message":{"text":"DataUsageStatUpdater.update (cognitive 22): DataUsageStatUpdater.update has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 1 (2 pts) (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":"apps/Calendar/src/com/android/common/contacts/DataUsageStatUpdater.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9b0e9146e726fb5d5ba231d7ff201df8990186ee955afa17e223d187d61dbf"}},{"ruleId":"D2","level":"warning","message":{"text":"RecipientEditTextView.selectChip (cognitive 22): RecipientEditTextView.selectChip has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), error handling 2 (4 pts), 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":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":1977}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d28f7e13f6381e863096b2ae22f32e77866c33b88aecc22cef30f736bf9e585"}},{"ruleId":"D2","level":"warning","message":{"text":"StopwatchService.onStartCommand (cognitive 22): StopwatchService.onStartCommand has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchService.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1c7fc445abbfce83b1e828d2d4bfe03be9f7691227eb0d4ac1a25c03a5baf7"}},{"ruleId":"D2","level":"warning","message":{"text":"TimerReceiver.showInUseNotification (cognitive 22): TimerReceiver.showInUseNotification has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/timer/TimerReceiver.java"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1e0d527fd6f012be9032dca59c4b93d395e94cb818b40a47e9c6a01f83c2d9"}},{"ruleId":"D2","level":"warning","message":{"text":"TouchInterceptor.doExpansion (cognitive 22): TouchInterceptor.doExpansion has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/TouchInterceptor.java"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfcaa84330d0e588ab4541630d00b0607dd94d36331bbcf8d561884d65015af"}},{"ruleId":"D2","level":"warning","message":{"text":"AlertReceiver.onReceive (cognitive 21): AlertReceiver.onReceive has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (21 pts) (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":"apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fcbdc186e84793c30f64c94012a81e4efc9555c96e18338b2cd29389eab87f3"}},{"ruleId":"D2","level":"warning","message":{"text":"AlertService.generateAlerts (cognitive 21): AlertService.generateAlerts has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (18 pts), loops 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0a89d6e7b74ca71ae8e6fab0e972dbb7bbb298b5be934a1e13be0fe2c79ad1"}},{"ruleId":"D2","level":"warning","message":{"text":"EditEventHelper.offsetStartTimeIfNecessary (cognitive 21): EditEventHelper.offsetStartTimeIfNecessary has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 5, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventHelper.java"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"532e2375eed7aedba0fc5264260899369fad85bf689cafbcea8c042a31ce9dcb"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleDayPickerFragment.goTo (cognitive 21): SimpleDayPickerFragment.goTo has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (19 pts), 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, 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":"apps/Calendar/src/com/android/calendar/month/SimpleDayPickerFragment.java"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"448ea880ab9e3fca6d2881c4683a9fa5157312ed1bca11835008c1026411c176"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectCalendarsSimpleAdapter.getView (cognitive 21): SelectCalendarsSimpleAdapter.getView has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6d3fac60252e1952fdfbb9606fe8a1b98b929841413643e3a5fb3a5e58570b"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.adjustHourSelection (cognitive 21): DayView.adjustHourSelection has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":1933}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce71b9a668957a2b41deb1285537226e07baa1ead7a909ef7f06b27d3280c016"}},{"ruleId":"D2","level":"warning","message":{"text":"RecipientEditTextView.handlePaste (cognitive 21): RecipientEditTextView.handlePaste has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":2395}}}],"partialFingerprints":{"codehealthFindingId/v1":"667e7c9fae3dbd4cef6174819a7298ea624238c361ebb17344678f0e6fa6f56a"}},{"ruleId":"D2","level":"warning","message":{"text":"CircleTimerView.onDraw (cognitive 21): CircleTimerView.onDraw has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 2 (4 pts), 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":"apps/DeskClock/src/com/android/deskclock/CircleTimerView.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc94d9fd5f28bf41437d8dde285d76444c904cd9a8dc36a94ff0f8e5ebc47e15"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryListAdapter.bindView (cognitive 21): QueryListAdapter.bindView has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 6 (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":"apps/Music/src/com/android/music/QueryBrowserActivity.java"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ec164461ee2c5f515e346b69f3fe708c4b53c2dcbe417b128906439514ca00"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.addFocusables (cognitive 20): ViewPager.addFocusables has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, loops 1 (2 pts) (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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2618}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac98f8ad41ea1cf4bc037d2b26c52d900de5c3d2a08b414e1a0c0e4f1fda3cb1"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.onPageScrolled (cognitive 20): ViewPager.onPageScrolled has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 pts), match/switch 1 (3 pts) (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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"d647eb2105a316803b217cd86463e7609360a530ae3462b7a522233198336080"}},{"ruleId":"D2","level":"warning","message":{"text":"MonthWeekEventsView.drawEvent (cognitive 20): MonthWeekEventsView.drawEvent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (17 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0ab3e62aa72cf8c6a63e8da0e92718eac91a39e9ae647d70d779266c3ee56e"}},{"ruleId":"D2","level":"warning","message":{"text":"MonthWeekEventsView.drawEvents (cognitive 20): MonthWeekEventsView.drawEvents has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (5 pts), 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":"apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ee810a7fc78487cad83c82d46a73e5807028bc78be5cc1427018bc780ca319"}},{"ruleId":"D2","level":"warning","message":{"text":"AllInOneActivity.onOptionsItemSelected (cognitive 20): AllInOneActivity.onOptionsItemSelected has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 3 (6 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e326c1868d55a69af73e2c82d665e42512c4432dfe14fa5f35b976d50abada"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarEventModel.\u003Cinit\u003E (cognitive 20): CalendarEventModel.\u003Cinit\u003E has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"8038c2c71451e5f811bd9129fa676485becb2a031c21ba84fc57a06b053b060c"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.computeAllDayNeighbors (cognitive 20): DayView.computeAllDayNeighbors has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":3034}}}],"partialFingerprints":{"codehealthFindingId/v1":"b744791a3c297fe783b630868986d865057c401268fc2367e2f8d33e41f912eb"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.onCreateContextMenu (cognitive 20): DayView.onCreateContextMenu has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (20 pts) (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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":4337}}}],"partialFingerprints":{"codehealthFindingId/v1":"629c485476d56fa13e51ef85bec8307c13579dd442538eea742b1937c19ace03"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.setSelected (cognitive 20): DayView.setSelected has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (18 pts), 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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfefd3e93bb46203cd02edb9058f1e1cda4ac02f9ae34d73ef99ea53cec23e44"}},{"ruleId":"D2","level":"warning","message":{"text":"RecurrenceProcessor.unsafeNormalize (cognitive 20): RecurrenceProcessor.unsafeNormalize has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 4 (5 pts), loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"a709712cbae1ed0a8d4b7843d8d7f8310778d5ef58b15d0e0d92f02192abeeb7"}},{"ruleId":"D2","level":"warning","message":{"text":"RadialPickerLayout.reselectSelector (cognitive 20): RadialPickerLayout.reselectSelector has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 5 (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":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1b249d5e8d30621333adad4eb24a7ba25fa4caef24c77c455cb37ec57f4e72"}},{"ruleId":"D2","level":"warning","message":{"text":"RecipientEditTextView.createUnselectedChip (cognitive 20): RecipientEditTextView.createUnselectedChip has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, ternaries 1 (2 pts) (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":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"e157f0b39d29a15012eb3cb4a8bd588843b45c155b4a25ab8d91706f9813d1b5"}},{"ruleId":"D2","level":"warning","message":{"text":"RecipientEditTextView.onTouchEvent (cognitive 20): RecipientEditTextView.onTouchEvent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (16 pts), 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":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":1423}}}],"partialFingerprints":{"codehealthFindingId/v1":"e769fe48324da225995dfffff8fa77fdb750fb2c09a6b06ce2fdbce20344f33a"}},{"ruleId":"D2","level":"warning","message":{"text":"TimeZoneData.printTimeZones (cognitive 20): TimeZoneData.printTimeZones has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZoneData.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"753530b2c56440a5ff4ed1167eab3c61f4c94eab3d1de3f6ca71d8fe475446e4"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.addFocusables (cognitive 20): ViewPager.addFocusables has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, loops 1 (2 pts) (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":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":2620}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1704fa91238fa00c8eb14c64498331160bd396b7de032531ee345fe00f7a431"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.onPageScrolled (cognitive 20): ViewPager.onPageScrolled has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 pts), match/switch 1 (3 pts) (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":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf1d7f494d90fc86196b67a782a3a348a9696c7d9d25cf2ac5d1e133fd95231"}},{"ruleId":"D2","level":"warning","message":{"text":"StaggeredGridView.populate (cognitive 20): StaggeredGridView.populate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"57438b8623c3e247c44853884470a0fac7f2db887818424dab9d70866110c32c"}},{"ruleId":"D2","level":"warning","message":{"text":"5.onChanged (cognitive 20): 5.onChanged has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), 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":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b096b3ad20ad3ee181abe908aa4e4af3712327d4c1c22b07fff4a8a0bf45a13"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaPlaybackService.onStartCommand (cognitive 20): MediaPlaybackService.onStartCommand has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f6f6386728bb65734d3e59f4f3149fd4f58a6fa17554b52eccd6884a8d99ca"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaPlaybackService.removeTracksInternal (cognitive 20): MediaPlaybackService.removeTracksInternal has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":1611}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3857bb90629bd62afd1858341682260079a9baa260fe458e3bf1666f371dc6d"}},{"ruleId":"D2","level":"warning","message":{"text":"MusicUtils.getArtworkQuick (cognitive 20): MusicUtils.getArtworkQuick has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 2 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MusicUtils.java"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"4530d6910683df137772937d94049c8dd97473ce3fbdcdd2960916ef9379a3e2"}},{"ruleId":"D2","level":"warning","message":{"text":"RadialPickerLayout.reselectSelector (cognitive 20): RadialPickerLayout.reselectSelector has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 5 (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":"apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"1423d52071bb310f4942c6e7964a055fe41930cd3187c7bffd26d8803520561c"}},{"ruleId":"D2","level":"warning","message":{"text":"AlertReceiver.createEmailIntent (cognitive 19): AlertReceiver.createEmailIntent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, boolean chains 5, match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e54cd204ac7de5dddce0786d6cc033735e1052b4a4dad36ebdd86fc5a44fe1"}},{"ruleId":"D2","level":"warning","message":{"text":"AlertService.processMessage (cognitive 19): AlertService.processMessage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), error handling 1 (3 pts), boolean chains 2 (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":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab53ab43f1f57b40cf91604f75fdda5e63a5b7f209f1b853dffc1072885266c3"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalDismissManager.syncSenderDismissCache (cognitive 19): GlobalDismissManager.syncSenderDismissCache has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 1 (5 pts), loops 2 (4 pts) (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":"apps/Calendar/src/com/android/calendar/alerts/GlobalDismissManager.java"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f6f86f6b4db00622b6e12dec0df586f294ae9430ed479aa97e93dae2e66515"}},{"ruleId":"D2","level":"warning","message":{"text":"EventLocationAdapter.getView (cognitive 19): EventLocationAdapter.getView has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (19 pts) (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":"apps/Calendar/src/com/android/calendar/event/EventLocationAdapter.java"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9fdd28e625bfbf3ca75c6f912ad115ec126230897f0a184436a4c3168078fe"}},{"ruleId":"D2","level":"warning","message":{"text":"TimeZoneUtils.setTimeZone (cognitive 19): TimeZoneUtils.setTimeZone has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarUtils.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0c13b548fbeabadb69209de8f4c8c1fd3de7713ce94062c93db60114b5d41a"}},{"ruleId":"D2","level":"warning","message":{"text":"TimePickerDialog.getEnteredTime (cognitive 19): TimePickerDialog.getEnteredTime has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed5d141569209bc8fbdc29f275b1e606a42443a7aa4a3f18aa977311f0b62c1"}},{"ruleId":"D2","level":"warning","message":{"text":"TimeZoneResultAdapter.saveRecentTimezone (cognitive 19): TimeZoneResultAdapter.saveRecentTimezone has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (6 pts), 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":"apps/Calendar/src/com/android/timezonepicker/TimeZoneResultAdapter.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0da1c8c63502292a277caaf3af343b1360573931541529298cd223c6e186656"}},{"ruleId":"D2","level":"warning","message":{"text":"2.onPreDraw (cognitive 19): 2.onPreDraw has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), ternaries 1 (3 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"744027882fef4ae9c0ae4c71703be26588edca436b15061ff8350268446b49ab"}},{"ruleId":"D2","level":"warning","message":{"text":"TrackBrowserActivity.init (cognitive 19): TrackBrowserActivity.init has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 1 (3 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/TrackBrowserActivity.java"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52596e017a26382a9c9f52da0e85ee6d7fecda51d271824c2090f0baac3ff37"}},{"ruleId":"D2","level":"warning","message":{"text":"VerticalTextSpinner.onTouchEvent (cognitive 19): VerticalTextSpinner.onTouchEvent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 3, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/VerticalTextSpinner.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"def339a91943d7a43ede61c00299e810215f527c0a11b35bc9c56087ac76ca95"}},{"ruleId":"D2","level":"warning","message":{"text":"TimePickerDialog.getEnteredTime (cognitive 19): TimePickerDialog.getEnteredTime has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc42b123e5d29429f599ac5cc85389c6f7270aa92bde44a6f6589e2e482e49f"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.onDraw (cognitive 18): ViewPager.onDraw has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2206}}}],"partialFingerprints":{"codehealthFindingId/v1":"369eaac82d3021fb53de2f09847dcb7c6fdc0bb885ae65eedf56e805c0d4d6f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.setCurrentItemInternal (cognitive 18): ViewPager.setCurrentItemInternal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, loops 1 (2 pts) (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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"382064a01a0636de171d517f81a28963e87a2cb2c0bafd351a5c9beabea39a9c"}},{"ruleId":"D2","level":"warning","message":{"text":"EditEventHelper.getContentValuesFromModel (cognitive 18): EditEventHelper.getContentValuesFromModel has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (16 pts), ternaries 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventHelper.java"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ae9e65f84a81e064a9e27a6c87a0983dcf0c455e42286cf6232197f5ce85d1"}},{"ruleId":"D2","level":"warning","message":{"text":"CalendarViewAdapter.getView (cognitive 18): CalendarViewAdapter.getView has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 2 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarViewAdapter.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"2117fc258b0481aabfa261bf64361c1404adff40edc40e83ab9578deccb78446"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.drawDayHeaderLoop (cognitive 18): DayView.drawDayHeaderLoop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":2354}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee510ec84365e8305d0363cbe7f5ee7b38907785ee7dcff58bdac594779eecfa"}},{"ruleId":"D2","level":"warning","message":{"text":"DayView.onDraw (cognitive 18): DayView.onDraw has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":2169}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf0300386ddb101e9734703bd519b23a91d94a8e7504a3f24910f6a9a425ebf"}},{"ruleId":"D2","level":"warning","message":{"text":"ICalendar.parseLine (cognitive 18): ICalendar.parseLine has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/ICalendar.java"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d5cb73c97a5e581859c61aca30665c5116716cd542b5d20c324f46e033d2bf"}},{"ruleId":"D2","level":"warning","message":{"text":"CompositeCursorAdapter.getView (cognitive 18): CompositeCursorAdapter.getView has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"85510d4eb29bbb0ce570840cb93f3ed1a455beca005ed504a229ff380419ae30"}},{"ruleId":"D2","level":"warning","message":{"text":"TimePickerDialog.onCreateView (cognitive 18): TimePickerDialog.onCreateView has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 11 (12 pts), if/else 5, boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a7d3f593f1ad65e0bd9c5b2ac870474f07ccfe0475a2636adc9af78e572c1f"}},{"ruleId":"D2","level":"warning","message":{"text":"TimePickerDialog.updateDisplay (cognitive 18): TimePickerDialog.updateDisplay has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (11 pts), if/else 4 (6 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"231089c3de6b48dc648aab9c0e6300c97fa0e85859363b9414c6cbbcf62a3f32"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseRecipientAdapter.getView (cognitive 18): BaseRecipientAdapter.getView has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/BaseRecipientAdapter.java"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec30b826962d5b6571bddfad9add6c69825570bdfff18c91d2cfd93cb683670"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.onDraw (cognitive 18): ViewPager.onDraw has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":2208}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f602a68f2825152eae8deee5fb27dfedc424142c19f77e95e9566c8c393699"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewPager.setCurrentItemInternal (cognitive 18): ViewPager.setCurrentItemInternal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, loops 1 (2 pts) (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":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6eb46af91761d22d9928a875c3dcd7c950db0be2fbad9fa12ed1e4fef327a12"}},{"ruleId":"D2","level":"warning","message":{"text":"StaggeredGridView.computeVerticalScrollOffset (cognitive 18): StaggeredGridView.computeVerticalScrollOffset has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":3462}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c5db94458bff6d8377c98d1fa61b1bf84ac666b2a9d5aba66a409ca47116b9"}},{"ruleId":"D2","level":"warning","message":{"text":"ArtistAlbumBrowserActivity.onContextItemSelected (cognitive 18): ArtistAlbumBrowserActivity.onContextItemSelected has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 3 (6 pts), 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":"apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"2935b23b01421445d8f893f92a0b72eb10884aba1affde822fa53ba8515e94e4"}},{"ruleId":"D2","level":"warning","message":{"text":"ArtistAlbumBrowserActivity.onCreateContextMenu (cognitive 18): ArtistAlbumBrowserActivity.onCreateContextMenu has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba77fd1f4ef37aaf316262ebb0e085ebe1ccd9fce7c29aef6ef549fba5f4059"}},{"ruleId":"D2","level":"warning","message":{"text":"MusicUtils.displayDatabaseError (cognitive 18): MusicUtils.displayDatabaseError has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MusicUtils.java"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"28dc35d9100496e2d297cbbbf25090527a906d7cb503b78c06a464e56e4a795d"}},{"ruleId":"D2","level":"warning","message":{"text":"TimePickerDialog.onCreateView (cognitive 18): TimePickerDialog.onCreateView has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 11 (12 pts), if/else 5, boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca0a4c91d1fdbf7dd4e4f13fe5c408a66035b457696ab5eed6f2061b2396077"}},{"ruleId":"D2","level":"warning","message":{"text":"TimePickerDialog.updateDisplay (cognitive 18): TimePickerDialog.updateDisplay has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (11 pts), if/else 4 (6 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"1293c18399267dfd6a8b621ddec71fe92187633d2429e1e67203ac230125f54a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgendaWindowAdapter.doQuery (cognitive 17): AgendaWindowAdapter.doQuery has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"7495b57632744cda23962c9d3e098f683aa9d0a7dc4cb42771fe5f36cca5c2ab"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalDismissManager.processEventIds (cognitive 17): GlobalDismissManager.processEventIds has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 1 (3 pts), loops 2 (3 pts), 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":"apps/Calendar/src/com/android/calendar/alerts/GlobalDismissManager.java"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"003c1b88651c08d33dc297a753989276a6bf34957939a6a5ae786e80f4c9ccf2"}},{"ruleId":"D2","level":"warning","message":{"text":"EditEventFragment.onActionBarItemSelected (cognitive 17): EditEventFragment.onActionBarItemSelected has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), 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":"apps/Calendar/src/com/android/calendar/event/EditEventFragment.java"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"338485730815a4bcefe9f0ce82e6d484451bf512ae4829d884d0c5a0806130c3"}},{"ruleId":"D2","level":"warning","message":{"text":"EditEventFragment.onCreate (cognitive 17): EditEventFragment.onCreate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (17 pts) (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":"apps/Calendar/src/com/android/calendar/event/EditEventFragment.java"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"14071715b95463eae7d29d6b767aaf94fabee44271808535218b473afdd486de"}},{"ruleId":"D2","level":"warning","message":{"text":"EditEventView.addFieldsRecursive (cognitive 17): EditEventView.addFieldsRecursive has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 1 (2 pts), 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":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d49ed1c21159ac57bb4e16a24b95887429f60dd439c95d81b2ea6c18727930"}},{"ruleId":"D2","level":"warning","message":{"text":"EditEventView.setCalendarsCursor (cognitive 17): EditEventView.setCalendarsCursor has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"650b7cf0db4e45a2a433524a1e4004d7f276934faf0ceeaf401aa908cafbf4df"}},{"ruleId":"D2","level":"warning","message":{"text":"DeleteEventHelper.delete (cognitive 17): DeleteEventHelper.delete has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 1 (2 pts) (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":"apps/Calendar/src/com/android/calendar/DeleteEventHelper.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"a345ebfb3f65dec37fe06f5cdd9aca5c2974aad17e4d3c6c38acde8396228509"}},{"ruleId":"D2","level":"warning","message":{"text":"Event.doComputePositions (cognitive 17): Event.doComputePositions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (5 pts) (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":"apps/Calendar/src/com/android/calendar/Event.java"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"33189ba918fd714cb3e8490672d001cdc74f2c777cb0465cc6ea03c6fe21225e"}},{"ruleId":"D2","level":"warning","message":{"text":"Duration.parse (cognitive 17): Duration.parse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 1, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/Duration.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"623bac9e1581a73fe990f8a697dc36b324a9f14bb097a9bdb34cae7c298b02d4"}},{"ruleId":"D2","level":"warning","message":{"text":"CompositeCursorAdapter.getItemId (cognitive 17): CompositeCursorAdapter.getItemId has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 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":"apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"e528786d690e0277c094ef7c2159f7b73ac6f7eae853907de316ef2eea048f41"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollStateRunnable.run (cognitive 17): ScrollStateRunnable.run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 1 (2 pts) (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":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"16aac828446a6cdaef238eec231bb4be93abb3d77b77715093722133c7321bdc"}},{"ruleId":"D2","level":"warning","message":{"text":"RadialPickerLayout.performAccessibilityAction (cognitive 17): RadialPickerLayout.performAccessibilityAction has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (17 pts) (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":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a1ea5f45687b328f13d0c8ae67034698efe4225c169484adcf96b10d454eef"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseRecipientAdapter.setupOtherDirectories (cognitive 17): BaseRecipientAdapter.setupOtherDirectories has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/BaseRecipientAdapter.java"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"7284b4af84e96e9fd6057744bd3479ac845c18ef741d56c52018c1c94e61df6f"}},{"ruleId":"D2","level":"warning","message":{"text":"RecipientEditTextView.createReplacementChip (cognitive 17): RecipientEditTextView.createReplacementChip has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 1 (3 pts), boolean chains 2, error handling 1 (2 pts) (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":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"a643dfc520fc17b375602ec45acee5f76382a12528c9ee24f0cb2c36c6899886"}},{"ruleId":"D2","level":"warning","message":{"text":"RecipientEditTextView.sanitizeBetween (cognitive 17): RecipientEditTextView.sanitizeBetween has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), 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":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e99d42608072b1ae517d86d20c41582fb615e713953d0d255788a903d0ba88"}},{"ruleId":"D2","level":"warning","message":{"text":"StaggeredGridView.handleOverfling (cognitive 17): StaggeredGridView.handleOverfling has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), 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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":1399}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf494f0c894b54863ac70fac741a387cfac9e8b82b78616eef3439471abe0b92"}},{"ruleId":"D2","level":"warning","message":{"text":"StaggeredGridView.restoreScrollPosition (cognitive 17): StaggeredGridView.restoreScrollPosition has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":3259}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc071541e28ce613386c17627bbea5e9c545a86e25db0d326f84fdf5bef3558"}},{"ruleId":"D2","level":"warning","message":{"text":"1.onReceive (cognitive 17): 1.onReceive has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2 (nesting depth added 8). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/ClockFragment.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3f29cd370d4e96004a5a0a695188ae07c2c7e17624a3096dc5da77022c6666"}},{"ruleId":"D2","level":"warning","message":{"text":"MusicPicker.onCreate (cognitive 17): MusicPicker.onCreate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (17 pts) (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":"apps/Music/src/com/android/music/MusicPicker.java"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc0a07331ea76eed7019e3aafb5bb5c2b86cf9a862eb165617dc4c72f4a911f"}},{"ruleId":"D2","level":"warning","message":{"text":"3.onServiceConnected (cognitive 17): 3.onServiceConnected has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 1 (3 pts) (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":"apps/Music/src/com/android/music/PlaylistBrowserActivity.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"29371502a80f4bc346195ecac0e8e3b120869b1c9f1f629a3830ba167489c0ea"}},{"ruleId":"D2","level":"warning","message":{"text":"TrackListAdapter.bindView (cognitive 17): TrackListAdapter.bindView has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/TrackBrowserActivity.java"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57c77d3f7c3ab815da3c15d9d452ee822ae698581e866c03f3861d6a5e89f90"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollStateRunnable.run (cognitive 17): ScrollStateRunnable.run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 1 (2 pts) (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":"apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ea0ad565f97a151e9543dba5009601ac837deaa9e5ff7064f67fc195f05c58"}},{"ruleId":"D2","level":"warning","message":{"text":"RadialPickerLayout.performAccessibilityAction (cognitive 17): RadialPickerLayout.performAccessibilityAction has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (17 pts) (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":"apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e9dd5c00c14d895954d26f97258106f89afa68c881a148cb2089e996847e1a"}},{"ruleId":"D2","level":"warning","message":{"text":"EditEventActivity.getEventInfoFromIntent (cognitive 16): EditEventActivity.getEventInfoFromIntent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventActivity.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"839cd27416c76d4602e8436d46901bc3273d93369ef1d4e7c64b5aa8e1ffcbcf"}},{"ruleId":"D2","level":"warning","message":{"text":"EditEventFragment.displayEditWhichDialog (cognitive 16): EditEventFragment.displayEditWhichDialog has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (16 pts) (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":"apps/Calendar/src/com/android/calendar/event/EditEventFragment.java"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"75633a808c068540968c14af74e462e5649ef0d783343dcf24240d3f6a1c38a5"}},{"ruleId":"D2","level":"warning","message":{"text":"RecurrencePickerDialog.canHandleRecurrenceRule (cognitive 16): RecurrencePickerDialog.canHandleRecurrenceRule has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, loops 1, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e9f2e57d30d0d1deae7799264c9e71bda3a5eab7e7ddbce371f6c0682acb66"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncTZHandler.onQueryComplete (cognitive 16): AsyncTZHandler.onQueryComplete has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarUtils.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6117d51b2a9b8b43e5fc09184096a4ff9ad6efa35d3441e141627ac5b2ea14"}},{"ruleId":"D2","level":"warning","message":{"text":"EventGeometry.pointToEvent (cognitive 16): EventGeometry.pointToEvent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (16 pts) (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":"apps/Calendar/src/com/android/calendar/EventGeometry.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ab8bf8d0d1894483a10f4aecc0a2bc8aa18ba8173a575867cd8f01f0742034"}},{"ruleId":"D2","level":"warning","message":{"text":"EventInfoFragment.initReminders (cognitive 16): EventInfoFragment.initReminders has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":1909}}}],"partialFingerprints":{"codehealthFindingId/v1":"6295923a444f2356a8e4743dd06eb3cea549c41c69f45552d116c137cab09e08"}},{"ruleId":"D2","level":"warning","message":{"text":"Utils.getDisplayedDatetime (cognitive 16): Utils.getDisplayedDatetime has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (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":"apps/Calendar/src/com/android/calendar/Utils.java"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d0fa5acf3bdec3dcadd45f6f819ff533d75289486e063c0cdd72b624589a44"}},{"ruleId":"D2","level":"warning","message":{"text":"RecurrenceProcessor.expand (cognitive 16): RecurrenceProcessor.expand has cognitive complexity 16 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 7 (nesting depth added 4). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9c0ae6e4d44e32d5a72902588bf4aee6f93b05d51205ad8fc8d3e54a93cbd0"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseEmailAddressAdapter.isDuplicate (cognitive 16): BaseEmailAddressAdapter.isDuplicate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 2 (5 pts), 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":"apps/Calendar/src/com/android/common/contacts/BaseEmailAddressAdapter.java"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac49b63c6ba9ea852a4314e20f03e8bbf1c1d2e94d36b383283a34bdd189f37"}},{"ruleId":"D2","level":"warning","message":{"text":"DayPickerView.goTo (cognitive 16): DayPickerView.goTo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 1, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"de950abe94d85ca8f9ac048e8ad1e65466bb884d7e4fa148ba8c0c82d2260c95"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultFilter.performFiltering (cognitive 16): DefaultFilter.performFiltering has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 1 (2 pts) (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":"apps/Calendar/src/com/android/ex/chips/BaseRecipientAdapter.java"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1d04e0ac61c42caf2f222340751cee84b0a73de8bdcde64d6c76377209ec84"}},{"ruleId":"D2","level":"warning","message":{"text":"RecipientAlternatesAdapter.getBetterRecipient (cognitive 16): RecipientAlternatesAdapter.getBetterRecipient has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientAlternatesAdapter.java"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b560461725bed3d44c0db474f9b5ea9d89605948a071ec11f1b923d83dc2c69c"}},{"ruleId":"D2","level":"warning","message":{"text":"RecipientEditTextView.createMoreChip (cognitive 16): RecipientEditTextView.createMoreChip has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"65bc6520444388227f6c5961d1e3c3c5a262202787b62a8376f7c73c81fc898c"}},{"ruleId":"D2","level":"warning","message":{"text":"StaggeredGridView.obtainView (cognitive 16): StaggeredGridView.obtainView has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":3075}}}],"partialFingerprints":{"codehealthFindingId/v1":"5094e0f9f2ac9d17f1217a51c7b06ef7a359485965cf39660c739e21ff5786a4"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioPreview.onCreate (cognitive 16): AudioPreview.onCreate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (14 pts), error handling 1 (2 pts) (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":"apps/Music/src/com/android/music/AudioPreview.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d37e74d3f7c16508d93ffae0fec4f5db75f7d166af15c57df5f2cf0fe501fb7"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaPickerActivity.MakeCursor (cognitive 16): MediaPickerActivity.MakeCursor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), 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":"apps/Music/src/com/android/music/MediaPickerActivity.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fe588d733fd5bd747cc3ad4e7b86cbac6c344d8e571b5258353400cf5bd2e9"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaPlaybackService.moveQueueItem (cognitive 16): MediaPlaybackService.moveQueueItem has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"59935f5759439a28d4fca83add3b2290717697aa6f2a3eaaba5f46850a9e24f3"}},{"ruleId":"D2","level":"warning","message":{"text":"MusicUtils.deleteTracks (cognitive 16): MusicUtils.deleteTracks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (6 pts), error handling 2 (5 pts), loops 3 (5 pts) (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":"apps/Music/src/com/android/music/MusicUtils.java"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f624835569579a4755796cb731133481ff0312a9bcdc33b81c21c3d68e922e"}},{"ruleId":"D2","level":"warning","message":{"text":"DayPickerView.goTo (cognitive 16): DayPickerView.goTo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 1, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb05c55cc5ad2f93dc90becb3313355ff0447036c8b8b80285589655fb2446a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DayView: ClassTooLong \u2014 3108 significant lines (blank, comment-only and punctuation-only lines excluded), 110 methods. The bar is 400 significant lines; this is 2708 over it, 7.77\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"91474fedc4fb8960af97f4392a0514217711fd7938209417a3eb67ea06795597"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: calendar/DayView.java: FileTooLong \u2014 3178 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: DayView (94-5038). The bar is 500 significant lines; this is 2678 over it, 6.36\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"617e667b0c6cd8229568648a2fcd485b5d30e081d4367332676007054fd51ad5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StaggeredGridView: ClassTooLong \u2014 2011 significant lines (blank, comment-only and punctuation-only lines excluded), 103 methods. The bar is 400 significant lines; this is 1611 over it, 5.03\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a688bd398b533f1fb0513d38718cdbbaf355a276a83a2f909d2bf4e3953d3541"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ViewPager: ClassTooLong \u2014 1661 significant lines (blank, comment-only and punctuation-only lines excluded), 87 methods. The bar is 400 significant lines; this is 1261 over it, 4.15\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"66cfc72ac2d75f612ccbaadd08ce91de7b3a16702ed9a00af8186366866b6dd1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ViewPager: ClassTooLong \u2014 1659 significant lines (blank, comment-only and punctuation-only lines excluded), 87 methods. The bar is 400 significant lines; this is 1259 over it, 4.15\u00D7 the bar. 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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18110237efdeafa4684660755529422c0c1a8bcdf304632e8ccb2d07c62356b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RecipientEditTextView: ClassTooLong \u2014 1655 significant lines (blank, comment-only and punctuation-only lines excluded), 124 methods. The bar is 400 significant lines; this is 1255 over it, 4.14\u00D7 the bar. 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":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e1299015f8d18805a0d88a382db6a0b68820354b726dd5c5720fe8fe53d95e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RecipientEditTextView: TooManyMethods \u2014 124 methods. The bar is 30 methods; this is 94 over it, 4.13\u00D7 the bar. 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":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"6319fb5aa60c1adab23eaa9f04cab13a8ae330d7aaff60392da222fe3c98f381"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sgv/StaggeredGridView.java: FileTooLong \u2014 2052 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: StaggeredGridView (78-4145). The bar is 500 significant lines; this is 1552 over it, 4.10\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f11025ee5a9ad6cd24ca5ff6fad578f49e3ef07d6e7c74e3e863df97ea13005"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DayView: TooManyMethods \u2014 110 methods. The bar is 30 methods; this is 80 over it, 3.67\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"33975658aaee12e9a9966cc9bf3d3f6003dcce897045ebb3385a8566d1237641"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EventInfoFragment: ClassTooLong \u2014 1421 significant lines (blank, comment-only and punctuation-only lines excluded), 63 methods. The bar is 400 significant lines; this is 1021 over it, 3.55\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a557972e44105c18a6a2df027aaa848fece69e95ca371a29029d0812746ad3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chips/RecipientEditTextView.java: FileTooLong \u2014 1737 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: RecipientEditTextView (109-2892). The bar is 500 significant lines; this is 1237 over it, 3.47\u00D7 the bar. 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":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4579c81df98f6f53df8961e06efbc34752384c9c6b8767a479be56f19c08800d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StaggeredGridView: TooManyMethods \u2014 103 methods. The bar is 30 methods; this is 73 over it, 3.43\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"facb8b68d79a14632488f9cf15a377ecd58207295905ebe6c70d75c8952372d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: viewpager/ViewPager.java: FileTooLong \u2014 1695 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ViewPager (80-2885). The bar is 500 significant lines; this is 1195 over it, 3.39\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35c68dd6a54ae81c1b717ea7251f07ba854e6fc4c0adb01fb41b02d84638f10"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: viewpager/ViewPager.java: FileTooLong \u2014 1693 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ViewPager (80-2885). The bar is 500 significant lines; this is 1193 over it, 3.39\u00D7 the bar. 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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d3b822e9a97d6cc9564dc66ed5728417e54063381ff4d6fe52c3a3c2dc39d3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MediaPlaybackService: ClassTooLong \u2014 1315 significant lines (blank, comment-only and punctuation-only lines excluded), 62 methods. The bar is 400 significant lines; this is 915 over it, 3.29\u00D7 the bar. 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":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ac658bdc1787b8c2151bfb6c1888edfc25557320c8d7450d2fe755e4b90553"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: calendar/EventInfoFragment.java: FileTooLong \u2014 1516 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: EventInfoFragment (117-2298). The bar is 500 significant lines; this is 1016 over it, 3.03\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a23de9c07e985eebfb3472b5c26389d9d44d03380c1620e36f030d5e0bc4b3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ViewPager: TooManyMethods \u2014 87 methods. The bar is 30 methods; this is 57 over it, 2.90\u00D7 the bar. 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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13c9759dfe9a31313ff09fce5bfad3e27854bb1eb399b54d709f20097bafe1f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ViewPager: TooManyMethods \u2014 87 methods. The bar is 30 methods; this is 57 over it, 2.90\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e87b1612fff63ef0060cecc6a5f7c61ba01b349ff619e998214d3c75c0a8000"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EditEventView: ClassTooLong \u2014 1116 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 716 over it, 2.79\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"2710f865eca72a46c3462a72be844a3b2062b39fe505d620159f85bb76ebbb20"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Utils: TooManyMethods \u2014 82 methods. The bar is 30 methods; this is 52 over it, 2.73\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/Utils.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b0a53b3eaa08b59c01da09720982307e651b59c9c00814c2ee3da2835809729"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: music/MediaPlaybackService.java: FileTooLong \u2014 1360 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: MediaPlaybackService (69-2222). The bar is 500 significant lines; this is 860 over it, 2.72\u00D7 the bar. 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":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ac5224f98c2220cf9836a16caf76277d59912d4cc8cb33acf23ca0b8b135a1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AlarmClockFragment: ClassTooLong \u2014 1059 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 659 over it, 2.65\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7dc6efe9c25b61df6aee8b604f9119c67ffcc0392270f7857486ce887995d8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TrackBrowserActivity: ClassTooLong \u2014 1016 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 616 over it, 2.54\u00D7 the bar. 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":"apps/Music/src/com/android/music/TrackBrowserActivity.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"e163cf801399e287503ca551548eaefdf70c4843b56d36d5a4075a3960e73c37"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Utils: ClassTooLong \u2014 994 significant lines (blank, comment-only and punctuation-only lines excluded), 82 methods. The bar is 400 significant lines; this is 594 over it, 2.49\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/Utils.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"6701ff5fb8306d64c2895333ae0d1368aef8fc2d485d3c874b43121d9734e95e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RecurrenceProcessor.expand: MethodTooLong \u2014 expand runs 241 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 141 over it, 2.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"56237a6de12045e35315f7d9a19382f052eab35d712610d20764b07204da87ab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: event/EditEventView.java: FileTooLong \u2014 1200 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: EditEventView (105-1852). The bar is 500 significant lines; this is 700 over it, 2.40\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f133f315f6dbfaf0cff1e329b12083934217ba99cc0b916ff5aa0990f73c89"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MediaPlaybackActivity: ClassTooLong \u2014 913 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 513 over it, 2.28\u00D7 the bar. 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":"apps/Music/src/com/android/music/MediaPlaybackActivity.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9587cfcfcee2064f1738eab0e6ba44eb32324998f7fce85b6deac7c89465676"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: deskclock/AlarmClockFragment.java: FileTooLong \u2014 1119 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: AlarmClockFragment (84-1815). The bar is 500 significant lines; this is 619 over it, 2.24\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa913abad572f8a1ae0103e09f05f8d2cfa742457c8debb1d18897c06fd903d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AllInOneActivity: ClassTooLong \u2014 871 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 471 over it, 2.18\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"28685a0ea28dc0e2480049b2f1d82d94931fcf474b4433bd210271517d57ed49"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgendaWindowAdapter: ClassTooLong \u2014 864 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 464 over it, 2.16\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb72d584477ccc3a28c043346bc2d58a5e5483187d39b5670bdbd9f8114468b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GlowPadView: TooManyMethods \u2014 64 methods. The bar is 30 methods; this is 34 over it, 2.13\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/GlowPadView.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6673938ad2c727164677c121329457a2acd819bbb2257ab3ed0d05ea848175fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: music/TrackBrowserActivity.java: FileTooLong \u2014 1063 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: TrackBrowserActivity (68-1580). The bar is 500 significant lines; this is 563 over it, 2.13\u00D7 the bar. 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":"apps/Music/src/com/android/music/TrackBrowserActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8028d932172769af01e455e8579d6446dd9005e1deb426471f3c235633745212"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EventInfoFragment: TooManyMethods \u2014 63 methods. The bar is 30 methods; this is 33 over it, 2.10\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"27274ffc6dec444265872d17d881189af0defa5027b245085be6de84be7edf4b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: calendar/Utils.java: FileTooLong \u2014 1047 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: Utils (75-2126). The bar is 500 significant lines; this is 547 over it, 2.09\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/Utils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"408b47481391aa7822f8c089d00fb2c1cde38d2e05bee8c36e2a82c7939c6299"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MusicUtils: ClassTooLong \u2014 827 significant lines (blank, comment-only and punctuation-only lines excluded), 58 methods. The bar is 400 significant lines; this is 427 over it, 2.07\u00D7 the bar. 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":"apps/Music/src/com/android/music/MusicUtils.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"71217186862daa7fa5154e84e9be99e9412c82ef25515e1facfe437837eaaa99"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MediaPlaybackService: TooManyMethods \u2014 62 methods. The bar is 30 methods; this is 32 over it, 2.07\u00D7 the bar. 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":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3df4797ff809f8f489cc92fa05dd0fc15f826206e2ec08b74b8466539b41888"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GlowPadView: ClassTooLong \u2014 800 significant lines (blank, comment-only and punctuation-only lines excluded), 64 methods. The bar is 400 significant lines; this is 400 over it, 2.00\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/GlowPadView.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab9611060aae53076f2f7a9663a98e2558bae5a2ca5ad7ae01ffec0dec8d08d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EditEventHelper: ClassTooLong \u2014 794 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 394 over it, 1.99\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/event/EditEventHelper.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4a979304a9285ede9b65b1f57036517dbfce7f0f58f9f50fced4c6ec488d11"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DayView.computeNeighbors: MethodTooLong \u2014 computeNeighbors runs 198 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 98 over it, 1.98\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":3151}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08b6cb2b00741a1893e84057454c1570cb893d31afd1244f9f77fb406774087"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MusicUtils: TooManyMethods \u2014 58 methods. The bar is 30 methods; this is 28 over it, 1.93\u00D7 the bar. 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":"apps/Music/src/com/android/music/MusicUtils.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb47702c535cb8a1a8054e7f38f018ca8c05c9d8a0efb19e6158d699afccde6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RecurrencePickerDialog: ClassTooLong \u2014 770 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 370 over it, 1.93\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"58fc1b17c47cc4cf66f05cbf83db1a52dfaa92048c166d2209e9758456b602ec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: music/MediaPlaybackActivity.java: FileTooLong \u2014 961 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: MediaPlaybackActivity (69-1390). The bar is 500 significant lines; this is 461 over it, 1.92\u00D7 the bar. 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":"apps/Music/src/com/android/music/MediaPlaybackActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68baf33e30463ca65abe8304cffe606a3c6a0136ac8db694c76b68f1f9946eec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditEventHelper.saveEvent: MethodTooLong \u2014 saveEvent runs 189 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 89 over it, 1.89\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventHelper.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d68a9413f2ef49cff5e88574d6f36b63994755fb89282b269f8b84b7b9c39e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: calendar/AllInOneActivity.java: FileTooLong \u2014 934 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: AllInOneActivity (85-1327). The bar is 500 significant lines; this is 434 over it, 1.87\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd893e24d2bf654ce51527226d0fdf63b2d3229d93950696fefc7cc9f93f448c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MonthWeekEventsView: ClassTooLong \u2014 733 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 333 over it, 1.83\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e39580f94ab6bad9077a01b725b0ca90bc89e0134288dbec50fa60e0983576"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agenda/AgendaWindowAdapter.java: FileTooLong \u2014 901 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: AgendaWindowAdapter (76-1412). The bar is 500 significant lines; this is 401 over it, 1.80\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2223c00c21d2eaadee4acdb14be546cac450a24a2f413b2949fa9746bbe141b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: music/MusicUtils.java: FileTooLong \u2014 879 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: MusicUtils (72-1364). The bar is 500 significant lines; this is 379 over it, 1.76\u00D7 the bar. 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":"apps/Music/src/com/android/music/MusicUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6cec89673f610a7322af293d00746ff707364978681ecef18ccb53ce004c21"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AlarmClockFragment.onCreateView: MethodTooLong \u2014 onCreateView runs 173 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 73 over it, 1.73\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10a197e487a10121e56159c8a5cdf371ad77c32f42a5ab470a6311dfe4c8afc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TimerFragment: ClassTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 282 over it, 1.71\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/timer/TimerFragment.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a180973ba61416d52920e51988ebc071c53255c0b6bc34bcd55fd6b2a70fac38"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QueryHandler.onQueryComplete: MethodTooLong \u2014 onQueryComplete runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4de7506a43b0333e543db58cda04f0b78a93337198e5a351d1fb606d4c14b8c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AlertService.processQuery: MethodTooLong \u2014 processQuery runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f01a4e7647bb24d70db935b23dffa34066e4fcabd3d084fb7e93999168c2e77"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QueryHandler.onQueryComplete: MethodTooLong \u2014 onQueryComplete runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventFragment.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2b51600909bcbe4a5d349c35e70e6e91184efcef8b1aebec60848efab94e24"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: event/EditEventHelper.java: FileTooLong \u2014 831 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: EditEventHelper (58-1390). The bar is 500 significant lines; this is 331 over it, 1.66\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/event/EditEventHelper.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef4baf8c3407f9fb4cca173205465539c96f48244463edf3266fb2e92b81853"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StopwatchFragment: ClassTooLong \u2014 663 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 263 over it, 1.66\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchFragment.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2aa667b2889254f28231768f89f6275ef98a59cf97739c2b6f76146206f62c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: multiwaveview/GlowPadView.java: FileTooLong \u2014 827 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: GlowPadView (56-1261). The bar is 500 significant lines; this is 327 over it, 1.65\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/GlowPadView.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ed6bfb56867cf4218030d976efc2f342727334755fad57ebe16949b359154a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RecurrenceProcessor: ClassTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 255 over it, 1.64\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"031c4798005e8e829579d14237eb9a6b0d5895fd9df374594f4237eb23e7d673"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: recurrencepicker/RecurrencePickerDialog.java: FileTooLong \u2014 816 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: RecurrencePickerDialog (67-1322). The bar is 500 significant lines; this is 316 over it, 1.63\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e01c7627205e234208dd14c518550ab9e11b9109a07be7dceff77140cad4c8e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AlertService: ClassTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 225 over it, 1.56\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c16a82fefdaeff31cde51396dcdfbe9491f5be0183a455be142ee82cbd791c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EditEventFragment: ClassTooLong \u2014 619 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 219 over it, 1.55\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/event/EditEventFragment.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e409e9c9bdadada0ad8f2ab898868ac8358bbd3c6aa2c9b4f8b8c1ac4afbb18"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: month/MonthWeekEventsView.java: FileTooLong \u2014 768 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: MonthWeekEventsView (56-1110). The bar is 500 significant lines; this is 268 over it, 1.54\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"199d28b6a4a0e46b238ceb040e2b1ee48d4b230210299d3f9da9aa9cec39d1ec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RecurrencePickerDialog.onCreateView: MethodTooLong \u2014 onCreateView runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f36f6545b99ac7a015bdf5c7aa9ad2e7db2f44d93069e1ff4bbff64216642a3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgendaWindowAdapter: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2d8a5c5490f1b84f8a1aa72b06a2d33fa9ca223aa26c9559d65c6e982e442f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TimePickerDialog: ClassTooLong \u2014 598 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 198 over it, 1.50\u00D7 the bar. 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":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c89816c2a4cad05f958321ccd6c78b961c8e30cd53e95046346258d0bf75db"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TimePickerDialog: ClassTooLong \u2014 598 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 198 over it, 1.50\u00D7 the bar. 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":"apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57dce3e05a39540c9622fc47d0a41ac99a349c3f7e76134d1634ecca70122c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: timer/TimerFragment.java: FileTooLong \u2014 726 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: TimerFragment (66-1059). The bar is 500 significant lines; this is 226 over it, 1.45\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/timer/TimerFragment.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07a89d7519c9606731012775e39a931364f39f1eed18860737cb41ea4af3b12"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ArtistAlbumBrowserActivity: ClassTooLong \u2014 580 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 180 over it, 1.45\u00D7 the bar. 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":"apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ba6d16e5163e744b8006bea24d81e863403a5e1e8462028e14c79ab0059f1f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EditEventView: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0622545da17d979ef5d6f8430e839e1e11aff2c07bda23a1a6521c2bde43935"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BaseRecipientAdapter: ClassTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded), 37 methods. The bar is 400 significant lines; this is 167 over it, 1.42\u00D7 the bar. 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":"apps/Calendar/src/com/android/ex/chips/BaseRecipientAdapter.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"575d76c6c5948be4e40a04f89f20ec9fd7cf323bdda06d192c265b5bfea751c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stopwatch/StopwatchFragment.java: FileTooLong \u2014 704 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: StopwatchFragment (46-1050). The bar is 500 significant lines; this is 204 over it, 1.41\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchFragment.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85513d88994a92f9fa214c63c8d6e300411094925ef668773e9b8d7efd67bbdb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CompositeCursorAdapter: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. 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":"apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"6521c0e5c35a53dd6547addc20dc838cc3b549df70d846349dacedd89cfb37ee"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CalendarEventModel: ClassTooLong \u2014 546 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 146 over it, 1.37\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8113deb6673fbf79243b698646947dd4a45fb22499ba88a1657959481cd2b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: event/EditEventFragment.java: FileTooLong \u2014 671 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: EditEventFragment (73-990). The bar is 500 significant lines; this is 171 over it, 1.34\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/event/EditEventFragment.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5925631ae1d69fad83fafc31b38ffde8368197657552c04b49f056dc8c51d759"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: calendarcommon2/RecurrenceProcessor.java: FileTooLong \u2014 660 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: RecurrenceProcessor (27-1318). The bar is 500 significant lines; this is 160 over it, 1.32\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75556bd981cd6e3e64293efaa457339d91f624f60b50a59bac242691503053a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: alerts/AlertService.java: FileTooLong \u2014 659 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: AlertService (58-1132). The bar is 500 significant lines; this is 159 over it, 1.32\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd750992231ba317315d205d37b9dab1a97028f21fc310c46b15395807c0872"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditEventView.\u003Cinit\u003E: MethodTooLong \u2014 \u003Cinit\u003E runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef02fc76c8610ea076c73bfeea1e443d22c17850678c67fc4f404ef9d83b57f2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QueryHandler.onQueryComplete: MethodTooLong \u2014 onQueryComplete runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f21957960aa85f73bf4aafc5ed73fe405820eb41b475c25003d5fe3994831d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: time/TimePickerDialog.java: FileTooLong \u2014 626 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: TimePickerDialog (53-988). The bar is 500 significant lines; this is 126 over it, 1.25\u00D7 the bar. 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":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2889be4272c4bea5f393d74b8fef3b502ab7a73535311a129cdb9d2f8f3fbb8a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: time/TimePickerDialog.java: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: TimePickerDialog (51-986). The bar is 500 significant lines; this is 125 over it, 1.25\u00D7 the bar. 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":"apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc63a85c65d84e5b1660f1437100aec90ffa66960cd0245f99a105b1d394b6bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: music/ArtistAlbumBrowserActivity.java: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: ArtistAlbumBrowserActivity (67-869). The bar is 500 significant lines; this is 125 over it, 1.25\u00D7 the bar. 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":"apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34eeda85312b51953671eb519d42045712181b2bae3a786c8a39f14af22e7ffc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ViewPager.populate: MethodTooLong \u2014 populate runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa69076b00900db5d72d9a5658536aee2e88e274f413ee1f86450f6544bd69f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ViewPager.populate: MethodTooLong \u2014 populate runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"630698864fc4ddb880896074b1b2907a59699ddbcb937b721ae0f8ef84028b0d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EventRecurrence: ClassTooLong \u2014 499 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 99 over it, 1.25\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendarcommon2/EventRecurrence.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c90db69ee5c6f64c7032d79608a4c8bf18fadb810d88d4a7b7fd8bd76a2f85"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AlertReceiver: ClassTooLong \u2014 496 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 96 over it, 1.24\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"60056a747c557e63e6652d9db10bceaa4c4b84d0a13e88860e081d5276b10f82"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseRecipientAdapter: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. 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":"apps/Calendar/src/com/android/ex/chips/BaseRecipientAdapter.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97486ad538db11fae496e5a6be2d5ecdfd1b514d6031d8d199be3519248f113"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Utils.createDNAStrands: MethodTooLong \u2014 createDNAStrands runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/Utils.java"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb38df5c34fbad88cc81a3105aa2109d9b4695db10659f9b657978b341da55de"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MonthWeekEventsView.initView: MethodTooLong \u2014 initView runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"93402ae9112feb23f83ea9ff0f69f3b36d84f39f9324a0277c6fed11f1263242"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SoundRecorder: ClassTooLong \u2014 488 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 88 over it, 1.22\u00D7 the bar. 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":"apps/SoundRecorder/src/com/android/soundrecorder/SoundRecorder.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"f556476c0a78c5dbee76533e703fc6c99fd122601a996ca81633a5ab451dc857"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chips/BaseRecipientAdapter.java: FileTooLong \u2014 607 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: BaseRecipientAdapter (64-1059). The bar is 500 significant lines; this is 107 over it, 1.21\u00D7 the bar. 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":"apps/Calendar/src/com/android/ex/chips/BaseRecipientAdapter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a4c11b5588d4f05443b57157077ba5492c9485e1bf1c707118af648de18ba1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CalendarController.sendEvent: MethodTooLong \u2014 sendEvent runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarController.java"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"81625a40479f52874c1312c99621ab8789942ee94c0772807864aeb3758921d5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CalendarController: ClassTooLong \u2014 476 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 76 over it, 1.19\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/CalendarController.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d466abcc6492dc52b8cebc805f4fec81c2fc4db58fc3984bde7339b61790d65d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RadialPickerLayout: ClassTooLong \u2014 469 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 69 over it, 1.17\u00D7 the bar. 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":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a222a98ee9ea2a3f1290331a4f66e2c4bdd8ea62005896dcb0b4cee884ba98a1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RadialPickerLayout: ClassTooLong \u2014 469 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 69 over it, 1.17\u00D7 the bar. 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":"apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1cef2228d7bb04e360a6adfa827681565b9ce0861eed9dc71b4c46dcb361d5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TimePickerDialog.onCreateView: MethodTooLong \u2014 onCreateView runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"232f8c135226b5133b40017693a3ae817a8066254da18cc6fb666d9bf2965344"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TimePickerDialog.onCreateView: MethodTooLong \u2014 onCreateView runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fb5ce8d729b53caed15728ea129e62ca627a7f8f7f532ab9edae3c313398d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: soundrecorder/SoundRecorder.java: FileTooLong \u2014 578 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: SoundRecorder (200-936). The bar is 500 significant lines; this is 78 over it, 1.16\u00D7 the bar. 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":"apps/SoundRecorder/src/com/android/soundrecorder/SoundRecorder.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb9a00cbd42e6460c0e854c9f458d3d3b4482f697b93eef57e525478bc067ee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EventInfoFragment.onCreateView: MethodTooLong \u2014 onCreateView runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"b265bf734c32e936a89d6a8d125962cfdcf2ca83e12004d8ebdde685c215e53e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CalendarController: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/CalendarController.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa511656d07fec275c744481e14dc32f19a141493266618e8ff07dbd718e124"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: calendar/CalendarEventModel.java: FileTooLong \u2014 565 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: CalendarEventModel (45-944). The bar is 500 significant lines; this is 65 over it, 1.13\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7608cc43aa7f5de34edf32fbb1ee35c5a96cfcce7d72100aee29d9eb1f097a53"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EditEventView.setModel: MethodTooLong \u2014 setModel runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"470cec0797ffa0eb19ce626680ddbb83e493137c0bdafb96730fea46ea4cc995"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StaggeredGridView.layoutChildren: MethodTooLong \u2014 layoutChildren runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2218}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b6701d08338d00e8b292d3145e4fceb2bdda795de2644b68a8fa55e95a3635"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AllInOneActivity: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"4530888cdbbaa680112ece16be2df90b3b56b0d0f1bf82aa12a7cbf3b0c73cc4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DayView.\u003Cinit\u003E: MethodTooLong \u2014 \u003Cinit\u003E runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"070a07748249349c68c1681180e1c9b11f62aaf99d44b64233549afc221585c8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AlbumBrowserActivity: ClassTooLong \u2014 432 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 32 over it, 1.08\u00D7 the bar. 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":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"7130915747cddfcd2821d5a3be17709a7d5d285f487e6da2d8a830c85e485832"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DayView.onKeyDown: MethodTooLong \u2014 onKeyDown runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":1510}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7c76c532cd6f5e28217b930f7690e233ffd91a4ee87b18c2b05c18461fdb30"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RadialPickerLayout.onTouch: MethodTooLong \u2014 onTouch runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2513354c7c76788aea335decc048bd0c5c73d67665d7260f1f2cc31da0891d3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RadialPickerLayout.onTouch: MethodTooLong \u2014 onTouch runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cff7dcc316c7e83b60b0f4bf91ef1d24988d9969219b89f55b01a96b2a5176d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OverScrollerSGV: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/OverScrollerSGV.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"72495fcde278e5a32a71a712ef55d6fb779e95575a619f613685b649de16d7cd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MediaPlaybackActivity: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. 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":"apps/Music/src/com/android/music/MediaPlaybackActivity.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33ee121a0fe26185e3415438b4695cd6c09f6123f2944067bb314f967681676"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ServiceStub: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. 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":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":2104}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6ec74d855fb902474e7e8b070f2ecdef499e0eaee1b99f596b1c4b41dd65ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: alerts/AlertReceiver.java: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: AlertReceiver (68-873). The bar is 500 significant lines; this is 29 over it, 1.06\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d528c4a9119517c54490e961ea805cb2d699128b6488d8ea00a3024c95ff9d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StopwatchFragment.onCreateView: MethodTooLong \u2014 onCreateView runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchFragment.java"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a8f24fed9923641d737560f31f2a17753e5b8028085c6ea5442e7edd92c21e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CalendarEventModel.checkOriginalModelFields: MethodTooLong \u2014 checkOriginalModelFields runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf07a0f509b26617096954102b1982565a91c1020ec519bfa82b413a36f81925"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExploreByTouchHelper: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. 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":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"50cd7b36caecb193d1ba220c166d0c7d4d4f1ef2337223b1da77d49e8800f3de"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TimePickerDialog: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. 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":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7456269713811b88ebfc6f5a7c9fc1b83da144050b0cc489998ad05ff4a64a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExploreByTouchHelper: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. 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":"apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2154e281f30fed6463ee34fe6b7639392a98642f6ef9efa4ca9d1c7f40e818"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TimePickerDialog: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. 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":"apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af76aba8953108482c18c1f151eb024740df5aee198847a72c227f2003df473"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TimerFragment: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. 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":"apps/DeskClock/src/com/android/deskclock/timer/TimerFragment.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa98d4234c5d58c7700b38436a2c64fa8a4d6d30e3f4865f6685e1ce3e61e039"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: calendar/CalendarController.java: FileTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: CalendarController (53-882). The bar is 500 significant lines; this is 7 over it, 1.01\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendar/CalendarController.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"311dae596c34dd10b7eeae58cda40832df848c33a5e8bc14472be9acb2f2134a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: calendarcommon2/EventRecurrence.java: FileTooLong \u2014 507 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: EventRecurrence (32-909). The bar is 500 significant lines; this is 7 over it, 1.01\u00D7 the bar. 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":"apps/Calendar/src/com/android/calendarcommon2/EventRecurrence.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"850714fe9cec7296b6e42dd3cc4db98a2dd80df542d4489e9b125084040a5466"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AllInOneActivity.handleEvent: MethodTooLong \u2014 handleEvent runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b04f578c81435940c7a767a10c531f3bb32260b2f99c8304a8e2b11c56958e4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PlaylistBrowserActivity: ClassTooLong \u2014 403 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 3 over it, 1.01\u00D7 the bar. 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":"apps/Music/src/com/android/music/PlaylistBrowserActivity.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecec78fd638467a576f27cc532234803744eeb66133b61efd33bbed883c180b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 18 shared lines): apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java:353-389 | apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java:291-335 | apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java:351-387 | apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java:289-333 \u2014 These 4 members are variants of one another: a block of 18 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b831b7ee0ce87834b2156cc3746b9ef8e8454ab487c3293f93dafddb7c07ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (65 shared lines): apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2513-2656 | apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2665-2801 \u2014 These two members are variants of one another: 65 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2513}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc9b34d7a503617879865b70284cec02499fb2f37bb17eb1c221b0bd7a2a96f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java:271-286 | apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java:269-284 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f2dac5aec505170fc815d3b0f2e58cd0867a6e086b639beee01ee463df15f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): apps/Calendar/src/com/android/calendarcommon2/RecurrenceSet.java:259-325 | apps/Calendar/src/com/android/calendarcommon2/RecurrenceSet.java:328-384 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceSet.java"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d3168bd514d9193782a742731eb4413cf9538f13716c7952a08b15f76a541a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java:238-265 | apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java:236-263 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f349add2ed2ff71daac77550768bb1b0685ac30e615c7401e2b07f97d86b55"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): apps/Calendar/src/com/android/datetimepicker/time/CircleView.java:60-79 | apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java:97-144 | apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java:85-146 | apps/DeskClock/src/com/android/datetimepicker/time/CircleView.java:58-77 | apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java:95-142 | apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java:83-144 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/CircleView.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b79756c7063e2a48b4e0c71523efec6401769754064c01c5e991912bf126629"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1493-1599 | apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1666-1729 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1493-1599 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1666-1729 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"945a2fd417ae991e15a6beb226fc7f14f72efa47adacc1e5a7f0f0f1f4683fef"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1920-2041 | apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2292-2313 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1920-2043 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2294-2315 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab7e1085e6f46d35406cf5618ccf06ff322ba670a232f1efebcab075c09881a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:235-246 | apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:304-324 | apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:326-356 | apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:487-504 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9164f33d8f9f3299fa1eba560a532b19d279e074925475a90cafed076a2d48"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): apps/Calendar/src/com/android/datetimepicker/time/CircleView.java:94-123 | apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java:274-324 | apps/DeskClock/src/com/android/datetimepicker/time/CircleView.java:92-121 | apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java:272-322 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/CircleView.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc8c44421e383d851ae850b9d0c8125c8edcde3e08dea589207bf77cfc7390d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): apps/DeskClock/src/com/android/deskclock/alarms/AlarmNotifications.java:58-97 | apps/DeskClock/src/com/android/deskclock/alarms/AlarmNotifications.java:99-132 | apps/DeskClock/src/com/android/deskclock/alarms/AlarmNotifications.java:134-167 | apps/DeskClock/src/com/android/deskclock/alarms/AlarmStateManager.java:676-716 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/alarms/AlarmNotifications.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd271e189231c86677d9a8818422612b50c3609ef0c987415b731829ed5567d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (102 corresponding lines): apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1379-1505 | apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1511-1612 \u2014 These two members are one piece of code written twice and then edited apart: 102 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af6dcf21ec82bebc5101eab8d94a8882909a0d1a6e3c6bed06577c2918d32b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1428-1503 | apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1541-1610 \u2014 These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"025e0c10acddcd6f4e0410dfa41c5ec28a85c7e6e91d4487c74f9ba1584ca897"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): apps/Calendar/src/com/android/common/contacts/DataUsageStatUpdater.java:107-145 | apps/Calendar/src/com/android/common/contacts/DataUsageStatUpdater.java:157-194 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/contacts/DataUsageStatUpdater.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3650ffb795ab4506bdb6dcefec844f41774402b31b9a2650c7cab64317900a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2830-2889 | apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2912-2975 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2830}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e75c8d859beddbbc641c17d3f04e03ae0bf68c60d7b390d343923ce6edc72b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): apps/Music/src/com/android/music/AlbumBrowserActivity.java:299-351 | apps/Music/src/com/android/music/TrackBrowserActivity.java:681-744 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"c93511a46e12536348b5d7f892ec8b118c277b0ffcdc6b09aa7eb9d1e5027bf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): apps/Music/src/com/android/music/AlbumBrowserActivity.java:90-139 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:86-138 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc66808b3a695bf2dd5eadc8579f70a0b5de40d47ce7a857ce2bb48648774bbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2998-3065 | apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:3075-3127 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2998}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ed59894a0a95db07d414b439c3e54150486906e744cbb3f1399fdd2cbde909"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): apps/Music/src/com/android/music/CreatePlaylist.java:45-76 | apps/Music/src/com/android/music/RenamePlaylist.java:46-90 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/CreatePlaylist.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53438d941bc9d13f7395d789ab189cd7c53de9bc7e37bdb8aac9200b7c87351"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java:174-209 | apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSyncAdapter.java:105-139 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff697961b6a2d01683e25037664fcee14253af881c35bb7960945b73cbcec86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): apps/Music/src/com/android/music/MediaPlaybackService.java:278-308 | apps/Music/src/com/android/music/MediaPlaybackService.java:657-700 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"80de41976f86afa3e3dec74f791b16374f31baec58915232bdcec8c75da95c66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): apps/DeskClock/src/com/android/deskclock/AlarmUtils.java:83-112 | apps/DeskClock/src/com/android/deskclock/timer/TimerReceiver.java:344-373 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/AlarmUtils.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e533e71dab5f09d992aba502b853bcec7e06ea3f42fc80a31adac35913a4de2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1690-1729 | apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1731-1778 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"5303d55b1cbf9de5b6749cd1efe86ce43842369c3db31f527023645c70eea487"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): apps/Calendar/src/com/android/calendar/AllInOneActivity.java:1249-1265 | apps/Calendar/src/com/android/calendar/AllInOneActivity.java:1277-1307 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":1249}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b90684e631dbe4c032b6d2b8ddb49256c804e40dca8e071d3fd740ff3d5459"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): apps/DeskClock/src/com/android/deskclock/timer/TimerObj.java:83-106 | apps/DeskClock/src/com/android/deskclock/timer/TimerObj.java:127-151 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/timer/TimerObj.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0b9d2db27a7b4e1eb0e22091a2db521daa913da72f4c33c919c88362632c97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): apps/CandyExperience/src/org/candyos/experience/Configs.kt:46-66 | apps/CandyExperience/src/org/candyos/experience/Configs.kt:122-148 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/CandyExperience/src/org/candyos/experience/Configs.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c7a40537e5239b41073c6eef576b34d19038e7427a47e0fe4e6629dfb2b846"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): apps/Music/src/com/android/music/MediaPlaybackActivity.java:876-913 | apps/Music/src/com/android/music/MediaPlaybackActivity.java:915-952 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackActivity.java"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"643504b4b3abd6e1b71b88d5a94b577a6ab2aee51f2b6b8d3d9c08c2f627ad36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): apps/Calendar/src/com/android/calendar/event/EditEventHelper.java:825-854 | apps/Calendar/src/com/android/calendar/event/EditEventHelper.java:870-898 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventHelper.java"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51a1e943b987e5ce882d5c3e2e552d83b86d9fb7f049393221c883772a14418"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): apps/Calendar/src/com/android/calendar/EventInfoFragment.java:2190-2223 | apps/Calendar/src/com/android/calendar/event/EditEventFragment.java:684-706 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":2190}}}],"partialFingerprints":{"codehealthFindingId/v1":"105b58c2173f2be4715c40c4a0ccb240d2306ddd454d14bc89e2601651456b2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/GlowPadView.java:488-524 | apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/GlowPadView.java:526-553 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/GlowPadView.java"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ae02abf0e110121884e1702eebeffbcbf9fb6161d260105540cab6e8cf431e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:574-600 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:572-598 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5f9aa99a338d12ebc55f854bf6a34727807a967154608642a1d2b257b4a713"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): apps/Music/src/com/android/music/PlaylistBrowserActivity.java:411-435 | apps/Music/src/com/android/music/PlaylistBrowserActivity.java:437-460 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/PlaylistBrowserActivity.java"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7fe825264d1e275433844d3115d1111fa3f70e152d8f218254250ae8dc79439"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): apps/DeskClock/src/com/android/alarmclock/WidgetUtils.java:43-70 | apps/DeskClock/src/com/android/alarmclock/WidgetUtils.java:73-100 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/alarmclock/WidgetUtils.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee284dd3c4bb280c8fe31e9a0525380b89331225369b07dd126525feb6ea550"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): apps/Music/src/com/android/music/MediaPlaybackService.java:1568-1593 | apps/Music/src/com/android/music/MusicUtils.java:380-401 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":1568}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fad3c34a09bf5f8df24417f6afb9325901f978d1ae1da27700ffe8b6382ea3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): apps/Music/src/com/android/music/MusicUtils.java:94-119 | apps/Music/src/com/android/music/MusicUtils.java:124-151 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MusicUtils.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"123b0e58eae9a7e326c40193119ca55d87e6abd1b3766f4a7f9d9315bcf232fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): apps/Music/src/com/android/music/AlbumBrowserActivity.java:353-379 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:463-493 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d69e937d10f713d3d15e030461b039bba443e8916b38a20cff11ed56049454"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchFragment.java:252-281 | apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchFragment.java:292-319 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchFragment.java"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1dfa2460566ef825a19da50f0376ef60fe2a5ce64f11100be5f98d6801254c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): apps/DeskClock/src/com/android/deskclock/provider/Alarm.java:79-100 | apps/DeskClock/src/com/android/deskclock/provider/AlarmInstance.java:96-119 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/provider/Alarm.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a63527565c393e91f78a622a71de0ca57396cd17605cd5f77ee68489c3cbff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): apps/Calendar/src/com/android/calendar/DayView.java:242-270 | apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java:186-214 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a834e142484db0ff8c6b47684e5de15ea61878f9f0e0589865216031c1bb351"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/Calendar/src/com/android/calendar/month/MonthByWeekFragment.java:265-284 | apps/Calendar/src/com/android/calendar/month/SimpleDayPickerFragment.java:200-215 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthByWeekFragment.java"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4fbb9cbcb1d12348bb9d2fd641726833aff57167f5fbe154840d71905926a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java:214-233 | apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java:236-249 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d000968211e4daf3d88132fb94798b4328c2009ee21e7f6add64e0586c8e2c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): apps/Music/src/com/android/music/MediaPlaybackService.java:762-788 | apps/SoundRecorder/src/com/android/soundrecorder/SoundRecorder.java:527-547 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"03595cbca0d87a785b60a7ddf6a281e28f4053317fe63997db328a7c53d9eb2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1459-1474 | apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1562-1577 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"52eed42d39296f564e294abe7c140cfc761d52dcda0eb69b066d6337ce847807"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchService.java:372-389 | apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchService.java:417-435 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchService.java"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef1dfa1bea8166571845da5080522de632de17f1323efc0225ae2cb8949b2de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/DeskClock/src/com/android/deskclock/Screensaver.java:152-167 | apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java:190-211 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/Screensaver.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76d4f75bb9c7e994d243a8da5bc5305386b1f2eacfc10ca65ad97db7609f28a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:331-377 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:329-375 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0d4fa782b9dded69201b8aa6c38ad51d460072f6eeb94e1a00cd6c1c0432e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): apps/Music/src/com/android/music/AlbumBrowserActivity.java:382-402 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:496-521 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0342906d4fd8d138f3e37e1c8b98cf6342311f9a54a239cb54e7680ffc4cd28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): apps/Music/src/com/android/music/AlbumBrowserActivity.java:576-587 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:635-649 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:653-664 | apps/Music/src/com/android/music/TrackBrowserActivity.java:1451-1465 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0e2fa9f4bcc432ae6fe3f8fb4db534e2fb00c0bf28733d0fdac9d697cb847d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): apps/Music/src/com/android/music/MusicUtils.java:329-343 | apps/Music/src/com/android/music/MusicUtils.java:345-358 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MusicUtils.java"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"542311a71f387fb338ff5b13338f6100df48f13f09f61099f297507e65b075ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java:2533-2553 | apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java:2556-2576 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":2533}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c05ab08aae694d1e80231c1b1a51421ae2af28d4de5f509ade94f52842a61a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java:822-845 | apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java:852-872 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"69087ac252b22e2d8dda96a8e9abcac9bb02655eaac631f75e35e54193ec0e2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): apps/Music/src/com/android/music/CreatePlaylist.java:101-116 | apps/Music/src/com/android/music/RenamePlaylist.java:121-136 | apps/Music/src/com/android/music/RenamePlaylist.java:138-153 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/CreatePlaylist.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc36e827d595c734de9d55f2b65aa536f2c7e0c8055703d252c35142a01171db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): apps/DeskClock/src/com/android/deskclock/widget/sgv/SgvAnimationHelper.java:203-221 | apps/DeskClock/src/com/android/deskclock/widget/sgv/SgvAnimationHelper.java:227-244 | apps/DeskClock/src/com/android/deskclock/widget/sgv/SgvAnimationHelper.java:303-324 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/SgvAnimationHelper.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e878813e80e36b3cc55fdf937db7ca2469f06459d8ebf013bad962add00897"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/Calendar/src/com/android/calendar/GeneralPreferences.java:227-247 | apps/Calendar/src/com/android/calendar/event/EditEventView.java:441-456 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/GeneralPreferences.java"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"58cccf628eb49c39db9593502068881f3fc331c793aa43878558a48d7f2d85bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): apps/Calendar/src/com/android/common/content/SQLiteContentProvider.java:97-121 | apps/Calendar/src/com/android/common/content/SQLiteContentProvider.java:150-175 | apps/Calendar/src/com/android/common/content/SQLiteContentProvider.java:178-202 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/content/SQLiteContentProvider.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9918107306a97fb3a735a896ac82260448c9b3cc28e42441a0893fc82cb502"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): apps/DeskClock/src/com/android/deskclock/timer/TimerObj.java:242-259 | apps/DeskClock/src/com/android/deskclock/timer/TimerObj.java:262-275 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/timer/TimerObj.java"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f945be0da3f2c781ecde2a6b281c523903337e17d7a656e1552be02bd41d78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): apps/Music/src/com/android/music/AlbumBrowserActivity.java:230-253 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:233-257 | apps/Music/src/com/android/music/PlaylistBrowserActivity.java:240-262 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71f20d6395b36c2e8822585fa7feca1cbf06bb8bdfe3e01a74d04e84a48d905"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/Calendar/src/com/android/calendar/DayView.java:2770-2785 | apps/Calendar/src/com/android/calendar/DayView.java:2787-2802 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":2770}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a936b5473940a9a9756c7b0e32ddd1cc23a967b33a9222ed53a0f5e8900b04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): apps/Calendar/src/com/android/calendar/Event.java:157-178 | apps/Calendar/src/com/android/calendar/Event.java:180-197 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/Event.java"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"2723bff05bb232a61e3bc1a26a311228093dba7629636e35f1b3583c887dd5f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/DeskClock/src/com/android/deskclock/worldclock/Cities.java:46-58 | apps/DeskClock/src/com/android/deskclock/worldclock/Cities.java:60-73 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/worldclock/Cities.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da3c96cc2b4f32fed6136f785ab8267b90076a24329a33bb1ae81d8820a02b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): apps/Calendar/src/com/android/timezonepicker/TimeZonePickerUtils.java:123-143 | apps/DeskClock/src/com/android/deskclock/Utils.java:557-578 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZonePickerUtils.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f82b05b33802216d6e11ea8df8d808ae28b9822d30310d8e3622cc7e15197d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): apps/Calendar/src/com/android/calendar/Utils.java:1380-1391 | apps/DeskClock/src/com/android/deskclock/Utils.java:371-382 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/Utils.java"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"e148b87e7488d7ea9701bfca7537300694f75a61969ebd19be9ecfcdbea3982e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): apps/Calendar/src/com/android/calendar/alerts/GlobalDismissManager.java:70-91 | apps/Calendar/src/com/android/calendar/alerts/GlobalDismissManager.java:123-147 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/GlobalDismissManager.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"523208f523766cffa38005109a6a208c5474e737d6b59f355148228739d8baf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): apps/DeskClock/src/com/android/deskclock/provider/Alarm.java:167-186 | apps/DeskClock/src/com/android/deskclock/provider/AlarmInstance.java:187-206 | apps/DeskClock/src/com/android/deskclock/provider/City.java:112-131 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/provider/Alarm.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a24f1d8438316d1d50644ba81ed4d2ad9a0aa56ea5931819fca2e56ce45c783"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): apps/DeskClock/src/com/android/deskclock/widget/ActionableToastBar.java:162-188 | apps/DeskClock/src/com/android/deskclock/widget/ActionableToastBar.java:190-212 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/ActionableToastBar.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"285042e2b58479f5315a14294eab7085271514b45dbe3278aab14f78d0026697"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): apps/Music/src/com/android/music/AlbumBrowserActivity.java:552-565 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:611-624 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a23e145304209e92f9c675102e7a7c795d3d43c1f179ddac40335d51d61bd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): apps/Music/src/com/android/music/CreatePlaylist.java:82-95 | apps/Music/src/com/android/music/RenamePlaylist.java:105-119 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/CreatePlaylist.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"251a839ef1c409a1fb6ccf8afdd692394933b3013d83e0fb9875724ead190704"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): apps/Calendar/src/com/android/calendar/EventInfoFragment.java:2140-2157 | apps/Calendar/src/com/android/calendar/event/EditEventView.java:1546-1564 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":2140}}}],"partialFingerprints":{"codehealthFindingId/v1":"7457bfbfe43c5ccaaaed9679e00fea632e5b9adb908f7abadce152942c8aaaa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/CandyExperience/src/org/candyos/experience/WallpapersActivity.kt:45-54 | apps/CandyExperience/src/org/candyos/experience/WallpapersActivity.kt:58-70 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/CandyExperience/src/org/candyos/experience/WallpapersActivity.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e78dff95b7dc2f654652df16e81e8c66d9c4a3969f92f23e8cf8cbef6b89372"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1694-1714 | apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1736-1751 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":1694}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d091fd45ba7c434c2fbfe8c866a15b4ddcdd42b9de8cc7fb699b9385b57b508"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/GlowPadView.java:561-573 | apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/GlowPadView.java:1155-1165 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/GlowPadView.java"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ad4db19556b32398a571242de3808ee27dadf616a89b8fe4113a12f06dbe9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): apps/Notes/src/org/candyos/notes/MainActivity.kt:24-40 | apps/Reminders/src/org/candyos/reminders/MainActivity.kt:30-43 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Notes/src/org/candyos/notes/MainActivity.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c05076d58bd0db8c34d248c1fd5a7d1f730cc0e55aaffb316efbc4a205c5ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/Calendar/src/com/android/calendar/CalendarEventModel.java:450-462 | apps/Calendar/src/com/android/calendar/event/AttendeesView.java:385-397 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b5c84cd2644052d54c9751356c549fcc1baa43a811d59095d18a43ddb91039"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java:75-82 | apps/DeskClock/src/com/android/datetimepicker/date/YearPickerView.java:73-80 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"7053da2a6f6cd5a4c5a4f6d2f0a9ae04b3268167ace7c928ae96bdd94c5eed8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:567-579 | apps/DeskClock/src/com/android/deskclock/timer/TimerFragment.java:883-895 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd48a093f748e7d619c21f1d07e45e79acd59c482c93dede346dd73a2012744a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2662-2675 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2664-2677 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2662}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd827aeb794038e8922537313d3974bb908504a0659a2c1c5c3baf3ea4848a44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 12\u002B corresponding lines): apps/Music/src/com/android/music/AlbumBrowserActivity.java:644-655 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:834-845 | apps/Music/src/com/android/music/PlaylistBrowserActivity.java:629-640 | apps/Music/src/com/android/music/QueryBrowserActivity.java:468-479 | apps/Music/src/com/android/music/TrackBrowserActivity.java:1546-1557 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5dc5d4740c86f8bf7f42b43c4e4177e06c6a954cdb5575b5b6f48c9be1e408f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/DeskClock/src/com/android/deskclock/DeskClock.java:186-203 | apps/DeskClock/src/com/android/deskclock/DeskClock.java:206-218 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/DeskClock.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a9729844b3b7743fbfdd67d68751449ed4851d59a0060de33c191f5fc97425"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): apps/DeskClock/src/com/android/deskclock/TimerRingService.java:161-173 | apps/DeskClock/src/com/android/deskclock/alarms/AlarmKlaxon.java:129-140 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/TimerRingService.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a79d0f3a116206ac2ecfd9713a69b8a881c89945c81fa576c837d50931bc585"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:252-267 | apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:415-436 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5b0d3d207208810c9bf9ae279df699bf12a7659f38a76551e06f015b560ce2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): apps/Calendar/src/com/android/ex/chips/BaseRecipientAdapter.java:550-566 | apps/Calendar/src/com/android/ex/chips/RecipientAlternatesAdapter.java:338-352 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/BaseRecipientAdapter.java"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10fdaee577c5a271f1ca34df654dc171c30d982ecc11551a9f75a7896495bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2807-2822 | apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2895-2910 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2807}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f524e68770df7567ea71a6cae19f3770986d470ab1cefcada4e5966d77103e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): apps/DeskClock/src/com/android/deskclock/provider/Alarm.java:136-152 | apps/DeskClock/src/com/android/deskclock/provider/AlarmInstance.java:144-160 | apps/DeskClock/src/com/android/deskclock/provider/City.java:80-97 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/provider/Alarm.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"606445d6174aa925961d1040ff8c1af55a225132caea562e1771bc74d1ea53ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): apps/DeskClock/src/com/android/deskclock/widget/sgv/SgvAnimationHelper.java:115-129 | apps/DeskClock/src/com/android/deskclock/widget/sgv/SgvAnimationHelper.java:136-151 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/SgvAnimationHelper.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28f92d900d53e9606a05c15cb8be59ca0b64771db4ba725cbd0a5ed643e6168"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 14\u002B corresponding lines): apps/Calendar/src/com/android/calendar/AsyncQueryService.java:170-185 | apps/Calendar/src/com/android/calendar/AsyncQueryService.java:202-215 | apps/Calendar/src/com/android/calendar/AsyncQueryService.java:238-253 | apps/Calendar/src/com/android/calendar/AsyncQueryService.java:275-289 | apps/Calendar/src/com/android/calendar/AsyncQueryService.java:306-319 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/AsyncQueryService.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5243d43edb5563932f69728722926e2b4f20bfb258997a3984161a784b027a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): apps/DeskClock/src/com/android/deskclock/timer/Timers.java:70-80 | apps/DeskClock/src/com/android/deskclock/timer/Timers.java:82-92 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/timer/Timers.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd262ab25b58c87ab4f459832a49ecf5afcf35c10759a2a0c73d967788cfac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): apps/Calendar/src/com/android/calendar/event/CreateEventDialogFragment.java:250-260 | apps/Calendar/src/com/android/calendar/event/EditEventView.java:655-667 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/CreateEventDialogFragment.java"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdc300b26bfbca2a03d235dc876505859d333c9d059ff9cc2764014e97b26dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): apps/Calendar/src/com/android/calendar/event/EditEventView.java:1593-1613 | apps/Calendar/src/com/android/calendar/event/EditEventView.java:1615-1636 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":1593}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace0ad2f57bbfcd5899c7afdfb6275503d3a654cb51afcf1aba531fd4049ea10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): apps/Calendar/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java:49-57 | apps/DeskClock/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java:47-55 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e06ab5279d7cc5165cf15c534494d0bc9a9d3502ed4a4589cb7f1d57a1ac5ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): apps/Calendar/src/com/android/calendar/agenda/AgendaByDayAdapter.java:99-110 | apps/Calendar/src/com/android/calendar/agenda/AgendaByDayAdapter.java:613-628 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaByDayAdapter.java"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26b2fefb9712cc35748ca2ed0e6520f365105ddc1a5b54dcbb44dbe641de1e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/Calendar/src/com/android/common/contacts/BaseEmailAddressAdapter.java:591-603 | apps/Calendar/src/com/android/ex/chips/BaseRecipientAdapter.java:339-348 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/contacts/BaseEmailAddressAdapter.java"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c40bab49c521aa43645b20dacfe7f69d8bd111589de2adeb94c09e7b6c573f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): apps/DeskClock/src/com/android/deskclock/timer/TimerFragment.java:699-707 | apps/DeskClock/src/com/android/deskclock/timer/TimerFragment.java:736-745 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/timer/TimerFragment.java"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"541ae9f758c80c3a780cdf559a137446475cdb77407817a3ad8d78bc4682d5e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/Calendar/src/com/android/calendar/DayView.java:4906-4921 | apps/Calendar/src/com/android/calendar/DayView.java:4924-4936 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":4906}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9b17dda8920b046fd0234dde6f4025789d1607a9517c00ef197bf2fa38e157"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): apps/Calendar/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java:73-81 | apps/DeskClock/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java:71-79 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99022e76bf1b4a370d46af1259f8eb4ab0cc4222b7083072a9d701e6fc3c5ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:408-415 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:405-412 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b14f62ea0a33a41dbc8a006dbfc39cc0ccc445fbd71bf60add9915be7589cc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): apps/DeskClock/src/com/android/deskclock/alarms/AlarmStateManager.java:260-272 | apps/DeskClock/src/com/android/deskclock/alarms/AlarmStateManager.java:282-294 | apps/DeskClock/src/com/android/deskclock/alarms/AlarmStateManager.java:304-316 | apps/DeskClock/src/com/android/deskclock/alarms/AlarmStateManager.java:326-338 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/alarms/AlarmStateManager.java"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a57cc68fc2b16a9c80ecbbf530e39044de074a295fb791b9d7b5bedbabe81d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2876-2883 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2876-2883 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2876}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4dd1e1126e5733638f053e65ae9d84a19eab3f2fd010765e36ac2d049abdd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): apps/Calendar/src/com/android/calendar/Utils.java:570-582 | apps/Calendar/src/com/android/calendar/alerts/GlobalDismissManager.java:399-413 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/Utils.java"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1efb804bd9fbbc2d4cd890c24f6f9b394c32f3b42882ce08dcabf228ffffb6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/GlowPadView.java:1131-1141 | apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/GlowPadView.java:1143-1153 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/GlowPadView.java"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"1921bb679619f8a1e2f644ba2d413c7b62caea59b77bbc292278f035b58f6961"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): apps/Calendar/src/com/android/calendar/month/MonthByWeekFragment.java:329-340 | apps/Calendar/src/com/android/calendar/month/SimpleDayPickerFragment.java:248-254 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthByWeekFragment.java"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e992953ae899458b51fdd81b93a5a1032f479e533c81acc930e0b76d968df9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/SoundRecorder/src/com/android/soundrecorder/SoundRecorder.java:255-265 | apps/Music/src/com/android/music/MusicBrowserActivity.java:51-60 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/SoundRecorder/src/com/android/soundrecorder/SoundRecorder.java"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"e726735322fc976c63c7ed89aacef47b1e49035934829b70c42dbd522b3633d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): apps/DeskClock/src/com/android/deskclock/TimerRingService.java:176-183 | apps/DeskClock/src/com/android/deskclock/alarms/AlarmKlaxon.java:143-149 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/TimerRingService.java"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8089884bddd0262c14e24d8e80edd0765a1fa00c2d9b45f4da5167a1c38feb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): apps/Notes/src/org/candyos/notes/MainActivity.kt:47-53 | apps/Reminders/src/org/candyos/reminders/MainActivity.kt:50-56 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Notes/src/org/candyos/notes/MainActivity.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafa07106c4bf3d92ca5fcf65f38bc3b6fc8aebcb7eab7597e6c43546d5e9dec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): apps/DeskClock/src/com/android/deskclock/provider/Alarm.java:195-200 | apps/DeskClock/src/com/android/deskclock/provider/AlarmInstance.java:231-236 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/provider/Alarm.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a346acab522b0fb0695cc46fbc8f89a5c7a94b6df08436098ff6b993388ed9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): apps/Reminders/src/org/candyos/reminders/ReminderEditActivity.kt:102-115 | apps/Notes/src/org/candyos/notes/NoteEditActivity.kt:69-78 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Reminders/src/org/candyos/reminders/ReminderEditActivity.kt"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea88ba9266059f6baf65c1aa21f4bc675e5e388abd242823d67b670e84eae39a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): apps/Calendar/src/com/android/calendar/selectcalendars/CalendarColorSquare.java:42-46 | apps/Calendar/src/com/android/colorpicker/ColorPickerSwatch.java:65-69 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/selectcalendars/CalendarColorSquare.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74fc144f7fbcfc54842ee0a0a18f09d3a018c00d90d5c107fc24d6751b3fab0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): apps/DeskClock/src/com/android/deskclock/Screensaver.java:95-101 | apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java:156-162 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/Screensaver.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"6487a1a1e351ea050bd23ee748238512bb1695cc29575d86f62209d7f7271404"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): apps/Music/src/com/android/music/PlaylistBrowserActivity.java:362-372 | apps/Music/src/com/android/music/QueryBrowserActivity.java:245-255 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/PlaylistBrowserActivity.java"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b73d696bf0dec0437c0220fcea2139ee800d6ca4225a7332dd1a0ab2718b7f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): apps/DeskClock/src/com/android/deskclock/TimerSetupView.java:50-56 | apps/DeskClock/src/com/android/deskclock/timer/TimerListItem.java:40-45 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/TimerSetupView.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d2f4ff5a063b1a4076b375290b54c592c158151919e72fb60cc601840dee44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1762-1764 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1762-1764 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce42685f044ea2cf3d294a43bde204fcf1c1914ada2568d0703f32f35de9b849"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (161 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:567-727 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:565-725 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acc27039858506c7e9c48d49a0fa499cfefcbcadc0a909292a6dbec16038d16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (125 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:813-937 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:811-935 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8131854a8f7ace7dcb9596efa018c95e642520ce55b01e3cb29857e476f3deb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (149 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:195-343 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:193-341 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d89c5062108019c85c0021e934602f0c495c40043297b4a1428bb114ba5d3cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (106 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1494-1599 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1494-1599 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d8a9b484e9d91050e74f52dde6323b479bf6bcda9af1de079f072b544c5f36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (186 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:914-1099 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:914-1099 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ed3603c1038e977638e27c5396c2340e14bfa74f90811e025c5b850e18b352"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (87 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1365-1451 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1365-1451 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"97808086945208a8385bbf1ec4fed50f8238e854813320530360d82f0cc820db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (84 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1118-1201 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1118-1201 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c230bfbc380e3e3a35373b3697da0599b2112b6131f5049bcfb84dc726a678"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (135 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1783-1917 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1783-1917 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1783}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccddea9cdbd9fb826c5d3eef58c7688abf7787c0c389a6c8a8c971cb26e5cab6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (121\u2013123 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1921-2041 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1921-2043 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1921}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e30d84b88cf4ed179ff97c5b5b6e99c798c25911ca8b50a2d317e3f7af51212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (73 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java:199-271 | apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java:197-269 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2edc9773ff882ced844ba311b7eebc9a33727c8ccf1a7fcf028387fdaf1470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:841-907 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:841-907 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"0edec99e3b82cb3ad72fec9fd6d04a2ccc3fbc4d7065854ddafdbee05fc59e1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:434-500 | apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:432-498 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b442e7db9a0ec07a7c6c78e6ae0dee0ae2d5ec4ee5b4e0471e97b79fecee8f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (76 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java:198-273 | apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java:196-271 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ca81644742cd1726e1f70a41457e765e578b77eb5e74f340abffab087f18e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (64 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2507-2570 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2509-2572 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2507}}}],"partialFingerprints":{"codehealthFindingId/v1":"34994f31a83b0a9cc6fbb72b9d39f41594664f5c6c97cfca4678bb5758cc12d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1668-1729 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1668-1729 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0104827aadfbec1debfc54707ca6f5e8c251b2de166fcd14b4585f8a8cab9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java:86-146 | apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java:84-144 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6812fdff57e761dfde4a3c8343d74f75fd4b1e5104d8c63b321bb6e6ca8b7c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/AmPmCirclesView.java:154-212 | apps/DeskClock/src/com/android/datetimepicker/time/AmPmCirclesView.java:152-210 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/AmPmCirclesView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/AmPmCirclesView.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/AmPmCirclesView.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"186100d87aebfa25e9a9ff413b4a8e407ce32c922e09cfccb57b876f31d3f1ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java:183-237 | apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java:181-235 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a7e63fb5aafc2cb275bf579a85190e453d80c7aae97739a0255fa5efae72ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java:177-230 | apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java:175-228 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"886e1473d0c8c3e5b3b1f1186ff51d6547e5c7807e255c85d45befc7e8ad17a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:784-833 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:782-831 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"199394ee6f4df6f418a3d87543fbc77721a00215e948400d2674b1fb40c29b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:326-374 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:323-371 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"805769a508a7d596a08fbdb75197deddbdab18bd20dcead27b3c916f097dd807"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java:98-144 | apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java:96-142 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"54727bd54a80cb09f628b271284f9adc051fa0b1428c016e235b99b123c2f16d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45\u201346 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2545-2589 | apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2696-2741 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2545\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2545}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9e80cb5e7e6e3a0fb737b1ae5c70827345e6666eda5366afd2a6ed70ff9d1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2051-2095 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2053-2097 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2051}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2c1623f30aee3ea5f06497f0331d3bef8f3c5b43c99326609efeb2152c27c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java:288-332 | apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java:286-330 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"801b98527271600b1160bd5f2b011ccbdf2f1045adae2179a0c8f12528e90461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:438-482 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:436-480 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e6415403f5231957bf4992f5b56c78db0adf8ee4c6beb8dfeaa269c91affbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:404-447 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:404-447 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1c381b531aac02fcdfe05df42d04336fec50b3da480b83d2afbc19ff9432d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): apps/Calendar/src/com/android/calendarcommon2/RecurrenceSet.java:283-325 | apps/Calendar/src/com/android/calendarcommon2/RecurrenceSet.java:342-384 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Calendar/src/com/android/calendarcommon2/RecurrenceSet.java:283\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceSet.java"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58a924e6cc936bf2c754678b52bcb452429a4f75496d4c022813e1cf19b6ee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java:282-324 | apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java:280-322 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java:282\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"98cb94850d4411ea7373eb385f2710c8731490e3c4805fd7defd2cebd1e5f209"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (65 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:492-556 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:490-554 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a86a804048085f00fb9bd371b6305f15cb89e1a6944de853c1b2f307981126"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:509-549 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:509-549 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e733c83cf0113c8f0eaa1ca077c88c183004b7d7944e54ebd9293645ff311df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2207-2247 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2209-2249 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"333cda3492e7a7c0680bebd3b003301538eb43194c555e2ea5c1067a008489da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java:162-202 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthAdapter.java:160-200 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthAdapter.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7dd9a4536de3ca883ef5e5819201138158539f1bd256a9ac282a12745cdac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:104-144 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:102-142 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0af167b5333cde3f145557ed1073d83305a2eb6ba1c96128e2a2972cc94ae88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2102-2141 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2104-2143 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2102}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2239fb0ee63ed4d1702b322ae9cc77ed1033c98b3141531c6d477a34b54c5f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:265-304 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:262-301 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2c8bd5dfa89a54b90fc72ae93476ac00a23eb009e6679ac49ce4b0b816dd49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:785-823 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:785-823 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e6721f270114125c009b2709eeec5fa71db7e6763264fa514a560c713bbe0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2165-2203 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2167-2205 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2165}}}],"partialFingerprints":{"codehealthFindingId/v1":"db535f2134babd2480009b702053419efc904ac84dcb095a72e8e5eaece8babf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2323-2361 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2325-2363 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2323}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e6c03a9d2745294971c7ee635eda6cb4e70c41004205f6c7c3f84e6db0383f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java:470-508 | apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java:468-506 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61b468a66c8b4fd1c57c6b4c1212d31a6475453e5bffb0585befb873520e333"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2619-2656 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2621-2658 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2619}}}],"partialFingerprints":{"codehealthFindingId/v1":"095b5eb911744cfa181a380bc7403ae229e77dc288b9c06966bbc274590bf4e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:526-563 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:524-561 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"21be870889d2d86da7c8c47586745fd0cf6879fabb0fd3a9d08e1fe1640c0cab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:187-223 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:184-220 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1cb4179288ba8c459256060d9c77cd049fc876bd6583335be66c85b787c47d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:552-587 | apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:550-585 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a7f2838ba55fcf8099a28c44581ac611b4c7168eaafd6a365e869a39574263"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java:305-340 | apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java:303-338 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"58efcf2edb81b7c5efb135806aaea67c03c26f847de94a4867d1f5c2c363d986"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:737-771 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:735-769 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"2736a3c4b124f7a89fdf1d63b9bc7ae6cfece5e514afeea3e0d66701cc977fb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:452-484 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:450-482 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa8204a0ecba3164b7c5e37e93e6e30ccd4b2fbaf881e4f38e83d48f9f3ba18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:347-377 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:345-375 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"98362f42b8c5ddb0d602d5004df03cd82eb7f169e911a54233e0e774f1190847"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1732-1760 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1732-1760 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1732}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e729eec94d0161cb03f54c9b239c7a652cb5cc5b204f448de9540c960531a98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): apps/Calendar/src/com/android/calendar/agenda/AgendaByDayAdapter.java:337-365 | apps/Calendar/src/com/android/calendar/agenda/AgendaByDayAdapter.java:403-429 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/calendar/agenda/AgendaByDayAdapter.java:337\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060apps/Calendar/src/com/android/calendar/agenda/AgendaByDayAdapter.java:370\u0060 calls \u0060add\u0060, \u0060RowInfo\u0060 and \u0060apps/Calendar/src/com/android/calendar/agenda/AgendaByDayAdapter.java:430\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaByDayAdapter.java"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b34978997e654b0584b3687ca4225a790137f1ec4794848cfddd7f94268973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/AmPmCirclesView.java:73-101 | apps/DeskClock/src/com/android/datetimepicker/time/AmPmCirclesView.java:71-99 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/AmPmCirclesView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/AmPmCirclesView.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/AmPmCirclesView.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a31c3966831de9186638b2dbb573ab763a70ac3ac4c3be3a6ff502e7452b84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:553-579 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:553-579 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd89ab0e2ca73878513f1516cf50ec2fdacc1e6d48f7f49f6b7d827e498405db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1464-1490 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1464-1490 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1464}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc29412ad034e4835c5988c893165c4380ee62303b96a41f487522783171ab30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): apps/Calendar/src/com/android/calendar/DayView.java:3319-3344 | apps/Calendar/src/com/android/calendar/DayView.java:3350-3376 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/calendar/DayView.java:3319\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":3319}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca8ef0ba55be0db27d4316f8e3fbe782f1cd90fcb19ac080f088e46c7e2afeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java:292-318 | apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java:290-316 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"07942cbda3f27082ffa5f1d677d1f0a3e125153c4f30666390269fc02516b80f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:350-375 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:350-375 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060EdgeEffectCompat\u0060 names \u0060com.android.calculator2.viewpager.EdgeEffectCompat\u0060 in one and \u0060com.android.deskclock.viewpager.EdgeEffectCompat\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0164e4e6df425bb417c29f179a4066557f9c93dcbb9719090a18033eb7888c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1627-1652 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1627-1652 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1627}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a0b58d1e3be003ba5bae65916360cc30114b4d3b0998da490fd3f077d896d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2683-2708 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2685-2710 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2683}}}],"partialFingerprints":{"codehealthFindingId/v1":"f716d0d6762134cb27d6bc699fb198567de8c8b7f835609efac757d2a3d1028d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:611-636 | apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:609-634 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"311b7b7189f7a8d13f5f9468076ed355204d41c61ad022cd40515f545dae7379"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java:327-351 | apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java:325-349 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef00b0c2f33547fad080e744ecc9c1f68d22d161750e9acf3f0b03dfaa53467"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:702-726 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:700-724 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"311c2ef6a264c136ba6644c4d5203570a83d3cd84f57e9394add7e8d7664f863"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2481-2504 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2483-2506 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2481}}}],"partialFingerprints":{"codehealthFindingId/v1":"108a7e41dff7c0df34582203aefcac55a33f26997e3e91ebe14547c8157f7a0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2573-2596 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2575-2598 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2573}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d04a9bceeac2a8d9068eed1ebe7a62be55f3587ecaf1486a152b7dbd2be4631"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:444-467 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:441-464 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"346ee643614a81744be66b5425dd2d705cf49dc97c9854a58e69834e8cd1c9ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java:242-265 | apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java:240-263 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"500100871e30afa24aa9c10ad4ab78ff37dd38bb23c9a25fff3705339ddbf95c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:577-600 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:575-598 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"93aa6dda01e562b44b7b4e6bc83ecbf27b3189766cec3ed042f8d6d517b1fc42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1412-1435 | apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1525-1548 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1412\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1436\u0060 calls \u0060getHeight\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1549\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":1412}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57006e194d9bdf2198cfd04c4934255139d3418d468fdcf8ee1be840bc42a6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): apps/Music/src/com/android/music/AlbumBrowserActivity.java:159-182 | apps/Music/src/com/android/music/PlaylistBrowserActivity.java:187-210 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1f89e200027d4adbafa9c2c1982b1c76dbbccf01eebbc2ba7ceef695ca0fee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1288-1310 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1288-1310 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"064838d1fa0849f9f808eb26fd6d36b1a0357baffa23e46e920c6b0d5c4f6cba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java:335-357 | apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java:333-355 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"4371eeee09a64cac4edd6064e87d262d64d0888f041c09dc34e7f371b5db3877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:395-417 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:393-415 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d03a6dff6ba1c981d92d86dc85941ac3b5dc17f47ac5372b769a7d306979a21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 3): apps/Music/src/com/android/music/AlbumBrowserActivity.java:160-180 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:161-182 | apps/Music/src/com/android/music/PlaylistBrowserActivity.java:188-208 \u2014 before extracting anything, compare \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java\u0060 and \u0060apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:183\u0060 calls \u0060setListAdapter\u0060 and \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java:181\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e67013d3928bfbedf89fdcf7f37384ede6301698909aa1e9dd4d7694a2221c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1603-1624 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1603-1624 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d36dd950916394440cfc80b0e0d9c4dd33568b922a70ebd377e3c9bb384e5af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java:251-271 | apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSyncAdapter.java:189-210 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java\u0060 and \u0060apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSyncAdapter.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"836e0352870f92f7f92177de058bfaf2514da417e58f285a0424823972e465ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:382-403 | apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:380-401 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a553d8f0322b50a6818b818e94a03f34d59455581f96a8ce695cf1325ebc09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java:347-368 | apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java:345-366 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06e8394a813094726d279151d853a3257a3743940fe87f62b368b355a865c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/CircleView.java:102-123 | apps/DeskClock/src/com/android/datetimepicker/time/CircleView.java:100-121 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/CircleView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/CircleView.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Calendar/src/com/android/datetimepicker/time/CircleView.java:102\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/CircleView.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ff500e46020f9238b79979a5473e8b95d8c75bfba0d6427f4afaf7f82ff3eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2293-2313 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2295-2315 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2293}}}],"partialFingerprints":{"codehealthFindingId/v1":"83fc5f2445598e7dd9bd135bcfe41ffad859337657a8db0e98838e249f832028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/AmPmCirclesView.java:130-150 | apps/DeskClock/src/com/android/datetimepicker/time/AmPmCirclesView.java:128-148 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/AmPmCirclesView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/AmPmCirclesView.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/AmPmCirclesView.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"480fe5cccf65abfcd2ce1196fbdf7e8a426fc7b10e31e13d1c8b6ef5a6973eef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:174-222 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:172-220 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a8229e9b78e63bc66f036744137b9d47e3c3082b4e25142ccb16922fbf25f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:778-806 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:776-804 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc8c8b53a6952553660421878d6f6493a822e6e455be2bc531bd8eb820dedcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/Utils.java:64-83 | apps/DeskClock/src/com/android/datetimepicker/Utils.java:62-81 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/Utils.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/Utils.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/Utils.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e81250c6d47ca9237d49e26e8cf89510ef688c49b858955b271b29ca92344c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:147-166 | apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:145-164 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"072e4c8ed7881ceaa143ae22480cb75bfa9788570768432698783c1613b2d65f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): apps/Music/src/com/android/music/AlbumBrowserActivity.java:430-449 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:299-318 \u2014 before extracting anything, compare \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java\u0060 and \u0060apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"799756ac9c1527eaa595a5fff1a2b5c58270f7ceacd922cea7afbcf309aceffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2713-2731 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2715-2733 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2713}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e2d4ea20b74d011ba4f0ba5acd935941744afee91b2b3c7e92c8997cabd214"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2786-2804 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2786-2804 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2786}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd16cc73c4cfa0e9714b7ee3bb1e5e42dd82c1decbf3435b57d7d538105d777"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): apps/Calendar/src/com/android/calendar/DayView.java:1410-1428 | apps/Calendar/src/com/android/calendar/DayView.java:1446-1464 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/calendar/DayView.java:1446\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be325c9079134dfb780852bce19fa4d502ef21a37f4196618469c816fc71728"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:336-354 | apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:334-352 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4f46e9046aaa5d08370609431067e855e011ea32cf3e1c8fec8de0015c99e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/CircleView.java:61-79 | apps/DeskClock/src/com/android/datetimepicker/time/CircleView.java:59-77 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/CircleView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/CircleView.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/CircleView.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4af319711fdcaba5a79d1a6688a3497ca7d0dd5c7ccadfec20c4a3fc649d86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:403-421 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:401-419 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a893c7091795c21d0f9d3086fc16edb8d165f68207f9e595af13991c285185"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): apps/Music/src/com/android/music/PlaylistBrowserActivity.java:419-435 | apps/Music/src/com/android/music/PlaylistBrowserActivity.java:442-460 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Music/src/com/android/music/PlaylistBrowserActivity.java:419\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/PlaylistBrowserActivity.java"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cea31a0ffc5196c84b7a3b479f97f469bb761eaf3d0521e56ae62795d1385d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java:366-383 | apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java:313-330 | apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java:364-381 | apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java:311-328 \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":"apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0760d4267e718cb4be164ac130e901856cfe31b29d6b44a1ab878dbc58bf87d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2144-2161 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2146-2163 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2144}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc0aad8efee9965233bd37604bcede0e35b04b47a75ed17cf889f4bff93337d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2267-2284 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2269-2286 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2267}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7948622fd598b1a83f90650a4382bcd690d002d7fc4fceade27c95a1c126d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): apps/Calendar/src/com/android/calendar/DayView.java:4361-4378 | apps/Calendar/src/com/android/calendar/DayView.java:4397-4414 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/calendar/DayView.java:4361\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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":4361}}}],"partialFingerprints":{"codehealthFindingId/v1":"913329d312a08654804af58e1bd7305b280e1a2085bd2b46b5f5c30345a84412"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java:1056-1073 | apps/Calendar/src/com/android/calendar/month/SimpleWeekView.java:525-542 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java:1056\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":"apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9d1390963c77c0a760eddd1cc97d80e77f619439417a8b9e451372c63ec368"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java:228-245 | apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSyncAdapter.java:157-174 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java\u0060 and \u0060apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSyncAdapter.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java:228\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a53fda312832dcba1975742022bd7b8f1359efb93743aa604872a27e9d5a444"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:420-437 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:418-435 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b185946f95c2d673ee3a8b1a1382e683af78a234ab284c08a8ae17d75fc9a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): apps/Music/src/com/android/music/CreatePlaylist.java:46-63 | apps/Music/src/com/android/music/RenamePlaylist.java:47-64 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/CreatePlaylist.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c242a2dc4360a8c7e631cd031a7a1a5fe4f77781f44f0c5dcc6e96bbf2bfcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): apps/Calendar/src/com/android/datetimepicker/time/CircleView.java:95-111 | apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java:275-291 | apps/DeskClock/src/com/android/datetimepicker/time/CircleView.java:93-109 | apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java:273-289 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/CircleView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/CircleView.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Calendar/src/com/android/datetimepicker/time/CircleView.java:95\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":"apps/Calendar/src/com/android/datetimepicker/time/CircleView.java"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8fd7c06b2704ead346cf7406e490a0b507ebeaed19af87763f1e432f42af5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1268-1284 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1268-1284 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f92a1be4c3ed3e3dd0f131230d500aaef4af8bd2013851a183abd08d6185c33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java:1036-1052 | apps/Calendar/src/com/android/calendar/month/SimpleWeekView.java:375-391 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java:1036\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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":"apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0238928eb3a3f0b004a0d6ea4485e93a2f77cb8017e53e4900bb18ea9d93b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java:382-398 | apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java:380-396 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"026677b666957d309ae52806e2d7bcac79feb634f44370571ace89645156c22c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java:57-73 | apps/DeskClock/src/com/android/datetimepicker/date/YearPickerView.java:55-71 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/YearPickerView.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"72cd3f2a2c259b06ba842b950b8a1dfacb7a32b2e7122a60ea8462ca12991373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:759-775 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:757-773 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"f093b4846151d2d8ec1283dc8342d1a8acc221b12394eb7904a1e7b6320961cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): apps/Music/src/com/android/music/MediaPlaybackService.java:286-301 | apps/Music/src/com/android/music/MediaPlaybackService.java:675-691 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Music/src/com/android/music/MediaPlaybackService.java:286\u0060 it begins part-way through the construct above it, so those exact 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":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d6f8f62fde54dcd4387347d11697db966d3d667e4883673fa93058bf298708"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:619-634 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:619-634 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"8093c1045b746e55a8ce88328bc618489feb08d145f6e2ab68d5e2999ff1f370"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): apps/Calendar/src/com/android/calendar/DayView.java:256-270 | apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java:199-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 \u0060apps/Calendar/src/com/android/calendar/DayView.java:256\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"6deb8a2b94dee7fede8905c1e84638eca3ddb124b21df621ed6035f339150696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201316 lines \u00D7 2): apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java:218-233 | apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java:239-249 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java:218\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java:217\u0060 calls \u0060setAction\u0060 and \u0060apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java:238\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c3344bea6d32bfec544750bb9c867eb1a900f9d6b9ff8992a8e678db8dc58e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): apps/Calendar/src/com/android/common/contacts/DataUsageStatUpdater.java:124-139 | apps/Calendar/src/com/android/common/contacts/DataUsageStatUpdater.java:174-189 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/common/contacts/DataUsageStatUpdater.java:124\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/contacts/DataUsageStatUpdater.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47e76b1faa4c5c2647fc3de39731a72b2113fe203320afe4491d29e99d8fd7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java:408-423 | apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java:406-421 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"273883fc40b24b65a7e49b80a5e7452bf0d8037e7c4a6526cf4be54f05555950"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java:86-101 | apps/DeskClock/src/com/android/datetimepicker/date/YearPickerView.java:84-99 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/YearPickerView.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d28b9fbec8b0f29a3554f7f0fab1cc036bbf3b85794bc6925d35c6f9efcfc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java:552-567 | apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java:595-609 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java:610\u0060 calls \u0060getChipBackground\u0060 and \u0060apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java:568\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f87ebfef79e0a54a572accb6b02dd45f072db564c3646ba369dd0c9b363d27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java:2002-2017 | apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java:2027-2042 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java:2002\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f957b0ed2d3789b44991a856dcc213a3465e46ed65ddb1639465dc1120fe38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/widget/sgv/ReorderHelper.java:63-78 | apps/DeskClock/src/com/android/deskclock/widget/sgv/ReorderHelper.java:124-137 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/DeskClock/src/com/android/deskclock/widget/sgv/ReorderHelper.java:63\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060apps/DeskClock/src/com/android/deskclock/widget/sgv/ReorderHelper.java:140\u0060 calls \u0060onEnterReorderArea\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/widget/sgv/ReorderHelper.java:79\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/ReorderHelper.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"75464301e46b44759dee5b5c89ae5a13feb2096092e641107627956e1ba9a672"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:919-933 | apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:956-971 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:919\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c1425aa08fa06f5728eda79520056aae19e220fb5f3e3973f9d164d036cfbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): apps/Music/src/com/android/music/AlbumBrowserActivity.java:336-351 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:446-461 \u2014 before extracting anything, compare \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java\u0060 and \u0060apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java:336\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a50a028049a9986d24e31cb5badee392b231e8b2e8f20b326a3b13a55c29262"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201315 lines \u00D7 4): apps/DeskClock/src/com/android/deskclock/alarms/AlarmNotifications.java:83-97 | apps/DeskClock/src/com/android/deskclock/alarms/AlarmNotifications.java:118-132 | apps/DeskClock/src/com/android/deskclock/alarms/AlarmNotifications.java:154-167 | apps/DeskClock/src/com/android/deskclock/alarms/AlarmStateManager.java:708-711 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/DeskClock/src/com/android/deskclock/alarms/AlarmNotifications.java:83\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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":"apps/DeskClock/src/com/android/deskclock/alarms/AlarmNotifications.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"814cc18ea3798da84e6c3bfa2ab07fd2804d53c458f6ce5ad9a03f09c5b2f347"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 3): apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2390-2399 | apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2610-2624 | apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2760-2769 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2625\u0060 calls \u0060layout\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2771\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2390}}}],"partialFingerprints":{"codehealthFindingId/v1":"da93a1fedfbadc7550559212dacbae8980ef064c9d62eccc977b48f7e5ad7cf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): apps/Music/src/com/android/music/AlbumBrowserActivity.java:433-446 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:302-315 | apps/Music/src/com/android/music/TrackBrowserActivity.java:943-957 \u2014 before extracting anything, compare \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java\u0060 and \u0060apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java:433\u0060 it begins part-way through the construct above it, so those exact 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":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"201cc309217a000537211ffba2592f89319226b99b0c2ba312e9ded12514735e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): apps/Calendar/src/com/android/calendar/DayView.java:3381-3395 | apps/Calendar/src/com/android/calendar/DayView.java:3405-3419 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/calendar/DayView.java:3381\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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":3381}}}],"partialFingerprints":{"codehealthFindingId/v1":"549a37c9b4b6277c93445610d1d7c07ca5dc9af6daade0f1b2732ffdefdf011a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): apps/Calendar/src/com/android/calendar/Event.java:161-175 | apps/Calendar/src/com/android/calendar/Event.java:182-196 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction \u2014 check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/Event.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"0044174c3325512b08f1942cb7029d5cc3091d981800c3f8d331754d5bf34f5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java:177-193 | apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java:175-191 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a2f551daf4dda0c1a3434a06593225daf0734ee74a066239e7efdafd7eaba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:483-497 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:480-494 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"e483e760b6a1810a9f6028689e8e04a5af5dd9847a6b6ef521aa49403b72b08a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:670-699 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:668-697 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1f5a3357f0e7fe3d0418d696e90978d5336ed77d142a14ea8f3299dbb77b71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/widget/sgv/SgvAnimationHelper.java:207-221 | apps/DeskClock/src/com/android/deskclock/widget/sgv/SgvAnimationHelper.java:230-244 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/DeskClock/src/com/android/deskclock/widget/sgv/SgvAnimationHelper.java:207\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/SgvAnimationHelper.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cf196a4093a8787d462f59dbe9a58bad40eed1272e7df5d5995b46e79ccffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): apps/Music/src/com/android/music/MediaPlaybackActivity.java:877-891 | apps/Music/src/com/android/music/MediaPlaybackActivity.java:916-930 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Music/src/com/android/music/MediaPlaybackActivity.java:877\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":"apps/Music/src/com/android/music/MediaPlaybackActivity.java"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74110da5ed9b5522f18e7c3ef31f249d1e11ca3ca0ae8ded4bd6128e1657465"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java:229-242 | apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSyncAdapter.java:158-171 | apps/Calendar/src/com/android/calendar/selectcalendars/SelectSyncedCalendarsMultiAccountAdapter.java:329-342 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java\u0060 and \u0060apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSyncAdapter.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63dd719de5d90b7ff0bcc6c9b00c59aac70bfd46b7cdb837af0e7c6ef56454e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1102-1115 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1102-1115 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6539678a070751956f80289ac66319ac64dbd355c79110f8f6bffec1739020"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2417-2430 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2419-2432 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2417}}}],"partialFingerprints":{"codehealthFindingId/v1":"0619cc54f739af8f9bb12d34e90dd0cc44b93ca520d1e27844b0359fe17f1430"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): apps/Calendar/src/com/android/calendar/AllInOneActivity.java:647-660 | apps/Calendar/src/com/android/calendar/event/EditEventActivity.java:121-134 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060apps/Calendar/src/com/android/calendar/event/EditEventActivity.java:136\u0060 calls \u0060getBooleanExtra\u0060 and \u0060apps/Calendar/src/com/android/calendar/AllInOneActivity.java:662\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"8975e202050985429bef94c14381466f8aa0a410e6cb757f431c595dc3764882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): apps/Calendar/src/com/android/calendar/EventGeometry.java:141-154 | apps/Calendar/src/com/android/calendar/EventGeometry.java:156-169 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/calendar/EventGeometry.java:141\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"apps/Calendar/src/com/android/calendar/EventGeometry.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e1077b4a2ca2364dc43b11a7af43137d031c14d35437d0d32067dab06243ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:647-660 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:645-658 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"c369eeaaf23cf66a7f76f15f436f6d3b2e491b8bfad717906a08c2835186b9ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): apps/Music/src/com/android/music/MediaPlaybackActivity.java:900-913 | apps/Music/src/com/android/music/MediaPlaybackActivity.java:939-952 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Music/src/com/android/music/MediaPlaybackActivity.java:900\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackActivity.java"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"a65fe37691ef8135b95ca4919474d44f6fd153bd8a955457408f595b9eb42680"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): apps/Music/src/com/android/music/MusicPicker.java:232-245 | apps/Music/src/com/android/music/TrackBrowserActivity.java:1470-1483 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MusicPicker.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ab99b1e58d99dbbf63756927f55008ca89b41970c86cf092bc9193b31dfc15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java:333-344 | apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java:293-305 | apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java:331-342 | apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java:291-303 \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":"apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e1814e8a308530cd2993376f2bce188319fe6dd259a0c882f58709d6bb5347"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:604-616 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:604-616 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc9990befdf5ceb146b54ea68da5beeaffd15ed87a4c3a41d77e14340af50d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2377-2389 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2379-2391 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2377}}}],"partialFingerprints":{"codehealthFindingId/v1":"9330c682ffe04cdafe20f51882d431e44d421003096a9db3684d8ddcb246bbd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2402-2414 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2404-2416 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2402}}}],"partialFingerprints":{"codehealthFindingId/v1":"8359bce85068d2d35ab520e805110f39d5c5c2e489e9a9ece0c9ad7a09535ede"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/Calendar/src/com/android/calendar/DayView.java:3035-3047 | apps/Calendar/src/com/android/calendar/DayView.java:3152-3164 \u2014 both copies are in the same file, so extract the block 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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":3035}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb59168dda466e01282fd169f529758193dd1f2c2b9f56118820e61ee761304"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/AmPmCirclesView.java:104-116 | apps/DeskClock/src/com/android/datetimepicker/time/AmPmCirclesView.java:102-114 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/AmPmCirclesView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/AmPmCirclesView.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/AmPmCirclesView.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd42497c1a0820f98d477d42c63d3767b45cefef3c417c85d2be5092462ae8da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2831-2841 | apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2913-2925 \u2014 both copies are in the same file, so extract the block 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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2831}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63098d8c13b1b7f118f91931e7934328b211b0cda8f1631b9010190fe5061a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/Music/src/com/android/music/AlbumBrowserActivity.java:284-296 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:368-380 \u2014 before extracting anything, compare \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java\u0060 and \u0060apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java:284\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fb4f9d9853af672fd07830427eb24672582325e221508e4d1001411c9700d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): apps/Music/src/com/android/music/AlbumBrowserActivity.java:310-321 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:402-414 \u2014 before extracting anything, compare \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java\u0060 and \u0060apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java:310\u0060 it begins part-way through the construct above it, so those exact 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":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abbf50fc53b92a359b9f299e7d0b7b9505f8c261ba19c19a2c39b75fef74134"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): apps/Calendar/src/com/android/calendar/month/SimpleDayPickerFragment.java:412-423 | apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java:197-208 | apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java:195-206 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Calendar/src/com/android/calendar/month/SimpleDayPickerFragment.java:412\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/SimpleDayPickerFragment.java"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e697c16214c3977b30181e07e6d59e99b41a2b2bc54c25726a9fc064942d900"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): apps/Calendar/src/com/android/calendar/alerts/AlarmScheduler.java:222-231 | apps/Calendar/src/com/android/calendar/alerts/AlarmScheduler.java:258-269 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/calendar/alerts/AlarmScheduler.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":"apps/Calendar/src/com/android/calendar/alerts/AlarmScheduler.java"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4dc8c75bbad2d1132e2a913f9ec625c1aa1b949a7d88abe1805991376d5165"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/Calendar/src/com/android/calendar/event/EditEventHelper.java:837-848 | apps/Calendar/src/com/android/calendar/event/EditEventHelper.java:881-892 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/calendar/event/EditEventHelper.java:837\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":"apps/Calendar/src/com/android/calendar/event/EditEventHelper.java"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"2535c5ea16c6d5d39af3f3638266dd1f769bb5b96696b012814faff2d6b39332"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): apps/Calendar/src/com/android/common/contacts/BaseEmailAddressAdapter.java:392-403 | apps/Calendar/src/com/android/ex/chips/BaseRecipientAdapter.java:624-634 \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 \u0060apps/Calendar/src/com/android/common/contacts/BaseEmailAddressAdapter.java:392\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/contacts/BaseEmailAddressAdapter.java"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f20b8f23c84c66d522ef4f5fc29e09f3e1d23c824aaa8e75dcfef737b3aace8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/Utils.java:129-141 | apps/DeskClock/src/com/android/datetimepicker/Utils.java:127-139 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/Utils.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/Utils.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/Utils.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c876dffb6a27501ec17591c346eacff7fe2195b887414bfd41709da83b93e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:186-197 | apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:184-195 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"86cebaa8b8f47aa03fc2554978be81881fca9cae4910c68b06a655785e07f140"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/AccessibleDateAnimator.java:43-54 | apps/DeskClock/src/com/android/datetimepicker/date/AccessibleDateAnimator.java:41-52 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/AccessibleDateAnimator.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/AccessibleDateAnimator.java\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/AccessibleDateAnimator.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16531687fa503e0a153a2ad635b8eeb27871afcd35ab9a0fb5df658f5ba7f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:629-640 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:626-637 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93ae95562484c8c198562790b693c4493cfff7b9b6380e3049ec49faf5bdd19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:242-253 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:240-251 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"75efab1fe8a56ba83a41075db522f48dd484e20edbc8314a180852f9ffce4fa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:300-311 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:298-309 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbbcbcd9d5789f0b6d88b8975e6349f533c1711b7a6f0e26e1993e3f26ce8fd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:362-373 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:360-371 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02cfa0da7c4944e9d5cd5c4e52b9b15e9000bbb46a8002b2e4771da8457e6f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:377-388 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:375-386 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5ca7ec4dd6af7ac0d1c0b3e67ad8226450dd8d7930ecd6560fe52542838423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:621-632 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:619-630 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"1059d11ff43f539c4c8b4dfe216c14a12a42492ba2b883e385f6bd18e995a4f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/Music/src/com/android/music/AlbumBrowserActivity.java:238-250 | apps/Music/src/com/android/music/PlaylistBrowserActivity.java:248-259 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java:238\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca3f1d5bb161e556d2750eecb4442f90183a18ce5efe0fcd7067346ac839104"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): apps/Music/src/com/android/music/AlbumBrowserActivity.java:464-473 | apps/Music/src/com/android/music/AlbumBrowserActivity.java:476-487 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java:476\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d06d5f21fdc49eb48fc4e600c1fa2be1e84639c1fa0880898e2ab2c4ef86c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 4): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1994-2003 | apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2297-2305 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1995-2005 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2299-2307 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1994}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad12fd83f7e46ec326a603ef34ef24bd8675158d05da1d78f4381806811e3d89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:826-836 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:826-836 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"f707038b9a29994f1633e39167d5012002f31340a276b3d1457ffb34c245b9bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2444-2464 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2446-2466 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2444}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0b9eff378703e6a9f49c2c3b3989665e8270f947d53d7401073ee7638ca395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/Calendar/src/com/android/calendar/DayView.java:243-254 | apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java:187-197 \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 \u0060apps/Calendar/src/com/android/calendar/DayView.java:243\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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc54364a1bea4235b3b672e99cf1194b7c0fccab3243015fffd7a49f2e4ea48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java:115-125 | apps/DeskClock/src/com/android/datetimepicker/date/YearPickerView.java:113-123 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/YearPickerView.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"228c6d8ba1fa5dfd4b884c7971b47971a2dc84245f031df3ab0ffcde851cd03a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:498-508 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:496-506 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f85cf88f4b019d13e32e68cda58c1845062239ccbc0ceb716083a639440e90b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java:147-157 | apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java:145-155 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf7726d47a6efd03bcd4607204eec998ce4ef91528fb9345eb0ac7e7ceccae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:180-190 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:178-188 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b1f8ddfc6e0b7a21e83923618af26601b6ae04cbaf91ba9c6a30e62cb14a9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1457-1467 | apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1560-1570 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1457\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1456\u0060 calls \u0060setInterpolator\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:1559\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":1457}}}],"partialFingerprints":{"codehealthFindingId/v1":"60fa706ffaa34a6ed0620cc2229e876cf1572d26476c9285b33a9e923a1ad479"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:3039-3048 | apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:3097-3107 \u2014 both copies are in the same file, so extract the block 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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":3039}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7d74c8b063fed7511d2157549439502aa02a3855bbd8f291b71e461b676642"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/Music/src/com/android/music/CreatePlaylist.java:102-112 | apps/Music/src/com/android/music/RenamePlaylist.java:122-132 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Music/src/com/android/music/CreatePlaylist.java:102\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":"apps/Music/src/com/android/music/CreatePlaylist.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"1194f13464089515790929b388ecdfc9a15c788d2e8b688edf0c253518cad568"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1523-1532 | apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1688-1697 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1523-1532 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1688-1697 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1523\u0060 it begins part-way through the construct above it, so those exact 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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7aa8fa728f060100bc7f39e3ad13a5a2db3db0a0a07ce1bc0dc160bdc073b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2356-2365 | apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2579-2586 | apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2731-2738 \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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2356}}}],"partialFingerprints":{"codehealthFindingId/v1":"253d227f4845f44a0ca029091af4cb7b2cb23ff5e113c7bce7ab6519ee2cb747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2760-2769 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2760-2769 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2760}}}],"partialFingerprints":{"codehealthFindingId/v1":"228b3a9712789f347974d72579a80dd443913c70e352bcbb38f1ce9958affd52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2773-2782 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2773-2782 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2773}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2cafb595fdf385fa7ea92220903ff2e9f554a9ee3f79c7a38db5d5ae9008a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/calendar/EventInfoFragment.java:2240-2249 | apps/Calendar/src/com/android/calendar/event/EditEventView.java:945-954 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":2240}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1e9e7374d9a5b82a3aca122101255356e716590d7f9673380fe8374d073adb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java:824-833 | apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java:854-863 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java:824\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"49cafe985d6ec4e7b7d17e908579d6939348d91aae08faa6c182f60bd4a35cf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/calendar/event/CreateEventDialogFragment.java:281-290 | apps/Calendar/src/com/android/calendar/event/EditEventView.java:1498-1507 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Calendar/src/com/android/calendar/event/CreateEventDialogFragment.java:281\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":"apps/Calendar/src/com/android/calendar/event/CreateEventDialogFragment.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f849117a55d9c8de37ff9d1fcc8fa7cac65e98784aabffd48e8a7f3166844a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:416-425 | apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:442-451 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:416\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":"apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"df821a218f4ba60f6ee9c9f7623c429c1422a7a8675ed618122c17fff40e6e6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:246-255 | apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:244-253 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5b83a113275b327faa3e3e7c47651d5930c3d78e17e5311295f30c6ef1ba71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java:164-173 | apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java:162-171 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8817ed167ef1d17dfae33bdd995dd3156a5802776b76dda19ad05f6e6040148"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/ex/chips/RecipientAlternatesAdapter.java:226-235 | apps/Calendar/src/com/android/ex/chips/RecipientAlternatesAdapter.java:427-436 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/ex/chips/RecipientAlternatesAdapter.java:226\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientAlternatesAdapter.java"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba3aab10f36aa31af27de67ced0b62ab5597f00845192928ef4afb4b37fd356"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java:2521-2530 | apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java:2649-2658 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java:2521\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":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":2521}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d90106958dcbaf35c5bcd65e7a45c744d3c0d8ef0721479b3d221ceb849e068"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:3718-3727 | apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:3737-3746 \u2014 both copies are in the same file, so extract the block 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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":3718}}}],"partialFingerprints":{"codehealthFindingId/v1":"857113fbffa2f6ade82cee43deafe01c257856c855cb9944075bc699b258b7c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Music/src/com/android/music/MediaPlaybackActivity.java:544-553 | apps/Music/src/com/android/music/MusicUtils.java:281-290 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackActivity.java"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d405efb84d730e2ee16976ef2b656c846267f351482eed8ce75e5e92093e33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Music/src/com/android/music/MusicPicker.java:256-265 | apps/Music/src/com/android/music/TrackBrowserActivity.java:1487-1496 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Music/src/com/android/music/MusicPicker.java:256\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MusicPicker.java"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c1a604e55d528c6db430d2cc043903a38570f49c4b6b68324b027a411e402e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): apps/Music/src/com/android/music/TrackBrowserActivity.java:565-573 | apps/Music/src/com/android/music/TrackBrowserActivity.java:819-828 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Music/src/com/android/music/TrackBrowserActivity.java:565\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/Music/src/com/android/music/TrackBrowserActivity.java:564\u0060 calls \u0060removeItem\u0060 and \u0060apps/Music/src/com/android/music/TrackBrowserActivity.java:818\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/TrackBrowserActivity.java"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"e181d770a3c7043a671ab8fde495c93b0ef0680b88006583a07e27c03172baad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): apps/Calendar/src/com/android/datetimepicker/time/CircleView.java:68-76 | apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java:112-120 | apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java:107-115 | apps/DeskClock/src/com/android/datetimepicker/time/CircleView.java:66-74 | apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java:110-118 | apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java:105-113 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/CircleView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/CircleView.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/CircleView.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c100d49eaec6634c5c7048acad0175ded4fd1675b2d4cb6e64eeb86eb1159aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2219-2227 | apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2514-2522 | apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java:2666-2674 \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":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2219}}}],"partialFingerprints":{"codehealthFindingId/v1":"824fb9c45bb75ba4c79f6b8f984855c0a5b51f2a73686a6acd809e0383a8d475"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:450-458 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:450-458 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"256adeed3701588f88dad2df9e2a7c9d3797e49ab6ea618da41eaae211e87862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2667-2675 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2669-2677 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2667\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2667}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a7fcca94ba79ea6a0807cd9e42116fb756ba72413fb58b58300f91dc801353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java:443-451 | apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java:441-449 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"8518def5a01874e51c4e4fdea714fd5117b1b3d5df1d304acbd9ffbf4e5d64ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/CircleView.java:82-90 | apps/DeskClock/src/com/android/datetimepicker/time/CircleView.java:80-88 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/CircleView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/CircleView.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/CircleView.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6bd815bea4d02de0b1a5a27b7041fe4ab5f747c4cac5b8767abbb472c845fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:151-159 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:149-157 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"683a7819ecbdafbd2f5a62f29b8ed914ab93b49a2a5dd2628c24462edef12530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:322-330 | apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:391-399 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:322\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:400\u0060 calls \u0060getLayoutParams\u0060, \u0060setMargins\u0060, \u0060requestLayout\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:331\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9e9447b137b9f642baf1ea4ba63fb6a0d8c57fbbc9b345007c77d223dcbb0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java:568-576 | apps/DeskClock/src/com/android/deskclock/timer/TimerFragment.java:884-892 \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":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"695f86ca1f4adf2185b79a986d839b7fdf0716655062e234e4b79ec8d410310c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/alarms/AlarmNotifications.java:59-67 | apps/DeskClock/src/com/android/deskclock/alarms/AlarmNotifications.java:100-108 \u2014 both copies are in the same file, so extract the block 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":"apps/DeskClock/src/com/android/deskclock/alarms/AlarmNotifications.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e387e4d69d48edd4f63e762e3efcf13d095665d1a1b822862be3069feadc502c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java:793-800 | apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java:809-816 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java:793\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"c605e752b84918a60cdcecc821fabc70243fea69e2d8f72b2d53cb52403a878e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java:50-57 | apps/DeskClock/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java:48-55 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"1957e15af8cc75bf6c8fa9290977a837553dcfb12c808b291a9878e47ff5963d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java:74-81 | apps/DeskClock/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java:72-79 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e746fdc0b1e68bf87dfc02cdcfacb0fd4220731ef3653bcb91683d9fd9a055"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/Screensaver.java:153-160 | apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java:191-198 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060apps/DeskClock/src/com/android/deskclock/ScreensaverActivity.java:199\u0060 calls \u0060forceLayout\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/Screensaver.java:161\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/Screensaver.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f2f78e3e0fc6708269df95063d1f9a83141ec3f8bd1c323b8a7c4deb6c846e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/timer/CountingTimerView.java:522-528 | apps/DeskClock/src/com/android/deskclock/timer/CountingTimerView.java:534-541 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/DeskClock/src/com/android/deskclock/timer/CountingTimerView.java:534\u0060 it begins part-way through the construct above it, so those exact 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":"apps/DeskClock/src/com/android/deskclock/timer/CountingTimerView.java"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e677e5e8cedfb0aa5ef17959ad4e63835363bf6dd1a78a476ba88791197d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Music/src/com/android/music/AlbumBrowserActivity.java:103-110 | apps/Music/src/com/android/music/PlaylistBrowserActivity.java:133-140 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe744af4b9e0d4d9d598cfcc0fc3d75d8b784af19be826cd1429c8414ed3625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Music/src/com/android/music/AlbumBrowserActivity.java:101-108 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:97-104 \u2014 before extracting anything, compare \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java\u0060 and \u0060apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"990c9f615729a9dc678fe863e8da786e05d9344b279d59844159fa42df42a057"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2877-2883 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2877-2883 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2877}}}],"partialFingerprints":{"codehealthFindingId/v1":"7933d91d02c2b6178beefe4e3cf413a23d8b5b0decfd4f1e2fa5e0c8c0a8ea1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/calendar/DayView.java:2628-2634 | apps/Calendar/src/com/android/calendar/DayView.java:2877-2883 \u2014 both copies are in the same file, so extract the block 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":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":2628}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f522afdea39892fcad52b5f295c56209f9b525fa608649ff3ad8d990ff5ed9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:409-415 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:406-412 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b803b30e9f7863d9d9da201144994a9852ab78231f03b2a2aa6ca80812ee01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/DeskClock/src/com/android/alarmclock/DigitalAppWidgetProvider.java:87-93 | apps/DeskClock/src/com/android/alarmclock/DigitalAppWidgetProvider.java:122-128 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/DeskClock/src/com/android/alarmclock/DigitalAppWidgetProvider.java:87\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/alarmclock/DigitalAppWidgetProvider.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f339123245bacf2f38f8e48e3a496ef16fcf753cc32650f30ace89d13e4591"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchFragment.java:253-259 | apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchFragment.java:293-299 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchFragment.java:253\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":"apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchFragment.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"586ace8f3855b4c58d0622f1df42631d841669d8c47526cc4c786110c07fbbdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/timer/TimerObj.java:243-249 | apps/DeskClock/src/com/android/deskclock/timer/TimerObj.java:263-269 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/DeskClock/src/com/android/deskclock/timer/TimerObj.java:243\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":"apps/DeskClock/src/com/android/deskclock/timer/TimerObj.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"468e0d9eece3a358f3d3ab00392bec55bef95efc7eb7fe71d566f227df794f80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/Calendar/src/com/android/calendar/month/MonthByWeekAdapter.java:237-242 | apps/Calendar/src/com/android/calendar/month/SimpleWeeksAdapter.java:235-240 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthByWeekAdapter.java"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d68fe3ff1bc520e7f14cbb523d04c163baea77874eb9b55aea906c1ad2a6810"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/common/contacts/DataUsageStatUpdater.java:108-117 | apps/Calendar/src/com/android/common/contacts/DataUsageStatUpdater.java:158-167 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/common/contacts/DataUsageStatUpdater.java:108\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/contacts/DataUsageStatUpdater.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7ea0f4459f99a7032b52d5053320b5376d64f90a98512d940b424a5aeae883"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:308-313 | apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:330-335 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:308\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":"apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"094959804d0e61d8650016f2e7b2702c301da9660dbe08e30db17cea2fd94ccb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:424-435 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:421-432 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"558a36fec6bce30a2ab26bf079aad406b29e76c397d503d942acad1b155c1eb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 3): apps/Music/src/com/android/music/AlbumBrowserActivity.java:582-587 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:643-645 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:659-664 \u2014 before extracting anything, compare \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java\u0060 and \u0060apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java:582\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact 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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. 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":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"647d7c7a555dd3f45be72007a688beaf82bbe010386584d6ee25fdf4385d3792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Music/src/com/android/music/MediaPlaybackService.java:519-526 | apps/Music/src/com/android/music/MediaPlaybackService.java:617-624 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Music/src/com/android/music/MediaPlaybackService.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":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"74456d12b48be98d6af7e31f06b7fa123471a3f21fcd400c80e3f2fb5d6a2fcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:236-240 | apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:305-309 | apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:327-331 | apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:488-492 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java:236\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":"apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"db80f75214e92c60f8084d07ddb2cf47e5d4685a450cd09022b5bfa1b5b01c95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java:76-82 | apps/DeskClock/src/com/android/datetimepicker/date/YearPickerView.java:74-80 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/YearPickerView.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc7f6df84323a61a8619b67f7790c136a694c60187c6c7484d996df7da947d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/AlarmTimelineView.java:135-139 | apps/DeskClock/src/com/android/deskclock/AlarmTimelineView.java:150-154 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/DeskClock/src/com/android/deskclock/AlarmTimelineView.java:135\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/AlarmTimelineView.java"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3fca08d3a4a253795caa59a75c847e4f48f6efe17b1266b842dccd07ad7290"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchFragment.java:942-946 | apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchService.java:321-325 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchFragment.java:942\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":"apps/DeskClock/src/com/android/deskclock/stopwatch/StopwatchFragment.java"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcea9993dbcff68420d0ed0ebea3de8f31219bb5d521ab31bd6a8bc123c9819e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/timer/TimerFragment.java:936-942 | apps/DeskClock/src/com/android/deskclock/timer/TimerFragment.java:969-975 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060apps/DeskClock/src/com/android/deskclock/timer/TimerFragment.java:934\u0060 calls \u0060setContentDescription\u0060, \u0060getString\u0060, \u0060setImageResource\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/timer/TimerFragment.java:968\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/timer/TimerFragment.java"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"8015aa2d8e09b8066dd06a3c4320f14c4f80749b7dddb9dae0247505b24614e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/Music/src/com/android/music/MediaPlaybackService.java:279-283 | apps/Music/src/com/android/music/MediaPlaybackService.java:662-667 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Music/src/com/android/music/MediaPlaybackService.java:279\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":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"7777cf216633458440e1cad6bb5b4dbabbcd52bae3b3a4074a61baae04987cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/Music/src/com/android/music/MusicUtils.java:112-117 | apps/Music/src/com/android/music/MusicUtils.java:139-144 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Music/src/com/android/music/MusicUtils.java:112\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MusicUtils.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e61bbed9643662a76718b161280b2090c79c4f9a9dfdef7dc38fd37f3948b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/Music/src/com/android/music/QueryBrowserActivity.java:286-290 | apps/Music/src/com/android/music/QueryBrowserActivity.java:292-296 \u2014 both copies are in the same file, so extract the block 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":"apps/Music/src/com/android/music/QueryBrowserActivity.java"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"c651c717d6ba99e641f5c068b9a163a52cdc6afbe3160d38849f9c41451d417e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/Music/src/com/android/music/TrackBrowserActivity.java:1040-1044 | apps/Music/src/com/android/music/TrackBrowserActivity.java:1078-1082 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/Music/src/com/android/music/TrackBrowserActivity.java:1040\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":"apps/Music/src/com/android/music/TrackBrowserActivity.java"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"108936a1a5d2790aafc31b737f0e1ee4360f1c3a6d9e978d01e522326ed1067b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/EdgeEffectCompat.java:36-64 | apps/DeskClock/src/com/android/deskclock/viewpager/EdgeEffectCompat.java:36-64 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/EdgeEffectCompat.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/EdgeEffectCompat.java\u0060 as WHOLE FILES: 97% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/EdgeEffectCompat.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"374d755cc961b3d1b1d70811671d2672e6781eb4431e8ee4795aec02d56d31ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (319 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/PagerAdapter.java:1-319 | apps/DeskClock/src/com/android/deskclock/viewpager/PagerAdapter.java:1-319 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/PagerAdapter.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/PagerAdapter.java\u0060 as WHOLE FILES: 99% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Calculator/src/com/android/calculator2/viewpager/PagerAdapter.java:1\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":"apps/Calculator/src/com/android/calculator2/viewpager/PagerAdapter.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03512b28a696a01481bbb8e7ece57c35ab3a9c18973b83d277b77a4b2dbb8dde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): apps/Calendar/src/com/android/common/SharedPreferencesCompat.java:1-53 | apps/Music/src/com/android/music/SharedPreferencesCompat.java:1-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 \u0060apps/Calendar/src/com/android/common/SharedPreferencesCompat.java:1\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":"apps/Calendar/src/com/android/common/SharedPreferencesCompat.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a628cbaf3b299d934197e82520c322de996e7d78217458a5d93c43614b8435f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): apps/Calendar/src/com/android/datetimepicker/AccessibleLinearLayout.java:33-47 | apps/Calendar/src/com/android/datetimepicker/AccessibleTextView.java:33-47 | apps/DeskClock/src/com/android/datetimepicker/AccessibleLinearLayout.java:31-45 | apps/DeskClock/src/com/android/datetimepicker/AccessibleTextView.java:31-45 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/AccessibleLinearLayout.java\u0060 and \u0060apps/Calendar/src/com/android/datetimepicker/AccessibleTextView.java\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/AccessibleLinearLayout.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2191f0124a5b6ff2f62457668a248d74373d816f2175d785dead8fe5ffcb5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/HapticFeedbackController.java:20-75 | apps/DeskClock/src/com/android/datetimepicker/HapticFeedbackController.java:18-73 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/HapticFeedbackController.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/HapticFeedbackController.java\u0060 as WHOLE FILES: 98% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/HapticFeedbackController.java"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8723fecb951605169682f73a2d854df35127d9be23e5c144ca45e31e588f4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:383-396 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:383-396 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf547361d989f44aece49534369dd813ed80e3c7d7fa876343a85a2a52ac5cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:637-641 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:637-641 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78c27ddc32946d890fde1a03d8e4892cc537c43ff2fa6379b419de56824fff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:683-693 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:683-693 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f4fb74d2397a13ed5913a3c49e20cc8d79df5522f12739c3c23a5d123023ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:703-711 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:703-711 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"2929b566a4ac78ded29f3a7be60af11a321479ef827cc15ebddedff6a387739d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:749-755 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:749-755 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"002e9cb2a63dc6e2d93bba1cb2881b4d78fccb65deba64d2186b84e1668c58b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1244-1252 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1244-1252 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac123457348dd37feb2dd8fd5930b2cb9a876b864a65927be9a58cb320da130"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1256-1264 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1256-1264 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"11761cd716bbcf3dd9a8a81f7bb35840fd7759c245db8772b8ed72ab972d7e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1321-1329 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1321-1329 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca32c46264d14cf38f13c6100f289b307087075283d2efae93ea6fec45e8c31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1331-1340 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1331-1340 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad31c0802f63d242583fdef7244b69062100b98f517964d3328f3fe8da7ad75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1342-1350 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1342-1350 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef4c48925bc780065f1840709d9b2aa4885715cb9de581a09cbe746e28c5869"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1454-1461 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1454-1461 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a91882516d60be3f16f5a070c8b66e8d02842ea3dea7c542836dd9081c3a896"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:1766-1773 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:1766-1773 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1766}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6ed996e80abb19af8edc937f477eba47d3602d46b2d9ed50eba5ee8c30ad66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2606-2612 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2608-2614 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2606}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c9128d221edf0ed418518e65543154d9b11603a5f60d4924f07986ee8296a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java:2865-2871 | apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java:2865-2871 \u2014 before extracting anything, compare \u0060apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java\u0060 and \u0060apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java\u0060 as WHOLE FILES: this scan already matched 63 separate duplicated blocks between them, totalling at least 1949 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2865}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc8040d0c047b3f87387604ac099063cb840edd7ad955cd61479ada83d82c19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/Calendar/src/com/android/calendar/EventInfoFragment.java:2253-2257 | apps/Calendar/src/com/android/calendar/event/EditEventView.java:959-963 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":2253}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8955d8831fb3f48efabd1cf3ede4b64d6cd892ed033500af44864d9ceb3bba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): apps/Calendar/src/com/android/calendar/Utils.java:597-604 | apps/Calendar/src/com/android/datetimepicker/Utils.java:113-120 | apps/DeskClock/src/com/android/datetimepicker/Utils.java:111-118 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/Utils.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/Utils.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calendar/src/com/android/calendar/Utils.java"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"46dc01bbe5df907f4b699e576652b7942ecee660a1bfc608dd61eb5b2a4d4e53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/calendar/month/MonthByWeekAdapter.java:122-128 | apps/Calendar/src/com/android/calendar/month/SimpleWeeksAdapter.java:165-171 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthByWeekAdapter.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"208d720f29755e2ecef544a97824e985ad1e82cb54c1dbf0a2b0a759cde44ec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSyncAdapter.java:220-226 | apps/Calendar/src/com/android/calendar/selectcalendars/SelectSyncedCalendarsMultiAccountAdapter.java:290-296 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSyncAdapter.java"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"4741473546e81cc3c7fefca3402f5a6786d178ac6a94190d02e7f4cc097a2982"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calendar/src/com/android/calendar/selectcalendars/SelectSyncedCalendarsMultiAccountActivity.java:166-173 | apps/Calendar/src/com/android/calendar/selectcalendars/SelectVisibleCalendarsActivity.java:105-112 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, 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":"apps/Calendar/src/com/android/calendar/selectcalendars/SelectSyncedCalendarsMultiAccountActivity.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c9197f6ff4ce33efa6849b43731620703ed8197f98919c2da5e405315ad601"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:103-111 | apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:101-109 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"050c9cf3c0294b393332b9059d30b6ee6746a3340b0faa9e943cd98aeb2ce877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:275-287 | apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:273-285 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"143190037a6ac351336d03d37d8ef5ac1a745e820875e4e734bfba94e3f6c227"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:508-515 | apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:506-513 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94cc3c3fe69a5dddbc8ec56a42ac082466f6d3a0ba07ff083ee3725cd645212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:521-529 | apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:519-527 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"925b013ecfc1e20d26e9cb3e37094c18652f2f1988d20c46c9cd659148d4536b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:531-540 | apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:529-538 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb199a42bd143bc771ff9a4884c84bd31236cab2b8ad293043eb83832cab75c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:645-654 | apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java:643-652 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd055337cc14b5b7c6129fd72a20584c206ebf950f9b158723bb61420ca2ae3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java:155-160 | apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java:153-158 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"c335c014338c6aa44848ce07dcaeba6ec85dfa842510c87aa08db8b95df56215"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java:359-368 | apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java:357-366 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"a716958e0dfba56ed0efb108bee1de451cd18ff324b6eed74839d0c6df590e13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java:370-379 | apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java:368-377 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a85081d8f5361f0546c3d817df57485b02ca16d9b2e41d28ff4dd1075564ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java:389-395 | apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java:387-393 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7069a4222beb89f56966f1240676a0f12516cb813eeeb304034fde411bf7669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java:398-405 | apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java:396-403 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"8097e22483e13fd54f00733fe60182e301e8de9ee7951bb78beb4c9705b6aa5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java:408-414 | apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java:406-412 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"7816aed6e1b9597887e94c17aa9c24c52d735f49403d606d34be8320effcb704"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java:417-423 | apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java:415-421 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b500227dd9f42f5f159a46076f87b1bd0981327772fb74d0268db3ba279c6b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java:425-430 | apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java:423-428 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6eedd4e5dce87bfb674426ab6661debd29bc9f42d76ea928ed763dfb8202130"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java:116-123 | apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java:114-121 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a55eb6b99e993c86ba4087e43a7469f41cfb0d928cc869637e58e1292b2d7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java:134-143 | apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java:132-141 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"68571133fd7b93c77341b7ffe0b5b07663171c20c857db6d6d52e2b6b0d22823"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java:149-163 | apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java:147-161 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ed30cbacc3535b45615bc1b6fd28aaf626e32c5b9ea444bd273c47b784e29c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java:239-249 | apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java:237-247 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"adcaaacdb213028a159011173a578e5f4e40f3d634a936f62b1dba5b69794dfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java:257-267 | apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java:255-265 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java:257\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d26f5ddd7fd2f0754e8a72debe124db0bbd9ab254c37db1a40327fa61d40af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java:426-434 | apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java:424-432 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3978927b68ee988016ac2c6255f4a5d3ba87cd2df0c5d1790fbc7ee4887217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java:68-72 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthAdapter.java:66-70 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthAdapter.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4989ac413cc71f4a520ec7d3dd94e737d96fdb6f0af22f53053a34921405d316"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java:90-96 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthAdapter.java:88-94 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthAdapter.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d794f2e2d6805da9ab30d45dff8b6330013bfe1683a16282e7336b0c5f073b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java:98-106 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthAdapter.java:96-104 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthAdapter.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc543fc2d3aa845ae085e765c7e354ada06371c780cbfb6c8b3f9ff5fc896d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java:221-225 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthAdapter.java:219-223 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthAdapter.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e986058cdcf1eddad2e972a4a8e817d8c139c5f13f39f681864618a2234719c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:248-258 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:245-255 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"701f4c8c27b47b96b8260997ded2b8c2ce7f8ea0e02ec6203352fa163a92ff85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:381-386 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:378-383 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4d8487abc67ce5f563ae73e787bafa7c9a292c2beb6dc27982c355c6cc5655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:417-421 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:414-418 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5893c03826ca4e5284a09fedb1200962e6ab8487ede5cda49a91b4f290db34b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:505-512 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:502-509 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"4778f6a8865be22ab63d67f7bd2f40b6b36efe30d01289797974fd0acb10864a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:518-524 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:515-521 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29115cfe6affc77bf5a3c00d26dede303719231877096e6921440fb0a141021"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:541-547 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:538-544 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"889ac5b9fd1c2aab57069d060f7f2e01c092cbabd1ece53d5ae1bab01cd6a3da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:577-583 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:574-580 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"781d2fb568aed839a61d08aa813dc0161384e1ca46e835d88cfc9cf92faad8a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:598-609 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:595-606 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d0ba910f73352462f1934d6939c49f44df1105948b4e16ca2259c0537df23b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:650-659 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:647-656 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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 first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"119024671e35de3ee259e605a1231ffbc74f676730d04cce1c8e0870c9ffa047"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java:59-66 | apps/DeskClock/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java:57-64 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfea0ce09e1da2a1376394c931326d9956ed85b6ca378592ec1cb7847212f08f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java:84-91 | apps/DeskClock/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java:82-89 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/TextViewWithCircularIndicator.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"753ad927432cfcb6d80b12bb021fe18052b2a9695fd7e5685c7b204b12010a6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java:132-141 | apps/DeskClock/src/com/android/datetimepicker/date/YearPickerView.java:130-139 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/YearPickerView.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"791e219eae3de6620daf28f7ae98d8d5742246b9bec18710eb6f575a4ef4fbd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java:143-149 | apps/DeskClock/src/com/android/datetimepicker/date/YearPickerView.java:141-147 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/YearPickerView.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c5dc3aaffcff17b80a886895d32fd3da2384a024222c86d3004866cb4bfb9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java:158-164 | apps/DeskClock/src/com/android/datetimepicker/date/YearPickerView.java:156-162 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/YearPickerView.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/YearPickerView.java"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e53dd3c192a6ed60461913c92f3798f66101cd12342b92d84a02fe07b8053c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/CircleView.java:49-58 | apps/DeskClock/src/com/android/datetimepicker/time/CircleView.java:47-56 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/CircleView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/CircleView.java\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 86 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/CircleView.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1383a566647c3edb72c3b85b68292daab2b780edbece58f8d5b9fdc33e0697"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:224-231 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:222-229 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6119bd30a001f51d860f866d47ddc8aac3b15953193a0f7ec200e02d55176c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:276-285 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:274-283 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"732371d2b5c6118ea86c3935c10dd00851f4c43d04aff8fb110a1033de8dc06d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:513-519 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:511-517 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"838dbc30b0d3652ebbfad5552920bb1993dec7d6af3f945d8d6810e58d7b3182"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java:732-741 | apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java:730-739 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3817624e51d09ff8aec6bc132a346a9041bac8503206c824ea90162315331cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java:168-180 | apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java:166-178 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c8e4584c487d4750f3cd34c2e75ea352bfe78dad458420f71cb47d91d42734"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java:148-157 | apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java:146-155 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060R\u0060 names \u0060com.android.calendar.R\u0060 in one and \u0060com.android.deskclock.R\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e519281ae915529ac3b4a896a2cac08e8378ac165bfc344cf6eb7ad904f8089b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java:337-344 | apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java:335-342 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"a558fefa9f761d042c128b03502a118037520ab7f14ad00a7b380efb0153e2df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java:346-353 | apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java:344-351 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b3884049fdcbdeb2710f97a46b513dddfd4299f045845b023c0d29cc264b26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:439-447 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:437-445 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7f210493c5e57a58a949124a45fc1e9a45a662e7c547101a5b7faf037d9f34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:565-572 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:563-570 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"b646d4594d987d067f9300ff50264256d6cead0e6bcb1528c219d4a09f2ac246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:606-615 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:604-613 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c605cf33c502fe1957fdd15441c3220ee56b4adb198eba81b5cf78086b8e5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:634-640 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:632-638 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"1909ed72252dc9e69a0e06244d0b60654ae02fd362a0883d901f1825adb94b58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:957-964 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:955-962 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89e6f992740791eb2b26ae99669c88b7544e5162caf12607e2515958b1add2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java:966-976 | apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java:964-974 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 670 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efd3094ef2ff3f5b4872bceb147590f2de788c93b5ce7036489d67581c31cf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/provider/Alarm.java:202-206 | apps/DeskClock/src/com/android/deskclock/provider/AlarmInstance.java:238-242 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, 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":"apps/DeskClock/src/com/android/deskclock/provider/Alarm.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e60accb9a2ed6c3baac8cb2bb12367ea7ca01ef45bf8102fa86819124b5d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): apps/Music/src/com/android/music/AlbumBrowserActivity.java:185-194 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:188-197 \u2014 before extracting anything, compare \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java\u0060 and \u0060apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dda3c54f99d9c53fa5a21471df01759c2522f2714f886d229622caaeda1d1c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/Music/src/com/android/music/AlbumBrowserActivity.java:415-420 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:284-289 \u2014 before extracting anything, compare \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java\u0060 and \u0060apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"f624f72dea6c36a4a0c77a5484ceef6d6a65a1613d6ec63903dfd5f31b470a67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java:568-574 | apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java:565-571 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 276 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fd7f8bc26015a5197b60e65eaa5cfc05067be7f257313bb43f29758ccc899f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/provider/Alarm.java:188-193 | apps/DeskClock/src/com/android/deskclock/provider/City.java:133-138 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, 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":"apps/DeskClock/src/com/android/deskclock/provider/Alarm.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e4a43da6621fb769fd472411ea949679ad27ca4cb71485d621deaa8c763b55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): apps/Music/src/com/android/music/AlbumBrowserActivity.java:205-211 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:208-214 \u2014 before extracting anything, compare \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java\u0060 and \u0060apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"189510ddce735bf6f052c1fdd10efaa8e746b311121aef2e872225348ceb3f6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/Music/src/com/android/music/AlbumBrowserActivity.java:631-641 | apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java:821-831 \u2014 before extracting anything, compare \u0060apps/Music/src/com/android/music/AlbumBrowserActivity.java\u0060 and \u0060apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d668bb9cb0eb55d896b8f29d60d1d272112760b3f55c8df766a88e3b375065"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): apps/Music/src/com/android/music/PlaylistBrowserActivity.java:616-626 | apps/Music/src/com/android/music/TrackBrowserActivity.java:1533-1543 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/PlaylistBrowserActivity.java"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b91e14c2661ade65b575f03511c5f22ba0c80d4467357f27909c0d24c71ca03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java:272-276 | apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java:270-274 \u2014 before extracting anything, compare \u0060apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java\u0060 and \u0060apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0520d0008cbdc2a06d6d7fa4515d9b6badca674d8c69766b94735a4b1335248"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): apps/DeskClock/src/com/android/deskclock/worldclock/Cities.java:48-52 | apps/DeskClock/src/com/android/deskclock/worldclock/Cities.java:64-68 \u2014 both copies are in the same file, so extract the block 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 \u0060apps/DeskClock/src/com/android/deskclock/worldclock/Cities.java:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/worldclock/Cities.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7466ef67ab47c5a4a8d6d96ec0e3a364de4ae025005eeece086578d6013e80"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CalculatorDisplay (LCOM4 6): CalculatorDisplay\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/CalculatorDisplay.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef965d58cb8509a044b9a18a8b48d622133c9cbe0bce1027363e78b74275cc7a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BaseEmailAddressAdapter (LCOM4 5): BaseEmailAddressAdapter\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/contacts/BaseEmailAddressAdapter.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2971a72b9067506fb4adb5e4d558a4df1d9390f2c6b88c19e0ed88ff98576a0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DayPickerView (LCOM4 5): DayPickerView\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f448241234a5c8f2caf1023a2ea61620c38dab64e01b995f51b8a70c300871"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DayPickerView (LCOM4 5): DayPickerView\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"28675a924f5cb83104ce5e6d162a99fc63800bb86d039d56215e828063f1bee3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SelectSyncedCalendarsMultiAccountAdapter (LCOM4 4): SelectSyncedCalendarsMultiAccountAdapter\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/selectcalendars/SelectSyncedCalendarsMultiAccountAdapter.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0ec412679f86e3575dc2b971bc73ab1c0790e7b9d3f4ef964eeb7d89ba230c"}},{"ruleId":"D16","level":"warning","message":{"text":"bus factor 1 \u2014 one contributor carries this repository: 3 contributor(s) have commits in this repository (automation and bot accounts excluded), but the commits of a single one of them cover most of its history \u2014 90% of the 79 commit(s) sampled \u2014 so the number of people who actually carry it is 1. This is not the ambient state of a solo project: there ARE other contributors, and if the one who carries the repository becomes unavailable, the knowledge behind most of its history goes with them. Spread the next changes deliberately \u2014 have a second contributor review or pair on them \u2014 and write down the parts only one person can currently change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a99f114ab4dfee37ae0bf0665b44c7468d85b809d361949e2b6258101fa1e5a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: update error message to reflect that the recording could not be \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/SoundRecorder/src/com/android/soundrecorder/SoundRecorder.java"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff45b86a48ee895d63285aeb036e85b736bf28e07ec03e467cae8bacf9560436"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: if mMediaId != -1, then the playing file has an entry in the media \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AudioPreview.java"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0890e544bede8bf84f66492d44f7f09b6decb5b4f7c55f8fcad5536386dbff0"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: shrink the array when the needed size is much smaller \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"9820190d067da214c6eed8e0f958593aa01141650b3d3cb1ac7bc9f60e2207a5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make it work right after adding/removing items in the queue. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a67528a68606ff4fc5919257750439ad248377759cf70ee1a2abaaf6424576"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: notify the user why the file couldn\u0027t be opened \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":1918}}}],"partialFingerprints":{"codehealthFindingId/v1":"d38763ac5899cffa26110626369a46719f1bef48cc687a63b559f4cbddd20cc4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: notify the user why the file couldn\u0027t be opened \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":1921}}}],"partialFingerprints":{"codehealthFindingId/v1":"3684d716c3b740e3fef32d4c0596cef0b7380a29b61160db7877426a1ee24ad5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: show a message \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/PlaylistBrowserActivity.java"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed56fef1818600ef986c77674bb3232ab15193c8ff582abaead1545e02073fd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: show a message \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/PlaylistBrowserActivity.java"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"016b3021c6f764fb87c412c6a9e0f48eeabbc5e755813a1be756ad57f191c5a9"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // HACK force update of mItemCount \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/TouchInterceptor.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e91582c643ff74c2d7800ad31b25853668ff9fc8b5f03ff6b566e9e5a243966"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: IPC call on each bind?? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/TrackBrowserActivity.java"},"region":{"startLine":1501}}}],"partialFingerprints":{"codehealthFindingId/v1":"68323912565d83189449534c845303b2e3ac908474cbd12c511b8d6eb95325ad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO temporary hack to prevent the convertView from not having stuff we need. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"45771bb4f0d3a2f27f74e61154786b0ea25707ab5cc9ad8c859168e544c8907b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO we may have to deal with cancelations of the animation. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5f50117ee7c8f7c6f864323584951cae76c17cbc0edaeca3449e5e6aed6ef2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO we may have to deal with cancelations of the animation. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java"},"region":{"startLine":1599}}}],"partialFingerprints":{"codehealthFindingId/v1":"764c569a2d9a9c4d5faf364738356e31ab00748610916bffee00ba621910927e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO just pass in a listener in newInstance() \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/LabelDialogFragment.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacd2a67434675dbffefe0fb9801a9eabec8534325c78420ee81284b497dc95a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO just pass in a listener in newInstance() \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/LabelDialogFragment.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c960f1769a3ad0643d52132a3ed42945f3824b1ab672a86353876242cd18a44f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Reuse mMediaPlayer instead of creating a new one and/or use \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/TimerRingService.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de3c707aac79e45c560b505c994bd0fcc1817095e8c3311029099f779ca9772"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: support multiple android:ellipsize \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/EllipsizeLayout.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"147040f03ede770505f907610184520e14a2f23ab44a6148e65693a8f7122b5f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Respect android:minWidth (easy with @TargetApi(16)) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/EllipsizeLayout.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f59fb52dcdecfa7e89b8d9c5bc100c7a68457eac819b74a12e54ac5211ede6f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Rather than using Object, use BaseNode so that we\u0027re not confused between this \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/GridAdapter.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c12234bd3ff82ce2d28a55c24067d1264b777e5a01e4f96da9a539b434b58b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: restore when WebView uses the fast fling implemented in this class. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/OverScrollerSGV.java"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ae426b79aaa123a2f59ba1898440c4ab621f1a1bada627504fce94795ae1fc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO take velocity into account \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/OverScrollerSGV.java"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a61045505b65f1c42fff9683f1c01e27e7ac3b604d35ce9a1cd0c23039fe04"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: figure out how to absorb the velocity properly. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/OverScrollerSGV.java"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f3e8192a9eeb1a1fd681b041ffb127644cc08d802218ab86ce28de7061eaef"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Better compute speed when edge was reached \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/OverScrollerSGV.java"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"64909c0cbc7b028fd239dc3beac9c1d3281e656af86cd3ec3f9eadf4594c6f01"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consolidate clearDraggedChild() and clearDraggedChildId(). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/ReorderHelper.java"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde91284c27dbd055ef80115b8aec88bcf3e6ccc015121dd15cd06b12820e8d7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: If we\u0027ve dragged off the screen, return null for now until we know what \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/ReorderHelper.java"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d04ff35acfc6ec4698ab8ffa8d28bdca8a70fbed5e27c8301dd8447f7f324d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: If we\u0027ve dragged off the screen, return null for now until we know what \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fa3ea0a792f893f92e48d2df939d7ab2614e092aa80c9ac3577af27fdeb345"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Put these states into a ReorderingParam object for maintainability. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"3082f4369818af82db1564be81cc2868005934acf435b06927bdc1a5ebc72d3c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Reconsider using the framework\u0027s DragShadow support for dragging, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24c5a397ec4a650324f3c08d995350c0f6d7cfb3445f83dba6ed8c1f1e9ece4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consider moving drag shadow management logic into mReorderHelper as well, or \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"79089d8c232312e01a460d2bec128321e20b4933d730894e77383572fc210cda"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Have other overloaded recycle methods call into this one so we would just have one \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"258786a9af7b9cedb3f957211c1d924d810d802d857ca28727afabe57259a501"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Figure out why mLastTouchY is being updated here. Consider using a new class \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3f9cda528ba874570c9a047399ed00e25fc896a930ae2adc96530b43721399"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement smooth scrolling for this so that scrolling does more than just \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":1658}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b76be382ae0816b0441f61db52e3ddb92a1c2a0745328593885e2bbcb883e6a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consolidate this logic with getNextRecordDown() in the future, as that method \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2162}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4d650f3121acad6d750cdf8e71d7d8fb59e0d2c6b669f052ee58a932240286"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO:  Consolidate this logic with getNextRecordDown() in the future, as that method \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2371}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2db3425605b47648b68a0e763eda5b61c46909d4bc9f2d730d208042e4d4fd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This method currently does not support transient state views. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":2999}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b64f6686dfa3bb553558969fd38eb20a73955725fb3665add4b4506dc29b32"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make use of stable ids by retrieving the cached views using stable ids.  In \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":3011}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74747e1a9780f16d13cfccc5136d70254ede75555e9d7033e6f7331a75a3752"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO:  Perhaps it is more efficient if we check the cursor in one direction first \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":3278}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdb664f267897c11bf37f40d863dd3c719978bf3f7e594dd9986c28ddcdfb89"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO smoothScrollBy if immediate is false. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":3357}}}],"partialFingerprints":{"codehealthFindingId/v1":"229b7976f1f0aa7408edf82f8cd0b7c577427d64297e0632a6ca222bc071581e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement support to maintain a list of active views so that we can make use of \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":3853}}}],"partialFingerprints":{"codehealthFindingId/v1":"f873b68644ea0812a6001fc4e65b4932f09d4b83063214f0bef6798e7d5f929e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consider matching these back up if we have stable IDs. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":3890}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc446c9911f6c0858a8819ce2949378049a85229560eb95218ab8982e5cbc5c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider repopulating in a deferred runnable instead \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/StaggeredGridView.java"},"region":{"startLine":3910}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b3fbdc8d2995c92e91e4f4ade83ca9e1df759e5cb33875c7d7fe1439ece0c6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add transition states (see list_selector_background_transition.xml) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/GlowPadView.java"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d3085b65a1f45e479d2a9bb4d0b7f74bd130ed03497d7a17b3b81a721d7ab0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make configurable \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/PointCloud.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"198994cb91c7b54201092f08e9ef652ad05017abe78b2e269bb7cd2bba0520c9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make configurable \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/PointCloud.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14f547e4d525704334aab7e1b05fe34e56c753dad50cf260be99b53710ce279"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/Tweener.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5412b63dc16b45b1667c13bca786733c8075af66670f25dd43226cb706e45a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/Tweener.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c119758cf5a0e468bc739c9afffa8b353bd58ee4402dcf90d52205e54927aa2c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/tests/src/com/android/calendar/alerts/AlertServiceTest.java"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d05742388fd6a0aeab380f76480866cc9e01015097d5d7698e57717602f6dc0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DeleteEventHelper.java"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca72af1e791c8c5338865447943f675caa450db1f42950cffb5c1325528f908"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthByWeekFragment.java"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"f889d6c024cc66a2f25f7e33a730015505bf563c3b12b76ce8df50d9dea1d8a0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"432d3342840bc6ac74c6f78bddce50e6caef2b8d0ce99a0af45f60d39ea6c0f5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: multiple interpolators? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/Tweener.java"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc498e5043581cfdba1ee1d2cfaf03451252a35e69203f8bb6b48f092a55bf5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO:  for v of vars \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/Tweener.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7fc493f98437ffae9bb7bfe19c98f74acde5af5481cece157eeaccd10070a6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add versioned support here for transformed views. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java"},"region":{"startLine":2453}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28bde92a58a2a98cb0a0c1360cd26b017f53af30626d019f29342b7e9ec5a67"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add versioned support here for transformed views. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2451}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6e45a918ac53ac297b2cf5edcc7f4219aac4b61a4a824a460e40e36d4749c2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO:hyphen is too thick when painted \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/timer/CountingTimerView.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"391ccc9bc66f12b53f8683ab6603f845ea7731e43416d31820c9baa2fe26e09a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO:showHundredths S/B attribute or setter - i.e. unchanging over object life \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/timer/CountingTimerView.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"66df3f3a2b3c137f658ca6f5a2c97bf9af8c71e8b9c103b0596f712e7dc9bdad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO:does it matter that we do not look at showHundredths? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/timer/CountingTimerView.java"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d466ec7d7dc23495a78da96bab3661faf0e8138c3bdcfa4711418d499c4c55"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Need to recycle convertView. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/timer/TimerFragment.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d778d464312c216e1c6a3bd129c973a3282b66f174bc1504a2244793d81f05"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Refactor instance names \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/provider/Alarm.java"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"5966c7b615116f1839f61c7ac6613ae35cdf88f1f76ca3ea3162aec7de693bf4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Reuse mMediaPlayer instead of creating a new one and/or use RingtoneManager. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/alarms/AlarmKlaxon.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab14071e3d3ba22453404e5a03726adb1dd8ee193eca2ee581ca6125a64d986"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This will re-activate missed snoozed alarms, but will \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/alarms/AlarmStateManager.java"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d013ba2c4f6e4454e358f124e25e03fdb091d9af25ecf7ae7b2870d89f67c7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Refactor this code to not use the overloaded registerInstance method. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/alarms/AlarmStateManager.java"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7a22646e05ea909fffecccc4c6f64a53ae367f7efb22b6c227779ebe2ad58f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Replace with animation decided upon by the design team. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"c475f3ea0dc0b209395376c93d566ce42f63f17f29d201ee6c73ac2b45da4edc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Replace with animation decided upon by the design team. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb294e5e2214b25112ca0d8974829ed2b4b158a916b72c1f52e90c5fd202994"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Replace with animation decided upon by the design team. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4082c286cee41a1725f81a5fa18e402033901b718a19cd73a8e33a892ee88ca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Replace with animation decided upon by the design team. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"57da633719677a52c2d58336f247072f9e05026cffcb2479477b24eae0c47985"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check virtual view visibility. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"a256a775e1dbc4c3f1a1d6edb957e75b6cb8756f4a6347d8b7f92f3f0919862a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check virtual view visibility. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"14aac05ad3ee2a011dcd1fcbbb6a5c554742f8b7c745feec2a160cef3b3fce09"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Only invalidate virtual view bounds. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca59432ffefe8a970b047bf45aaec7397a5ad6a713d6b3e65c3a9fc97306deb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Only invalidate virtual view bounds. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd810c840fb53c771746659afce5901df03ff3f280d9d4763e27bb0b532dff2e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: Should this be in the options guard above? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/alarmclock/DigitalAppWidgetProvider.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc03342f13be23c3daa955dea6cbaf57503e13b1fc7a897b10acab40e2e26980"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: finish fake implementation. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/tests/src/com/android/calendar/DbTestUtils.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8df3bcdd5e4321c8f2d563733e8f346cc2e3a39d84517fa850bbcb9310242e7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: finish implementation, perhaps using an in-memory table \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/tests/src/com/android/calendar/DbTestUtils.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"166eca7d26cc2e23da282ed63113856d2523794d30d8d78766c92ddfca5dee85"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: not currently implemented \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/tests/src/com/android/calendar/DbTestUtils.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"48013018c44330ccbaac031107cde12bc60a7ec7bcff66a21c23656733730f96"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add tests for army time. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/tests/src/com/android/calendar/UtilsTests.java"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36313bc72fb723d6855be38d87b1b2a4236ce442f626796f34a187309ae3c3a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //    TODO Disabled test since this CalendarAppWidgetModel is not used for the no event case \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/tests/src/com/android/calendar/widget/CalendarAppWidgetServiceTest.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d093feac801190f6a14a563201fe76d4e2f39306f99e39a17cdb87736394ba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/tests/src/com/android/calendar/event/EditEventHelperTest.java"},"region":{"startLine":1634}}}],"partialFingerprints":{"codehealthFindingId/v1":"c710cb28ec1e21d879cabcdfc06c8402f0d6f5790a11a724cc74f67584272bdc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Auto-generated method stub \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/tests/src/com/android/calendar/event/EditEventHelperTest.java"},"region":{"startLine":1640}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f08adfbed48f6103bbe291709d43dea39f58edf4c8b9e06dbbbb7897a3f1f0f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO speed this up \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZoneData.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"425156328a52ad5f069ceb3514868eadb7cf25b1c79aad368874c717f0c026e7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO check for dups \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZoneData.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec670c9c7456bd199bda95ccb709b606d9f5c756259f8aa0a141de182dcca25"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Don\u0027t like this here but need to get the country of \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZoneData.java"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c73a7574125dcb2d73cbc3acdf63587804413b3ebcf0c11f91e8d0eda2035e6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Perf - we can loop through the filtered list if the new \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a181dec16613600c33c89acd8d7251630dabfd6fde656a5484473787ed88abf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Perf - cache toLowerCase()? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce2fa352da60291cedde798660ff6979ac40ca5b1f89a309d198d0b9aceba7c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Search by state \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZoneFilterTypeAdapter.java"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b2ba1d1cd211be8044dd041774227cb1d744717a90af5def39f69428950a9c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Note: The local time is shown in current time (current GMT \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZoneInfo.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"373b1274aadee3a547441ea628687813c01c32ef0bf8e4aae134f394435e5793"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Filter by state \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZoneResultAdapter.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d792ad2b6986bebc98043393203fdf848b297af90748130bc489228934f0eb3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Fix it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/BaseRecipientAdapter.java"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb7fc36f98a4d17a21b153c983ecca8ba36a686c7cb3412384c7a10309378a4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This won\u0027t be used at all. We should find better way to quit the thread.. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/BaseRecipientAdapter.java"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5e2b99e80bb30f7bbcc25c8319186dec27e7c5d54027446433d6ae8446c5d8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo (aalbert): This whole method needs to be in the adapter? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientAlternatesAdapter.java"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d157f5f3406149c65a000496b60b351b4138405d2e2dbe0284c61f64b3ab05b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this is VERY similar to the BaseRecipientAdapter. Can we combine \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientAlternatesAdapter.java"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"1541d66477e5141c6402e8e49270209b893b7b553d53da81ff19ec75bf1a21b6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: see if this needs to be done outside the main thread \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientAlternatesAdapter.java"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1cd65959b33b738ba796dc11873d8839e4f98a85ce11483136c00a3afb2b45"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: get correct number/ algorithm from with UX. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b153d95ceca184d5f232b95ccce771ff84c64208d98e1bacb2046ee52dc702cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: cache this in the recipient entry? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9a51dcd109056b5c085b926f6998a3f17911c8f71577578d1671bad7bb839b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: can the scaled down default photo be cached? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"640f072658f4551580d1111a6ed15a37051342211a88d30ff9a379a30d7a11db"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: replace this function with libphonenumber\u0027s isPossibleNumber (see \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e0136977dddfc99d4cfd6ed339e7b8ed9848097cd926d0a7e4f4046947e305"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This algorithm will need a lot of tweaking after more people have used \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd597ce55b0ea7462eb8c687dee9dbe6fc1bf532d58d31c4163256d6a38a93df"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Should x and y be used, or removed? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":2127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f941dad387037267e575985c8ba57fff64ee852234da2dd77c61447ff160ee50"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (phamm): consider readd this chip if it\u0027s dropped outside a target. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/ex/chips/RecipientEditTextView.java"},"region":{"startLine":2787}}}],"partialFingerprints":{"codehealthFindingId/v1":"d110abda2ca822dadb2dea4c969f9042009c2161f1ab2087ccfd2fe00bff5da7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove, workaround for a bug in Uri.writeToParcel() \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/Search.java"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6459f6fc49a374c33559c7adcb55b77338776843cce9129e289ec9f27ec2848"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove, workaround for a bug in Uri.writeToParcel() \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/Search.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce0dc0fd8311791540600f9853026b57db544faa950181e843f02233587befc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Is this really what this is supposed to do? Just remove the cursors? Not close them? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4cf4973e39fbb20e4a876009fb591fc18d34ba7eaf57acbe6d031f8a232aec7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: revert to references to the Directory class as soon as the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/contacts/BaseEmailAddressAdapter.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"66366ed93595e90f5959c4a5129a92ef311ffdc7720f2a3f35c9ad519dab3052"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: revert to references to the Directory class as soon as the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/contacts/BaseEmailAddressAdapter.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03fe075bd03fa39efc02b0fe8c8e9423e2fee951c0b64e6e0bc6af77840d29d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: do we want to list these here?  the complete list is long. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/ICalendar.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa9265cf1c05f9327a714b4077bd8beb1f2efc0b8e7a2521a9b70afc1971504"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make this final? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/ICalendar.java"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"76655bbc27528ef34470dfc49908157ce0506fcdb23913c39ccbc24676f2e90e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make this a proper class rather than a struct? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/ICalendar.java"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"166728af791f6f6ea977879affefb240d556dae0207bdda6ae86956790c93c58"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: just point to original text \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/ICalendar.java"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad3eb16f2aa4f83527b5dd165ef80ed526ea1d6a9484311d39d3bd814be32c1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: get rid of this -- handle all of the parsing in one pass through \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/ICalendar.java"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3904fd95e5e6d2f743f284a1facbba6ffba88e9ba8eac5925de9960789c4fc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use an index into the text, so we can make this a recursive \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/ICalendar.java"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"f430f2895a0b3d248e826b2dd65b1cf6df12589166db968e3fac65d730f67009"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX Do we generate days for MONTHLY w/ BYHOUR?  If so, \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb21cb9cf5930c50939b304e276813808072735844686593c89ac007e9abb6d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pay attention to whether or not the event \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e8a12e40061683206d881a0ba0f6bddbb7e556a4c4ee648d5f5d575548b783"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: we don\u0027t check for stop conditions (like \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e84d0f4b09b6ff58655b4730bacfbccd31a8a7af39dafabf9d0ca610b279c52"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX: We do this for days, because there is a varying number of days \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceProcessor.java"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc276b67d1d816c272b58597a6ac8c2bbc19ff8943c81317a675c013d808e18"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make these final? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceSet.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9ed2921c6558a08e80d9a22a06cce9429652a6e0039510fa7c68904bed13b3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use \u0022local\u0022 time as the default.  will need to handle times \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceSet.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd7dc60ff4ba3ecd9288a9842f1d48a9addfc1bfbf3465267cbaa416937c635"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: android.pim.Time really should take care of this for us. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceSet.java"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"99df0dea1726cb6fd52f8cdedfe18c3dc098fcb2d3198c3c7c0b77886b499119"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: android.pim.Time really should take care of this for us. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceSet.java"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"7591ab6d5aac2a9c65acc44df501b27da69ca2efce3013f86de86b9507062539"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: use commas.  our RECUR parsing should handle that \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceSet.java"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35fe724d77bd0de10a32ef05a743dd9e2de565b60dbb3924f22742cb0251980"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO remove this if framework ever supports nested fragments \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a8fce1ced97e16bc46ea91359bdd7ffe02eac51e28ebf691df2aa0c8786a2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Fix the temp hack below: \u0026\u0026 mCurrentView != \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fab0b2f0e30af6eeee7ca06bd5ba23d74a7e7c674766488f3f4f72cfcdbe720"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pass the real allDay status or at least a status that says we don\u0027t know the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarController.java"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"af308e833b366c1b31dafbcc3a79c7ab8f8c319c1b564d910d43ed70c68721cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Throw exception on invalid events \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarController.java"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"8707694f0e9461b1b585e2596e7c42d0e4832d73505ceb59da52aec9cd5c5e89"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: cache common instances \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee96c813cf2f13fffbd7fc813ec0748904f8fc4439b4bd5e04e7b4e2a7768f2c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: error-check args \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4df020e3a8e6da284caf63deab4eecbc79f5ebc845bfe8eb7432cbdaf7bd1a7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO strip out fields that don\u0027t ever get used \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7a1286361e470cc22f87a8e02a283b304b7201f00b8b812ffcc37305d5b504"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO remove this if we add support for \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarEventModel.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"900dbf8cdf7b9c55e84748715ead29d96f271a2fa20e4c7e4cf8138b6b66646f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO support a range of time \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayFragment.java"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"877fb5d3e8bd20710ac9d036739aff1be4c3f55954009f4ab395448049d26f4d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO support a range of time \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaFragment.java"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1279f090d742b38b087e977d4eb1ebc6d3e3c8efe3f7a48380ecea114bb869"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO support event_id \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayFragment.java"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c2866f88419f8a067c60dcc1150f85fe6225038e5eda1b73fff7d2e0277a87"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO support event_id \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaFragment.java"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"03484c42f35022b691450c83a41ec1875ff2062af1cb8b2f9babc9dd8f90103d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO support select message \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayFragment.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dfac38352009dd937c5082cb2f99c13bb31f9a499678271f398eec2a6801802"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO recreate formatter when locale changes \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6cd2fef54a2d68209f7fde54cd67d081acd9e42ce29fabf2e79725f15ac681d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO recreate formatter when locale changes \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"356280568c7b972e38c01c871d2ec36a408e634f0d763b4fc3d9a10b50ae9a4e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Clean up paint usage \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98f3b2492b5adb4ca64b55cfa4a08c0ba95b00fe7bf94c3c3b92b95b3fcc0f5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Wow, this needs cleanup. drawEvents loop through all the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":2467}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcefbbb75483270a00ba8a66ea0c652035da6ade2ed19d9718bff64f9c0926c4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: not sure why we are 4 pixels off \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DayView.java"},"region":{"startLine":3137}}}],"partialFingerprints":{"codehealthFindingId/v1":"724eb4fa4ee77d0aab47ae25ff0017eada71445123945667007c074855ac1cc2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO move the creation of this service out into the activity. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/DeleteEventHelper.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"6616ade24d7cf3beb637eadcb4a487a069a02437a5662a249d7a7096a46e3e74"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: should Event be Parcelable so it can be passed via Intents? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/Event.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6df1fd0ecd273014dc38abf75ec761b8dd6e9fbc95fc923d54590a43e7000f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO add \u0022|| guestCanModify\u0022 after b/1299071 is fixed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":1775}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59df4906d1bd38bdc1c60099fd9df19b1adc85aad0f6638e1d39bba65a33300"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO show unsupported reminder types in some fashion. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":1966}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca14cf9089d3fb7f63bf135ac40bde1de52defea0e08a34330265897834b01b8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Switch to EditEventHelper.canRespond when this class uses CalendarEventModel. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":1982}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1c9a048da780a77644578f6dab29648df06d597eacb64e132e413af7602a4f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: when adding a new reminder, make it different from the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":2141}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a06151f6350add9a286b6f2d7a3545d4822454b02c953596bf7f5ff981b06d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: when adding a new reminder, make it different from the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c9a09df73047fd1ae3a5896771651bc803294872e4c0d864f5f6d6bc1d3f30"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Implement \u0022Until\u0022 portion of string, as well as custom settings \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/EventRecurrenceFormatter.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a7df9cc744a2922a3b5c59fc99613a0d980ddc5528b39de5c0c09b5260dc5e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO add a more generic default button \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/MultiStateButton.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ef3084d133656a739480f4e3c088e03ab7191caa5fdbcdb85742b619fc4ea6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: figure out how to infer the contacts account \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/RecipientAdapter.java"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22b7d712bd1167e4331a2e63a016a8fdfd255762b1bbd1966265641e3d35054"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Return a SEND intent if no one to email to, to at least populate \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/Utils.java"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bdeb779ccf879d7e4c9f06d7c93deb0a8389e8ad1464c3ca190186bd3e428fb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Move these to Calendar.java \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/widget/CalendarAppWidgetProvider.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c85fd786b70c6a9bafca7ec985f77d29143a02b8c7ea131db52081f881af589"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: It seems loadData() is called via onCreate() four times, which should mean \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/widget/CalendarAppWidgetService.java"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7a12f897de3e2b5c25f460b41f03afe8049881c01e3577cd5e31bca1c5da81"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove use of mHandler and CursorLoader, and do all the work synchronously \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/widget/CalendarAppWidgetService.java"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"93cbc8d1cfb15841d6ab139dad934872bebf9b15eb6a294aea9b2f1a96529c73"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO create a broadcast listener for ACTION_PROVIDER_CHANGED to update the cursor \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/selectcalendars/SelectCalendarsSimpleAdapter.java"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00ff71daad184738b71595ef405d525fefb2e8af60969e309425b26a303b6f0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO initialize from sharepref \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/selectcalendars/SelectSyncedCalendarsMultiAccountActivity.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2cec074d1b9c264ecef7319fd5da4f0b023566ce323166247e34dfb4df8260"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO change to something that supports group by queries. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/selectcalendars/SelectSyncedCalendarsMultiAccountActivity.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"245d3bc629abe489590273ce9974a583ff43b5502d8d9741c8e89170dc0445b9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO Store this to preferences instead so it remains on restart \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/selectcalendars/SelectSyncedCalendarsMultiAccountActivity.java"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee419eb4cbc1b663b854f2dbea34563e3d64dca3c345e0a5840286a70cdd27d2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO timezone? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f850f4869620b86bd0ae5f71e6aa171d67cab22c4853187df74554240ce6ae1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO don\u0027t lose data when getting data that our UI can\u0027t handle \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cff1681e7f08dce15a441d44e0e8d2d32a19c0aa79bb879a1ff648d6e017b90"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(psliwowski): Find a better way handle -1 indexes \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac25be2476d0bc6059d508a583a73c7cceda4c7e03ef109847f34326fb8032c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Test and update for Right-to-Left \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/recurrencepicker/RecurrencePickerDialog.java"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83f1af327a2597de061c074fab9ba678f50edc96433ba1fe099843a81818645"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO fix selection/selection args after b/3206641 is fixed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthByWeekFragment.java"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"da50cd4fb5b57f8adcea6c408ab9f8c05b40b29255f800b79589df1785f14093"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO remove this after b/3387924 is resolved \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthByWeekFragment.java"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"59fa6d0511ac596069dbcf91991c91d32eb653c6d1a8f65c8597cae7bcfab177"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO post a cleanup to push us back onto the grid if something went \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthByWeekFragment.java"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"245667e823c3a3146ab551b8bd826847730439850db383f6df9221dff732e549"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO modify paint properties depending on isMini \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00978ec101c8adea3d6066f2862ec7df26fa706e0253762070ba6c10a870eed"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO move into SimpleWeekView \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cd6ed712d737beec2a2b64208866effc8cac03c452686d923bf9729da58f67"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO push Util function into Calendar public api. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/SimpleDayPickerFragment.java"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"7750be1e0f46b0df89fb2d5b141a6873d4c75e52d76bb00b3cecaa03cb87e008"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Remove calendar imports when the required methods have been \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/SimpleWeeksAdapter.java"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6fba93a89c358885f7b17457a0e019edbb2b4cff96dff936cbf25fc2f3d0cd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO put this into a Loader for auto-requeries \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/AttendeesView.java"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"53838a15954b5901baba097c153aba83de5475759717508dfe1a123fa77c8fea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO turn this into a helper function in EditEventHelper for building the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventFragment.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e388701c47ac51fdf5e0f2dec0b41c4849a323f722a80c0b7a385288882fda"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Requery to see if event has changed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventFragment.java"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed37c1c45cad7a4633f792fa10c8fd68b9e3ddc3e2f458a3e9ca861009d294a4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove unnecessary constructor. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventHelper.java"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef47cfd0883f4e5199b918e224bc4e4a383458f8a54b1aba5751088e7810f5d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: is this the right test? this currently checks if this is \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventHelper.java"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"d817c870536f2b548774bb66bc49a24a0fcd462564ba62b1e78906c3aaa18f2c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: clean up this code. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventHelper.java"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9ed91e932ae68689ce271d50751c75dd3a045ce06fee77d53bf260f6824bc6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO think about how useful this is. Probably check if our event has \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventHelper.java"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a740d13061782c4d7dcd63c6930ed8242f15de2329e2ba6115f562853fa67f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: add\u002Buse a copy constructor instead \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventHelper.java"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d81adeba6afff5610ec08f91053bf8a4ef0ed888ef089669118ecb99259740"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Should give option to clear/reset rrule \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"881d134608b64da389c00ef408489dcc70ef11183ae1a7f908fc5892349443ad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO may be more efficient to serialize and pass in EventRecurrence \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e95b20378a5508620d25062dc1c3273d3e3fc016ae0323bffa77bf7bcf03fd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO set correct availability value \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7269da20baf230dff31593465b5189f4c3789e86246b1508e44a682782ae642"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO figure out a way to display unsupported reminders \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba78380d699bc264be9a02c48a48a03e48a37691e5ec89eadb5bf617c9684caa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Please remove separator when Calendar uses the chips MR2 project \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee8b0ae9dde1286ff8d69c52ae68b20ae04e7a948a19818d64af31c5a5c9f84"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO fix this if/when DateUtils allows for passing in a timezone \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"62bf1f83abcda6863b0862f0759c093cfa2867549161a757a00453c9e0b92173"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO fix this if/when DateUtils allows for passing in a timezone \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":1628}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb6ba59d61261d5f7dafcd1be4e95a6407d76ce793f27456033feeee3b0d2f4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: can this happen? should we drop this check? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventView.java"},"region":{"startLine":1727}}}],"partialFingerprints":{"codehealthFindingId/v1":"83caff23ac63185482200c99694a0ce5a9c89550540c3e9002d314288ab3c592"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: limit length of dropdown to stop at the soft keyboard \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EventLocationAdapter.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"813ae09952edccc42b0f48880923db293621fb61d233b0635ed152667cee941d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: history icon resize asset \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EventLocationAdapter.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9c7fc629a54bfe4e08ac0a1df071ed4231ac6eff7c4f48b7dd8ee65fcef40d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Only query visible contacts? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EventLocationAdapter.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b258e85747b92e9c2e2b9e7033c3500c7affe031c7a431729bbde91f143374b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Refactor to share code with ContactsAsyncHelper. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EventLocationAdapter.java"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdeb3c5dbb190384837462e87112f8fd89c8c6853350dc086dde36a83612f25a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: also match each word in the address? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EventLocationAdapter.java"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"4555382e691a87a36a6b4340ef756d07bb1fd10b38c1f3cbf8ff89d5dc8e235a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Create snooze intent.  TODO: change snooze to 10 minutes. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f11b336549739f03667b0517082deb325383b56fde89e2721e5b6cf8eb1d60"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Get icons, get strings. Maybe show preview of actual location/number? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4e5961038fb28dfd28e9e290ea17c458379c789fb3434b5a896c4cd89590db"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add highlighting and icon to this last entry once framework allows it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6c61c18d0799eac8dacf29e8f8610675e6a52b755fa43ce3c6398d610d01a7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Refactor to move query part into Utils.createEmailAttendeeIntent, to \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertReceiver.java"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74c69d286857fd6ad397b23efce39faba3b5dbac400daad7a1231897ef47223"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(psliwowski): Find a quicker way to be notified when the data provider has the \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a3f05bfc7f058cdd067e80513ae61a89cc62053fad6bcf602cddb1db188228"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove this when the provider fix is rolled out everywhere. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bdd0b33e6054a14192e9ee0bf1e2969f671f2aecb5904d5614f41e53b7a5f59"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Post these with the same notification priority level as the higher priority \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"f508115c0aff2f993afb845350406dc29a2ed54cbbcf86d2f87d1e07bc9476db"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Change to a relative time description like: \u0022Started 40 minutes ago\u0022. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46da990d9210389c8b9a72c016fb75adde4a012d947ce1a6985640f248bfdce"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: What order for high priority in the digest? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"3200ba666372c8be0dfeea771d77713a2e04a00fdbb7519a9707d9de7ea35569"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Prefer accepted events in case of ties. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a8c7948d9dbf8a8afbf4cc53dce18fdbcf8cd67cd29c8a71327ec884f0bdab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Prioritize by \u0022primary\u0022 calendar \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1373f9f6ec9300747000bf7cfddc2eabbe9414dff1414728f808ec0ca914c5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(psliwowski): move this to account synchronization \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a816370aa461a22e8687d06b18daeb9b159b6d2c33d041c335469a827c15dae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Move this into Provider \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2eb34c337136af7a14eb08150b7639c129201a326e9e654202deaeb87c4f51"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: construct an explicit SQL query so that we can add \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e075648d9db666da1c723a513465adb2ce827e956465e1a1476c0371ccc601"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(psliwowski): Add guava library to use Preconditions class \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/GlobalDismissManager.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e910b0b4e7d61bbdaf5f6420b2e2ec75418fe573e3bf37c36a8f2cedb17773"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(psliwowski): Look into persisting these like AlertUtils.ALERTS_SHARED_PREFS_NAME \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/GlobalDismissManager.java"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af88755e1cee7a9a3ad5d233448b8f05a7192b3e547ca4b9f79e0f0a00a9697"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO figure out the animate bit \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaFragment.java"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"c527074ab964b6d4f0e260bcf47b1474abf941efaf8a39cc6bcb91315f17b15b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO Need to look into this. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0ae5815b47b5be297d15172b5b84c483f4dcb2ee444064654c1b5541eb8e85"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO the following causes ANR\u0027s. Do this in a thread. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79629accc3e017685e59ff4b016d08a57c7dfeedc682df19ace44936f7de67d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO determine the full set of what might be useful to \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"8754b430026c90c25a2df8456e6ca918f587859505045c8645b528f6d74f6047"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack to prevent keyboard and insertion handle from showing. \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/CalculatorEditText.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c385f7666dbcbc62eda49effae2971d1eea5825cd1eaf2faa6edda1081ba99"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060getContentURIForPath\u0060 spells \u0060URI\u0060 where 23 names in the project spell it \u0060Uri\u0060: 23 of 24 names in project repository spell the token \u0060Uri\u0060 (23 of 24; unit: names in project repository containing \u0060Uri\u0060). Peers: ContactsAsyncHelper.retrieveContactPhotoAsync(photoUri) (apps/Calendar/src/com/android/calendar/ContactsAsyncHelper.java:190); GeneralPreferences.getRingtoneTitleFromUri (apps/Calendar/src/com/android/calendar/GeneralPreferences.java:343); com.android.calendar.GoogleCalendarUriIntentFilter (apps/Calendar/src/com/android/calendar/GoogleCalendarUriIntentFilter.java:42); AgendaWindowAdapter.buildQueryUri (apps/Calendar/src/com/android/calendar/agenda/AgendaWindowAdapter.java:820); EventLocationAdapter.asyncLoadPhotoAndUpdateView(contactPhotoUri) (apps/Calendar/src/com/android/calendar/event/EventLocationAdapter.java:227). Rename to \u0060getContentUriForPath\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MusicUtils.java"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"8854f81b2666a5563e0829029c7bf8bdb44abfc5ba15cf64ad1cbdc2495999b1"}},{"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":"7f672bf49d4273a3d486f7a2027b871417f8e6729e127bc86f58dad40f1f4ecd"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"53704020eb107d1105d5d6892ac8a7ebf77cca7e580ee67a3245a09768e69e9c"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"7f55496671c87454a981944d1771872022bdd09f09436650211f21c41b2505e1"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"01802a5deb665985c69606e6ab46b2a0011072a65f1b7366e4c6d0d436aa9708"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"294794e06c45a4dfd3857855ff955914fff8cb883e76cab0c0ffda40d7b82357"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a19465d09cdb917e0e3e0d426c095cc9bb7666bd7d96ce41badabb16d2378b39"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a94b0f691f300f26727470b576225d5a4e7a779788b42362ba0e2187fc5e74a5"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"8e27f99199c4626008f24ca61a69e27951a5e94db44e0eedfa4f867f0abe2edf"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a700c21ef0e57fae97935006792bd6f0df4da82840bc18f5b316d65fe6076aab"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"c43d006c8a284d9cbfc840d122129b05f1463b28f4303c583af3d1e34a8702f3"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"99fbf953d4ed8d8ed8804c86165062b97c1151ca14865bc4b0ab3adefcad9a3f"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"4fbaa02cf0371919cafbda855d9ea427a9806661f0cf22b42c386486709f76a1"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"283280d716861ed1ef67b0ab022228d1792890d9cab9ab13464f2b62e0513821"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"d0de65a548069e457137cc4a0b19d7d6b174240fdf2c320692dfe6e80e81d49d"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"7517bc8b93b79939e33b000525a35a2b2946db7c50a63482a32d44aca08bce5a"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"fa58e30b1384052cd540e425c0feed4c89959375efda556278797490427d123a"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"e2ba77f36795eb60f71243453a77bb5be9508ea4380069fefcdb70d785631eb6"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"GD1","level":"warning","message":{"text":"Unfinished stub \u2014 empty body under a TODO marker: \u0060eventsChanged\u0060 is a shipped method whose body is empty except for a TODO/FIXME \u2014 scaffolding that was never completed. Implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/EditEventFragment.java"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a94edc0e50af5afd22a847021a4e6cef7987b8f3c05db75d81ae232b8e506e1"}},{"ruleId":"IC1","level":"warning","message":{"text":"Dead branch \u2014 condition is always false: A branch guarded by a literal \u0060false\u0060 can never execute \u2014 left-over disabled code. Remove it or restore the real condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/ICalendar.java"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9a4c1fc40ea525dfe516cfefc5ea033cb02d446ff101245bcb53afb83c608f"}},{"ruleId":"IC1","level":"warning","message":{"text":"Dead branch \u2014 condition is always false: A branch guarded by a literal \u0060false\u0060 can never execute \u2014 left-over disabled code. Remove it or restore the real condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceSet.java"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"07813f4472858b6706cdde40159696a022b31d0243a7480d207c5bb5c8d6016f"}},{"ruleId":"IC1","level":"warning","message":{"text":"Dead branch \u2014 condition is always false: A branch guarded by a literal \u0060false\u0060 can never execute \u2014 left-over disabled code. Remove it or restore the real condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendarcommon2/RecurrenceSet.java"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"772b2a57f4f655e953c13d26ab96c5efa79e19b20ce127cd012554e00ef22322"}},{"ruleId":"IC1","level":"warning","message":{"text":"Dead branch \u2014 condition is always false: A branch guarded by a literal \u0060false\u0060 can never execute \u2014 left-over disabled code. Remove it or restore the real condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/timezonepicker/TimeZoneData.java"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9a56ee24433a4d5069a43914bb28b05c01a008b8c60ca90fd19acd2c90f514"}},{"ruleId":"IC1","level":"warning","message":{"text":"Dead branch \u2014 condition is always false: A branch guarded by a literal \u0060false\u0060 can never execute \u2014 left-over disabled code. Remove it or restore the real condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/widget/sgv/OverScrollerSGV.java"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"6156b5fb68446c48bab3bac8bb3ccf7f3e050d875df3c3c9637d500418020826"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add spotbugs with find-sec-bugs (or \u0060semgrep --config=auto\u0060, which runs on any language) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!allDay \u0026\u0026 tz != Time.getCurrentTimezone()\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/calendar/alerts/AlertAdapter.java, apps/Calendar/src/com/android/calendar/alerts/AlertUtils.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertAdapter.java"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf97a3a82eb7d4770f88f5ce71b2b4f1412aff07a49b16b4309009906b993ac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!allowEmptyDisplay \u0026\u0026 mTypedTimes.isEmpty()\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java, apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a5fbb6f0b95b52aaad4aacf7f29a7ad1c2c0941af61a2b24104f171b6cfb59"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!always \u0026\u0026 mCurItem == item \u0026\u0026 mItems.size() != 0\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e1657f25a4f16daa3bc7f1505c37391572c1becb614d70711f99c53f2deb90"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!am.isEnabled() || !am.isTouchExplorationEnabled()\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java, apps/Calendar/src/com/android/calendar/month/SimpleWeekView.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"530818efa8ee9df2ae60c1d38aed251b5840b61a54dd58f0c1fbe1c634ec5204"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!forceToVisibleValue \u0026\u0026 (currentShowing == MINUTE_INDEX)\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java, apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"45df7721665773e6796fb7d8033bb76ba9e1584eff30aeb59103635dec0aa136"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!lp.isDecor \u0026\u0026 (ii = infoForChild(child)) != null\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"42130d9144862fd8290cac8b5b797e59eddf946ee2f31443f784f7e7d79e25af"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!mDoingMove \u0026\u0026 dX \u003C= TOUCH_SLOP \u0026\u0026 dY \u003C= TOUCH_SLOP\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java, apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"20582f2cb935feb4c9ef8fd1f367e9040ff52f6b91ecd39e07ab281074da5552"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!mIs24HourMode \u0026\u0026 isTypedTimeFullyLegal()\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java, apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"67754bfc4ba24d877e7ab969315b2cd99969d091a0cbf85db244ce1265c0a5ca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!mIs24HourMode \u0026\u0026 mTypedTimes.size() \u003C= 3\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java, apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98ff7cc540ea5d672808edfcc5eabc5fda42f98b4da96fe4751c9881dd0d5d2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!mIsInitialized || !mDrawValuesReady || mDisappearAnimator == null\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java, apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa822f88b6120026273aa08ae4cb0259ebe3705db78d02750911e17effe90ab6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!mIsInitialized || !mDrawValuesReady || mReappearAnimator == null\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java, apps/DeskClock/src/com/android/datetimepicker/time/RadialTextsView.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialTextsView.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa8849a9e0d363eb50495825181802e66d8080f35753543e78b3c0a7463be97"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!mManager.isEnabled() || !accessibilityManager.isTouchExplorationEnabled()\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java, apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7628b0d86ea4216665ee25bb8c01b3a264bb3e3362869f48c5adb3697068d9a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!mManager.isEnabled() || !mManager.isTouchExplorationEnabled()\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java, apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1a3a3e9eb5a52eb3a95f93ddd5730d7060041aeb9d01e34ec2a8816a10f7c7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!mScroller.isFinished() \u0026\u0026 mScroller.computeScrollOffset()\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a74fe939c6399a41351c83a42b69e0eb8a849036c7536fb00f5e8cfaa2ea4d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!params.containsKey(VIEW_PARAMS_MONTH) \u0026\u0026 !params.containsKey(VIEW_PARAMS_YEAR)\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java, apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a345757e61bb61e01fe11c1e942f3d183a3d8a4a61d6fa50b15bcdc16bd7db"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(day.year != mYear) || (day.month != mMonth) || (day.day \u003E mNumCells)\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java, apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5b30bec1ce68c67602caaa15c0356fdcbd9897186e33af53ec7cbc2973f977"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(localRect == null) || localRect.isEmpty()\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java, apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf965c8123dbdd799c5ae8eb7754f451ead00fdb454609b753e69b89aa35529d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(mAdapter != null) \u0026\u0026 (mAdapter.getCount() \u003E 1)\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2807}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c07389ae25afdb3905ced887a9796f39881910392b4d29d78cd891d37a54ca5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(mIs24HourMode \u0026\u0026 mTypedTimes.size() == 4) || (!mIs24HourMode \u0026\u0026 isTypedTimeFullyLegal())\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java, apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dfc3dc9b3fd8b62958c0e4c9396d367b8d2c358143195bb320507a32258bee3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(node.getText() == null) \u0026\u0026 (node.getContentDescription() == null)\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java, apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f6ddc6f6dec60c3c3cad325ab4fac58654350f5e30e271d44af26fbf40e48b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(view.getAlpha() \u003C= 0) || (view.getVisibility() != View.VISIBLE)\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java, apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"92aa3865a72ce9518bfab6a12338a3c16e623d34f720b82f8613b9ee9465a101"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(virtualViewId == INVALID_ID) || !mManager.isEnabled()\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java, apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2a3e687e6f57a53aec239b3059518fe4560648cf68bffab359debdf591eb34"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(x \u003C mGutterSize \u0026\u0026 dx \u003E 0) || (x \u003E getWidth() - mGutterSize \u0026\u0026 dx \u003C 0)\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5019163b7bae349fab05859d8794aee5cfc0994ffa826c2a5f6cf5daf1544e4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Math.abs(deltaX) \u003E mFlingDistance \u0026\u0026 Math.abs(velocity) \u003E mMinimumVelocity\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2145}}}],"partialFingerprints":{"codehealthFindingId/v1":"326f8fbf24ebce7f6ff5eaa517f30c41580c6d731c0d03aee731f91827373898"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060TextUtils.isEmpty(displayName) || TextUtils.equals(displayName, emailAddress)\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/common/contacts/BaseEmailAddressAdapter.java, apps/Calendar/src/com/android/ex/chips/BaseRecipientAdapter.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/common/contacts/BaseEmailAddressAdapter.java"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3e1772bd8d3f38b7c875e015090d8e8b2d627692515d0623c0165a345cbed9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060action != AccessibilityNodeInfo.ACTION_SCROLL_FORWARD \u0026\u0026 action != AccessibilityNodeInfo.ACTION_SCROLL_BACKWARD\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java, apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ade98b9dd07089ebfe18ff16ea7f9af7a189e1c7fe5da7bf68c3210c8d23b3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060action == MotionEvent.ACTION_CANCEL || action == MotionEvent.ACTION_UP\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1786}}}],"partialFingerprints":{"codehealthFindingId/v1":"de8fb9a310f015c4c39e1461722766d4bc1b7a67f8716cec5c1ba1501b4a1b75"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060activity == null || activity.isFinishing()\u0060 appears character-identically in 3 files \u2014 apps/Calendar/src/com/android/calendar/CalendarColorPickerDialog.java, apps/Calendar/src/com/android/calendar/EventInfoFragment.java, apps/Calendar/src/com/android/calendar/event/EditEventFragment.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/CalendarColorPickerDialog.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8495e6045717d81ce06f0bf7f5c1893c037c0094e1472db2161a3061e3bcf5dc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060album == null || album.equals(MediaStore.UNKNOWN_STRING)\u0060 appears character-identically in 2 files \u2014 apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java, apps/Music/src/com/android/music/MediaPlaybackService.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea78bd5e7e6ad07c24cc36ca4eb2adbb17b03e346fe4ec45769400137fe5929"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060artist == null || artist.equals(MediaStore.UNKNOWN_STRING)\u0060 appears character-identically in 2 files \u2014 apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java, apps/Music/src/com/android/music/MediaPlaybackService.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"345792ce6831faedf625d5741df7f4ed9dda8ed9161836d44b6bfc02757b3778"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060currentFocused != null \u0026\u0026 nextLeft \u003C= currLeft\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2553}}}],"partialFingerprints":{"codehealthFindingId/v1":"d910291711160cf58aa8a16c6d2920fa99adc234338d07f860bcac423a35f811"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060currentFocused != null \u0026\u0026 nextLeft \u003E= currLeft\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2543}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f12df9ad70797df15faaf46f44200a9bb981a8283c73deca5db3a6dae6f9a30"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060currentShowing == HOUR_INDEX \u0026\u0026 mIs24HourMode \u0026\u0026 !isInnerCircle \u0026\u0026 degrees != 0\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java, apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ab10ad7eaf2693ac2be6f3ce56d758d8ea8d0e121a087b266ec9d6c7bee0a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cursor == null || cursor.getCount() == 0\u0060 appears character-identically in 3 files \u2014 apps/Calendar/src/com/android/calendar/event/CreateEventDialogFragment.java, apps/Calendar/src/com/android/calendar/event/EditEventView.java, apps/Calendar/src/com/android/common/widget/CompositeCursorAdapter.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/event/CreateEventDialogFragment.java"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a813b713ff7cb9f5df78e8f304b8d0fc742ee3e6d5d6d5796144c1e77e7848a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060degrees == 360 \u0026\u0026 currentShowing == MINUTE_INDEX\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java, apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"c748b998c684404d28b489a1823348e68873a4cecb6785a2daa9ee9101e53084"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060descendantFocusability != FOCUS_AFTER_DESCENDANTS || (focusableCount == views.size())\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2640}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04de9f60cd9061d750d9252f220e33898bbbe6418d247283f411269608f52ef"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060direction == FOCUS_LEFT || direction == FOCUS_BACKWARD\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2559}}}],"partialFingerprints":{"codehealthFindingId/v1":"18653a3e738aa51ff621f2a5a5c10aba407ee47ec3f13d1d6cf5bffae09d3029"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060direction == FOCUS_RIGHT || direction == FOCUS_FORWARD\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2562}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0839bbc20c6d13f8c81c4b4619840e56f7da21c04a423a91201a060c7ed1026"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dispatchSelected \u0026\u0026 mInternalPageChangeListener != null\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"499e2ff7aa5e05af9c9cfcdca38ffde8060e6e526c6440174527ed9c65ee6068"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dispatchSelected \u0026\u0026 mOnPageChangeListener != null\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e8c9bd36071c5ac69d2e2132a71f17bd23f1fb9f34391546202884506e6493"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dx != 0 \u0026\u0026 !isGutterDrag(mLastMotionX, dx) \u0026\u0026 canScroll(this, false, (int) dx, (int) x, (int) y)\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"381298fca8eb38d7f197eb36a8192fad81ff6ebf1bf2af5d9311d7233574d3ef"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ev.getAction() == MotionEvent.ACTION_DOWN \u0026\u0026 ev.getEdgeFlags() != 0\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1928}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee50ffec3f11026aa8d7d20f4ce562cce5df7a0478254b6a63d40231f0ae934f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.getEventType() == AccessibilityEvent.TYPE_VIEW_SCROLLED \u0026\u0026 mAdapter != null\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2763}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf7b6beafb71a662a5b412b810d71c3aef1c7a1674f1cd11774c328ff2e3b7d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.getText().isEmpty() \u0026\u0026 (event.getContentDescription() == null)\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java, apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3a131208a0df229e34bb15343e289f321332ca120d8828e62e3b407baecf71"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060eventName == null || eventName.length() == 0\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/calendar/EventInfoFragment.java, apps/Calendar/src/com/android/calendar/alerts/AlertAdapter.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/EventInfoFragment.java"},"region":{"startLine":1478}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57c192b8dde174f229cd3a1f0bab13f5e34dfdbf352346ec6550c773d4e5329"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060extraWidthLeft \u003E= leftWidthNeeded \u0026\u0026 pos \u003C startPos\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e506d49b3b0c1a900d9ad3e001b08aff53c37dc4109721866aaf0779c2f909"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060extraWidthRight \u003E= rightWidthNeeded \u0026\u0026 pos \u003E endPos\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e82765edb9650e10dcc05d1275b9c950c5b399ef74414790410617f67f4515"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060fancyName == null || fancyName.equals(MediaStore.UNKNOWN_STRING)\u0060 appears character-identically in 2 files \u2014 apps/Music/src/com/android/music/AlbumBrowserActivity.java, apps/Music/src/com/android/music/TrackBrowserActivity.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bc851dfa09eaea4f8aafcbe870ed889b34626e37fef6fa4469c12532d02c35"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060firstPosition != 0 \u0026\u0026 lastPosition != getCount() - 1\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java, apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b075f6f18b4927128ab92e4bd58adaaf3f309138fb29685d6f70be6d0c1f4e1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060firstVisibleView != null \u0026\u0026 firstVisibleView.getTop() \u003E= -1\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java, apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfceab64edce0b064b578e9ed1607ec57a2e659cce8f8c2ab647992e0271ca9b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getCurrentItemShowing() == HOUR_INDEX \u0026\u0026 !mIs24HourMode\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java, apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"5532e63bf665a469719d242da2b841f68f471cfb007f42ef2cf487579ad0bec9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060grantResults.length == 0 || grantResults[0] != PackageManager.PERMISSION_GRANTED\u0060 appears character-identically in 2 files \u2014 apps/Music/src/com/android/music/MusicBrowserActivity.java, apps/SoundRecorder/src/com/android/soundrecorder/SoundRecorder.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MusicBrowserActivity.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5facb814f3fae5a9650ee7d163ec1051fe3b3b8f2cb5ae604b3c834dbcc31b69"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hgrav == Gravity.LEFT || hgrav == Gravity.RIGHT\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"a521556d574fef18754eb07d80197cc78d7d9de09635e782bc377956105bd5e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hover != null \u0026\u0026 (mLastHoverTime == null || Time.compare(hover, mLastHoverTime) != 0)\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java, apps/Calendar/src/com/android/calendar/month/SimpleWeekView.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/month/MonthWeekEventsView.java"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c127e740f3ba667c52bf0f579a8258828e245b096096730dc99e01c885496bf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hypotenuse \u003C= maxAllowedHypotenuseForOuterNumber \u0026\u0026 hypotenuse \u003E= halfwayHypotenusePoint\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java, apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc494df0775ef5a81dbcdd8ed6e1bb83f01fe4bae9d0304fd4cce13048426e6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hypotenuse \u003E= minAllowedHypotenuseForInnerNumber \u0026\u0026 hypotenuse \u003C= halfwayHypotenusePoint\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java, apps/DeskClock/src/com/android/datetimepicker/time/RadialSelectorView.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialSelectorView.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d507b69b958fedba4850f7b42da190bf2dcba4c39495eed84ff366e7b09e59f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060icicle != null \u0026\u0026 icicle.containsKey(BUNDLE_KEY_EVENT_ID)\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/calendar/AllInOneActivity.java, apps/Calendar/src/com/android/calendar/event/EditEventActivity.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/AllInOneActivity.java"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"1809ecce517e35ac0e541c26b7e644fd2a950c5c3f5a3a7cadc29903e142bacc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ii != null \u0026\u0026 ii.position == mCurItem \u0026\u0026 child.dispatchPopulateAccessibilityEvent(event)\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2723}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db025c11bc0df98bcb2ed05bf85dbfab0b5f52b21c8f822417bb853b58fe816"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060index != HOUR_INDEX \u0026\u0026 index != MINUTE_INDEX\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java, apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec13807c8f4bf859931442b722c269588d313cda11f1d34e90060c015fb3985"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060index \u003C 0 || index \u003E= mCitiesList.length\u0060 appears character-identically in 2 files \u2014 apps/DeskClock/src/com/android/alarmclock/DigitalWidgetViewsFactory.java, apps/DeskClock/src/com/android/deskclock/worldclock/WorldClockAdapter.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/alarmclock/DigitalWidgetViewsFactory.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ddf3239635cb247c63fe9659e69c68373ea7ec1dbd72d5c1f90add0b137f592"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isJellybeanOrLater() \u0026\u0026 view != null \u0026\u0026 text != null\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/Utils.java, apps/DeskClock/src/com/android/datetimepicker/Utils.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/Utils.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc455165505d0a77b9574dd6fa8651a037f8813ac7bcc4617a37b4992b5b4d04"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item \u003E (mCurItem \u002B pageLimit) || item \u003C (mCurItem - pageLimit)\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1122614bfbdcaf14552d26fa6ff2d3f63a9336880964f13185f0e8de5c750b1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060keyCode == KeyEvent.KEYCODE_0 || keyCode == KeyEvent.KEYCODE_1 || keyCode == KeyEvent.KEYCODE_2 || keyCode == KeyEvent.KEYCODE_3 || keyCode \u2026\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java, apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"9924c7c02c45ef6c79d0804cb9d33651ec430892e82535dfcbb671deff98809c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060keyCode == KeyEvent.KEYCODE_ESCAPE || keyCode == KeyEvent.KEYCODE_BACK\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java, apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"475ddf9a0cc3f6e6061e378da325eaba10c87e47c474ec239f0dee5b8386fdc8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mActivity.isFinishing() \u0026\u0026 cursor != null\u0060 appears character-identically in 5 files \u2014 apps/Music/src/com/android/music/AlbumBrowserActivity.java, apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java, apps/Music/src/com/android/music/PlaylistBrowserActivity.java, apps/Music/src/com/android/music/QueryBrowserActivity.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d5f161716e71abce39723be1f630c483a3c97ca42c07dc8ead5dde89c041cb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mAdapter != null \u0026\u0026 mCurItem \u003C (mAdapter.getCount()-1)\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2607}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f870e79be4960846ef4aafa0e7fe3e77d4b2b1c48e5e0fc1583d16b97016f0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mAdapter == null || mAdapter.getCount() \u003C= 0\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e18da10cda806798d498e6816a0438b28760a614aa266141ce3afd6ef364e79"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mAdapter == null || mAdapter.getCount() == 0\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1934}}}],"partialFingerprints":{"codehealthFindingId/v1":"41cf3c96d6f654e15278368b147c1c317cab0439563792bffdb15d8a7e34558f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mAdapterChangeListener != null \u0026\u0026 oldAdapter != adapter\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e097fe8db7e4308c82c1ed6831202057280451f3cf6c456716060417336b53c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mConstraintIsValid \u0026\u0026 ( (s == null \u0026\u0026 mConstraint == null) || (s != null \u0026\u0026 s.equals(mConstraint)))\u0060 appears character-identically in 5 files \u2014 apps/Music/src/com/android/music/AlbumBrowserActivity.java, apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java, apps/Music/src/com/android/music/PlaylistBrowserActivity.java, apps/Music/src/com/android/music/QueryBrowserActivity.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"968fa7cd75e61d3def29beff225ab7fc0b4bf9ed36de9cfb6593c285257a7b8e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mCurrentAlbumName == null || mCurrentAlbumName.equals(MediaStore.UNKNOWN_STRING)\u0060 appears character-identically in 2 files \u2014 apps/Music/src/com/android/music/AlbumBrowserActivity.java, apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"512c086f7f15fe0ad0c01bd32c0c9a3fc36eef0f3b1b0add660f818243140867"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mCurrentArtistNameForAlbum == null || mCurrentArtistNameForAlbum.equals(MediaStore.UNKNOWN_STRING)\u0060 appears character-identically in 2 files \u2014 apps/Music/src/com/android/music/AlbumBrowserActivity.java, apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a26965f08da243813bae5d2da5809ec94af09cf5816b26c655c89e74cf3cd96"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mCurrentItemShowing != HOUR_INDEX \u0026\u0026 mCurrentItemShowing != MINUTE_INDEX\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java, apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f15580a7c83ca503bb59404a8f59499504cf1eb8b9aa6c75f0e1090f03c5686"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mIs24HourMode \u0026\u0026 (hourOfDay \u003C= 12 \u0026\u0026 hourOfDay != 0)\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java, apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd857347882596100392d2d1488b53b5897c00202c4de05e8521082923449f32"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mIsTouchingAmOrPm == AM || mIsTouchingAmOrPm == PM\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java, apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e670d33d781141ea872b7448a5ff0965a099b9eea237517ad7e024a435c6f8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mItems.size() \u003C mOffscreenPageLimit * 2 \u002B 1 \u0026\u0026 mItems.size() \u003C adapterCount\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc8976ccfa601024f4d7ca7c78d7e128c595d4eee25d9ba0fd265edcfe70014"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mNewState == OnScrollListener.SCROLL_STATE_IDLE \u0026\u0026 mPreviousScrollState != OnScrollListener.SCROLL_STATE_IDLE \u0026\u0026 mPreviousScrollState != OnS\u2026\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java, apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab203f56d8b3f9210003110979ec0ac732cc6e143e0f0685e133cd366a073591"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mPageMargin \u003E 0 \u0026\u0026 mMarginDrawable != null \u0026\u0026 mItems.size() \u003E 0 \u0026\u0026 mAdapter != null\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2210}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52e5c324adae6a848048170b1c83eb76d470b5f2ed4642e73466afa93972342"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mScrollState == SCROLL_STATE_SETTLING \u0026\u0026 Math.abs(mScroller.getFinalX() - mScroller.getCurrX()) \u003E mCloseEnough\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1882}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22b8d4311b277e78f1efee2e98f5af60422ee5a40cdfaf1d3eeee8e2e7347eb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mSelectedDay.year == year \u0026\u0026 mSelectedDay.month == month\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java, apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthAdapter.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthAdapter.java"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"12cc7d2cb17a7646cf8e26327abdf5db6007e5ce131df5c103b77de2ebaa7b6e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mTimePicker.trySettingInputEnabled(false) \u0026\u0026 (keyCode == -1 || addKeyIfLegal(keyCode))\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java, apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3008ee29093c1414c64cbfd9e5ffea5c089d347e3a47828a4fe336f86513c7d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mTransition != null \u0026\u0026 mTransition.isRunning()\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java, apps/DeskClock/src/com/android/datetimepicker/time/RadialPickerLayout.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/RadialPickerLayout.java"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61f723acafefef83faa2bfc54a33f9c4db2e777009ac389eae4f7f0c6cabf57"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mTypedTimes.contains(getAmOrPmKeyCode(AM)) || mTypedTimes.contains(getAmOrPmKeyCode(PM))\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java, apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e9255409a07fe36d892edaf4ee5b2dfcae1428977029352d5e0e048ac7e605"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mYear == today.year \u0026\u0026 mMonth == today.month \u0026\u0026 day == today.monthDay\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java, apps/DeskClock/src/com/android/datetimepicker/date/SimpleMonthView.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/SimpleMonthView.java"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"df63787c7772be24ca2275d11ebe17f8d32a33c84a193ab0c777834638d29bb6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name == null || name.equals(MediaStore.UNKNOWN_STRING)\u0060 appears character-identically in 5 files \u2014 apps/Music/src/com/android/music/AlbumBrowserActivity.java, apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java, apps/Music/src/com/android/music/MediaPickerActivity.java, apps/Music/src/com/android/music/QueryBrowserActivity.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9dec7ff6e554afdd9fac060a6bba92cf899f0dd110b5d8ec264b30bcd8e45f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060nextFocused != null \u0026\u0026 nextFocused != currentFocused\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2537}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7a399089235fdd80feffbcf9fc695c238c6eda29a5663f8484608683870d6d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060overScrollMode == View.OVER_SCROLL_ALWAYS || (overScrollMode == View.OVER_SCROLL_IF_CONTENT_SCROLLS \u0026\u0026 mAdapter != null \u0026\u0026 mAdapter.getCount\u2026\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2169}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a31ac8daa528cf2d15771b331f9af25617c6c77f62e0263169718f30719538"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060p instanceof LayoutParams \u0026\u0026 super.checkLayoutParams(p)\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2745}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f5d41858f9b725a00a2b67ff48c405a2745c26d3f8176bb464db268cfd46f9d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parent == null || !(parent instanceof View)\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6ea5e8ea7163a455312025dde8efeb5c2f5f347e3337cdbf9d2170f7e2a8ab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parent instanceof ViewGroup \u0026\u0026 parent != this\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2586}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b87af7e83953117b6acb9035b17f35661028de684efe83503a34f1fc85165b3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pos \u003C= curItem.position \u0026\u0026 itemIndex \u003C mItems.size()\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"57005b36d30835fcd3c8071f7bc4603e7ed588b2c80ed4818fe50ac7759b5470"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pos \u003E ii.position \u0026\u0026 itemIndex \u003C itemCount\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2222}}}],"partialFingerprints":{"codehealthFindingId/v1":"79333274e6d76bca1a36683b407a00dbe63276b67ba43ddf50983843fc359e50"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pos \u003E ii.position \u0026\u0026 itemIndex \u003C mItems.size() - 1\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f453d06b2702b31facbd95997617dd9ea7f2465e55190c61e5d841ff15f946"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pos \u003E= curItem.position \u0026\u0026 itemIndex \u003E= 0\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67a26bb6b7b5e24be0158544a015c4c621c45ace6e8a1711790e427948f8e22"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060position != selectedPosition || forceScroll\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java, apps/DeskClock/src/com/android/datetimepicker/date/DayPickerView.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DayPickerView.java"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2be85d0da601ea855383ebbaa7535dd487a468a6d0ad9306467936fb5be9d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060realNodeCount \u003E 0 \u0026\u0026 virtualViewIds.size() \u003E 0\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java, apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"990156745092a41ba753cd3e5f2702c6be397278f2da85255c036889556dffa4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060savedInstanceState != null \u0026\u0026 savedInstanceState.containsKey(KEY_CURRENT_ITEM_SHOWING)\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java, apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bfea8196ea450b689234f8291038ad1318f7fbed63b9ba977d4a71b0fd70688"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060savedInstanceState != null \u0026\u0026 savedInstanceState.containsKey(KEY_HOUR_OF_DAY) \u0026\u0026 savedInstanceState.containsKey(KEY_MINUTE) \u0026\u0026 savedInstance\u2026\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java, apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"218f3834fa62cea76e8554a14351cf61439731b30d2b14305da0670cbdc259fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scrollOffset \u003C rightBound || i == mItems.size() - 1\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2127}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef63a3fce024698bee65f1cac3502c722b266fa6de99507ad483db24d069dd5b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060startOfWeek \u003C Calendar.SUNDAY || startOfWeek \u003E Calendar.SATURDAY\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java, apps/DeskClock/src/com/android/datetimepicker/date/DatePickerDialog.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/date/DatePickerDialog.java"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fca2b5619f67a5ce142547d42a6a0ab57e0d3b30e79e4dee8033f4ae0622247"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060state != TelephonyManager.CALL_STATE_IDLE \u0026\u0026 state != mInitialCallState\u0060 appears character-identically in 2 files \u2014 apps/DeskClock/src/com/android/deskclock/TimerRingService.java, apps/DeskClock/src/com/android/deskclock/alarms/AlarmService.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/DeskClock/src/com/android/deskclock/TimerRingService.java"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8b69a787510415e9f2eb69711a62e82d5caa55a8542700965ae4d31a340d34"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status.equals(Environment.MEDIA_SHARED) || status.equals(Environment.MEDIA_UNMOUNTED)\u0060 appears character-identically in 2 files \u2014 apps/Music/src/com/android/music/MediaAppWidgetProvider.java, apps/Music/src/com/android/music/MusicUtils.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaAppWidgetProvider.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5d0faf5ff5f2c22ed5fc01aefe278e326b6d25720b4ebdde59a00d7e90eab4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060super.dispatchKeyEvent(event) || executeKeyEvent(event)\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2469}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bc53da638c23f6d1f4e540325174084a559b06ba90fba5553e269630cc7b3c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060super.verifyDrawable(who) || who == mMarginDrawable\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"4636b7b9f35c359e95212167c1bae14a65fe58085bae913fa54fabf87bc995ea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060unknown || art == null || art.length() == 0\u0060 appears character-identically in 2 files \u2014 apps/Music/src/com/android/music/AlbumBrowserActivity.java, apps/Music/src/com/android/music/ArtistAlbumBrowserActivity.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/AlbumBrowserActivity.java"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"848ecfe44fe1fa234c9219c74fc619fa782a0077f3eb9687c761354d1f7555e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060values[0] \u003E= 0 \u0026\u0026 values[1] \u003E= 0 \u0026\u0026 values[1] \u003C 60\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java, apps/DeskClock/src/com/android/datetimepicker/time/TimePickerDialog.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/time/TimePickerDialog.java"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1b22c92d14f6e5809a59de0c7642811c8148cf5407bfa849249b2c11024970"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060vgrav == Gravity.TOP || vgrav == Gravity.BOTTOM\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1391}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ada2946bfac05a1b2700b2f8683caa81cb6ce0d1f7d90fcfc01b3a66dd3752"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060virtualViewId != INVALID_ID \u0026\u0026 mManager.isEnabled()\u0060 appears character-identically in 2 files \u2014 apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java, apps/DeskClock/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/datetimepicker/accessibility/ExploreByTouchHelper.java"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cad8a752571cef4cf797bcab972c609543e7c7b87dc6144a992e4e8c87c8a94"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060x \u002B scrollX \u003E= child.getLeft() \u0026\u0026 x \u002B scrollX \u003C child.getRight() \u0026\u0026 y \u002B scrollY \u003E= child.getTop() \u0026\u0026 y \u002B scrollY \u003C child.getBottom() \u0026\u0026 canS\u2026\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":2454}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efd0c903e80979ea1495c98d9b3adc78b9764e5f2553bcd7643975171243bed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060xDiff \u003E mTouchSlop \u0026\u0026 xDiff * 0.5f \u003E yDiff\u0060 appears character-identically in 2 files \u2014 apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java, apps/DeskClock/src/com/android/deskclock/viewpager/ViewPager.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calculator/src/com/android/calculator2/viewpager/ViewPager.java"},"region":{"startLine":1845}}}],"partialFingerprints":{"codehealthFindingId/v1":"432754e7d38720f0fe0bb106069b0e511905d9dd35b7e2f2fa9bd02d0aafe5cb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/MediaPlaybackService.java"},"region":{"startLine":1586}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d2be9579c2569d703e20733fb1a0235f2e7a772cdcad0924c63023581754ed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Music/src/com/android/music/TrackBrowserActivity.java"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda3c259df051d952a7654dfe103dc059fc370ea4dd0fd7b950f97a38a1271e6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"apps/Calendar/src/com/android/calendar/alerts/AlertService.java"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f15e9f697e61ffa02f52a026b6b384c7b4ba4c7b96426d43ab0bc01f965569f"}},{"ruleId":"X5","level":"note","message":{"text":"Java packages are not null-marked everywhere: 0/44 of this repository\u0027s Java package directories are under a non-null default: a \u0060package-info.java\u0060 declaring \u0060@NullMarked\u0060 (JSpecify) or \u0060@NonNullApi\u0060, \u0060@ParametersAreNonnullByDefault\u0060, \u0060@NonNullByDefault\u0060, \u0060@DefaultQualifier(NonNull.class)\u0060; a \u0060module-info.java\u0060 declaring \u0060@NullMarked\u0060; every type in it \u0060@NullMarked\u0060; or a build that runs NullAway with the package in \u0060AnnotatedPackages\u0060, or the Checker Framework\u0027s \u0060NullnessChecker\u0060. Elsewhere every reference admits null and no checker warns on the dereference that throws a \u0060NullPointerException\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"419201f6fc7ba243aef2cfb154378641588a8190e6269cea04a7b48c3d343bd5"}}],"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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"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":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-926","guid":"0d9b5579-5549-555a-8a97-f9cc14f3ad4a","name":"Improper Export of Android Application Components","shortDescription":{"text":"Improper Export of Android Application Components"},"helpUri":"https://cwe.mitre.org/data/definitions/926.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"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":17,"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."]}]}