Fix string representer
This commit is contained in:
parent
8d66542067
commit
cd1c6eb816
@ -116,7 +116,7 @@ public class GenDataBaseX extends ClassGenerator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final String stringRepresenter = base.getStringRepresenter();
|
final String stringRepresenter = base.getStringRepresenter();
|
||||||
if (stringRepresenter != null && !stringRepresenter.isBlank()) {
|
if (version.isCurrent() && stringRepresenter != null && !stringRepresenter.isBlank()) {
|
||||||
var toStringMethod = MethodSpec.methodBuilder("toString");
|
var toStringMethod = MethodSpec.methodBuilder("toString");
|
||||||
toStringMethod.addModifiers(Modifier.PUBLIC);
|
toStringMethod.addModifiers(Modifier.PUBLIC);
|
||||||
toStringMethod.addAnnotation(Override.class);
|
toStringMethod.addAnnotation(Override.class);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user