This commit is contained in:
Andrea Cavalli 2023-01-21 22:54:38 +01:00
parent 539a9d7fd5
commit 8f8242c0f3

View File

@ -174,7 +174,7 @@ public class GenCurrentVersion extends ClassGenerator {
private void generateGetClass(ComputedVersion version, Builder classBuilder) {
var methodBuilder = MethodSpec.methodBuilder("getClass");
methodBuilder.addModifiers(Modifier.PUBLIC);
methodBuilder.addModifiers(Modifier.PUBLIC, Modifier.STATIC);
var baseTypeClassName = ClassName.get(dataModel.getRootPackage(basePackageName), "BaseType");
methodBuilder.addParameter(baseTypeClassName, "type");