Uploaded image for project: 'Aurora'
  1. Aurora
  2. AURORA-1650

I* entity objects have incorrect isSet* methods for collection types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • Build, Scheduler
    • None

    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

          Activity

            People

              jsirois John Sirois
              jsirois John Sirois
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: