Fix exception
This commit is contained in:
parent
1df131c204
commit
1a1a696c53
@ -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());
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user