Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-642

Improve DataObjectBuilder augmentation handling

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 7.0.3
    • Binding codegen

    Description

      For copy builders we generate the following:

          public SrAlgorithmBuilder(SrAlgorithm base) {
              @SuppressWarnings("unchecked")
              Map<Class<? extends Augmentation<SrAlgorithm>>, Augmentation<SrAlgorithm>> aug = base.augmentations();
              if (!aug.isEmpty()) {
                  this.augmentation = new HashMap<>(aug);
              }
              this._algorithms = base.getAlgorithms();
          }
      
      

      Eclipse warns here that the @SuppressWarnings line is unnecessary and is very right about that. Remove this line.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            TadeyBilan Tadey Bilan
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: