From ae89ce5a30e33c96337ce1e6e1fbaca68c2416d6 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Sat, 21 Jan 2023 23:37:28 +0100 Subject: [PATCH] Update --- .../cavallium/data/generator/plugin/classgen/GenDataSuperX.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data-generator-plugin/src/main/java/it/cavallium/data/generator/plugin/classgen/GenDataSuperX.java b/data-generator-plugin/src/main/java/it/cavallium/data/generator/plugin/classgen/GenDataSuperX.java index 63f1bfb..a03f3b4 100644 --- a/data-generator-plugin/src/main/java/it/cavallium/data/generator/plugin/classgen/GenDataSuperX.java +++ b/data-generator-plugin/src/main/java/it/cavallium/data/generator/plugin/classgen/GenDataSuperX.java @@ -41,7 +41,7 @@ public class GenDataSuperX extends ClassGenerator { classBuilder.addSuperinterface(iTypeClass); }); - dataModel.getExtendsInterfaces(typeSuper).forEach(superType -> { + dataModel.getExtendsInterfaces(typeSuper).distinct().forEach(superType -> { classBuilder.addSuperinterface(superType.getJTypeName(basePackageName)); });