Dangerous Flag Constant Declaration
Dangerous Flag Constant Declaration
When defining multiple constants for use in flags, the recommended style is to use the form 1 << 2
, 1 << 3
, 1 << 4
and so on to ensure that the constants are unique and non-overlapping.
Issue id: ShiftFlags
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