Avoid duplicate application of class transformations

This commit is contained in:
Alexey Andreev 2023-07-31 13:21:33 +02:00
parent bf2cfa83f0
commit ef2e887d06

View File

@ -63,9 +63,6 @@ class DependencyClassSource implements ClassHolderSource {
throw new IllegalArgumentException("Class " + cls.getName() + " is already defined");
}
if (!transformers.isEmpty()) {
for (ClassHolderTransformer transformer : transformers) {
transformer.transformClass(cls, transformContext);
}
cls = ModelUtils.copyClass(cls);
}
generatedClasses.put(cls.getName(), cls);