In class c-tor ParametrizedTypeImpl added safe copy of Types array instead of direct assigment.
Change-Id: I31c5f62faeca76238701465ca71f72e76f4d0701
Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
*/
package org.opendaylight.yangtools.binding.generator.util;
+import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;
public ParametrizedTypeImpl(Type rawType, Type[] actTypes) {
super(rawType.getPackageName(), rawType.getName());
this.rawType = rawType;
- this.actualTypes = actTypes;
+ this.actualTypes = Arrays.copyOf(actTypes, actTypes.length);
}
}