rspec/rules/S3937/java/exceptions.adoc

10 lines
318 B
Plaintext

== Exceptions
No issue will be raised on binary numbers (starting with `0b` or `0B`). Binary number bits are often grouped corresponding to certain meanings, resulting in irregular bit group sizes.
[source,java]
----
int configValue1 = 0b00_000_10_1; // Compliant
int configValue2 = 0B00_000_10_1; // Compliant
----