I’m guessing that rule java:S2047 (The names of methods with boolean return values should start with “is” or “has”) only refers to getters that return boolean, and not those that return Boolean (boxed boolean), correct? If this is the case, you should make this more explicit by adding an example that returns Boolean, and comment that it is Compliant.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Make java:S2047 customizable | 1 | 714 | April 5, 2021 | |
| Java rule - boolean variables should be prefixed with is or has | 3 | 5698 | September 4, 2023 | |
| Why is java:S2447 specific to Boolean? | 4 | 1177 | May 12, 2022 | |
| FP on java:S5411 (Boxed "Boolean" should be avoided in boolean expressions) | 3 | 3295 | April 28, 2020 | |
| Recommend new name for java:S5411 | 2 | 1022 | December 21, 2022 |