Fix exception

This commit is contained in:
Andrea Cavalli 2023-02-27 16:01:53 +01:00
parent 1df131c204
commit 1a1a696c53
2 changed files with 0 additions and 3 deletions

View File

@ -9,7 +9,6 @@ import com.squareup.javapoet.TypeSpec;
import com.squareup.javapoet.TypeVariableName;
import it.cavallium.data.generator.DataSerializer;
import it.cavallium.data.generator.plugin.ClassGenerator;
import java.io.IOException;
import java.util.stream.Stream;
import javax.lang.model.element.Modifier;
@ -35,7 +34,6 @@ public class GenIVersion extends ClassGenerator {
TypeVariableName.get("B")
))
.returns(ParameterizedTypeName.get(ClassName.get(DataSerializer.class), TypeVariableName.get("T")))
.addException(IOException.class)
.addParameter(ParameterSpec
.builder(ClassName.get(dataModel.getRootPackage(basePackageName), "BaseType"), "type")
.build());

View File

@ -211,7 +211,6 @@ public class GenVersion extends ClassGenerator {
methodBuilder.addModifiers(Modifier.PUBLIC);
methodBuilder.addAnnotation(Override.class);
methodBuilder.addException(ClassName.get(IOException.class));
var iBaseTypeClassName = ClassName.get(version.getPackage(basePackageName), "IBaseType");
methodBuilder.addTypeVariable(TypeVariableName.get("T", iBaseTypeClassName));