Likely cut & paste mistakes
Likely cut & paste mistakes
This lint check looks for cases where you have cut & pasted calls to findViewById
but have forgotten to update the R.id field. It's possible that your code is simply (redundantly) looking up the field repeatedly, but lint cannot distinguish that from a case where you for example want to initialize fields prev
and next
and you cut & pasted findViewById(R.id.prev)
and forgot to update the second initialization to R.id.next
.
Issue id: CutPasteId
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3 |
Plugin: | Android, 2022.3.1 Beta 2 |
Last modified: 13 July 2023