In general, you want to use Boolean
instead of boolean
when your API allows the "unknown" state, for which you could allow passing null
.
In this case, however, there is no "unknown" state, because the corresponding getter is declared with the primitive boolean
:
public boolean is24HourView ()
I would definitely report this as a bug.