Details
-
Improvement
-
Status: Resolved
-
Medium
-
Resolution: Done
-
None
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.