2023-05-03 11:06:20 +02:00
|
|
|
=== Exceptions
|
2020-06-30 12:48:07 +02:00
|
|
|
|
|
|
|
This rule doesn't raise an issue when the shift by zero is obviously for cosmetic reasons:
|
2020-06-30 14:49:38 +02:00
|
|
|
|
2020-06-30 12:48:07 +02:00
|
|
|
* When the value shifted is a literal.
|
|
|
|
* When there is a similar shift at the same position on line before or after. E.g.:
|
2020-06-30 14:49:38 +02:00
|
|
|
|
2020-06-30 12:48:07 +02:00
|
|
|
----
|
|
|
|
bytes[loc+0] = (byte)(value >> 8);
|
|
|
|
bytes[loc+1] = (byte)(value >> 0);
|
|
|
|
----
|