Inspectopedia Help

Unnecessary Divider Copy

Unnecessary Divider Copy

Older versions of the RecyclerView library did not include a divider decorator, but one was provided as a sample in the support demos. This divider class has been widely copy/pasted into various projects.

In recent versions of the support library, the divider decorator is now included, so you can replace custom copies with the "built-in" version,

Issue id: DuplicateDivider

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3


Android, 2022.3.1 Beta 2

Last modified: 13 July 2023