Don't generate utility methods in older versions
This commit is contained in:
parent
041a223a5d
commit
17116a2bd3
@ -113,7 +113,9 @@ public class GenDataBaseX extends ClassGenerator {
|
|||||||
ofMethod.addCode(String.join(", ", base.getData().keySet()));
|
ofMethod.addCode(String.join(", ", base.getData().keySet()));
|
||||||
ofMethod.addStatement(")");
|
ofMethod.addStatement(")");
|
||||||
ofMethod.returns(type);
|
ofMethod.returns(type);
|
||||||
classBuilder.addMethod(ofMethod.build());
|
if (version.isCurrent()) {
|
||||||
|
classBuilder.addMethod(ofMethod.build());
|
||||||
|
}
|
||||||
|
|
||||||
return new GeneratedClass(type.packageName(), classBuilder);
|
return new GeneratedClass(type.packageName(), classBuilder);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user