Re: Using a ListBox for a nullable value

2024-08-12 Thread 'Jesse Glick' via Jenkins Developers
On Sun, Aug 11, 2024 at 5:11 PM Tim Van Holder wrote: > this is hitting a SpotBugs check, claiming that the value in that add() > call must not be null. > Names and values in list boxes are expected to non-null strings. If your property’s GUI is a select, its type should be `String` not `Boolean

Using a ListBox for a nullable value

2024-08-11 Thread Tim Van Holder
Hi, I have a property that is a Boolean, where null is a distinct and important value ("inherit from parent context"). I currently have code like this @NonNull @POST public ListBoxModel doFillFooItems(@CheckForNull @AncestorInPath Item item) { if (item != null) { item.c