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

Improve DataObjectBuilder augmentation handling

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 7.0.3
    • None
    • Binding codegen

      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.

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

              Created:
              Updated:
              Resolved: