Description
For example, in ITaskQuery the taskIds set is populated like so:
this.taskIds = wrapped.isSetTaskIds() ? ImmutableSet.copyOf(wrapped.getTaskIds()) : ImmutableSet.of();
And the isSet impl looks like so:
public boolean isSetTaskIds() { return taskIds != null; }
So isSet for collections will always return true. It seems the generated isSet methods should only return true for non-empty collections or else these isSet methods should be eliminated altogether.
Attachments
Issue Links
- is related to
-
AURORA-1651 I* entity objects are lossy for primitive isSet-ness
- Resolved
-
AURORA-1476 TaskConfig dedupe routine does not handle null fields properly
- Resolved