This PR makes the Validation library make Builder classes implement ValidatingBuilder instead of McJava.
Currently, McJava does that via the io.spine.tools.mc.java.protoc.message.BuilderGen and associated classes which work in the protoc plugin of McJava.
This PR introduces ImplementValidatingBuilder renderer which makes Builder classes implement ValidatingBuilder. Adding the code is done only if the Builder class does not implement the interface already. Such a case is possible when older McJava is used together with new Validation. Once McJava migrates to newer Validation, the check would be always false.
This PR makes the Validation library make
Builder
classes implementValidatingBuilder
instead of McJava.Currently, McJava does that via the
io.spine.tools.mc.java.protoc.message.BuilderGen
and associated classes which work in theprotoc
plugin of McJava.This PR introduces
ImplementValidatingBuilder
renderer which makesBuilder
classes implementValidatingBuilder
. Adding the code is done only if theBuilder
class does not implement the interface already. Such a case is possible when older McJava is used together with new Validation. Once McJava migrates to newer Validation, the check would be alwaysfalse
.