[MAGNOLIA-5032] ConfiguredAreaDefinition bean violates JavaBean Specification Created: 15/May/13  Updated: 16/May/13  Resolved: 15/May/13

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 4.5
Fix Version/s: 4.5.9

Type: Bug Priority: Neutral
Reporter: Jan Haderka Assignee: Milan Divilek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Specification clearly states that isXXX() accessor is allowed only for boolean primitive, but is not permissible for Boolean object. The reason for that shows nicely for example in MAGNOLIA-5028. Seeing isXXX() developers tend to assume that method would always return just true or false value, while in fact it can return also null.
We need to deprecate all such Boolean isXXX() methods and replace them with Boolean getXXX and also fix their usage in our code as there might be other similar bugs like in MAGNOLIA-5028.


Generated at Mon Feb 12 04:01:20 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.