Skip to content

Commit 99af1df

Browse files
author
yevhenii-nadtochii
committed
Expose typeSystem in JavaValidationRenderer
1 parent b0c9d5e commit 99af1df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

java/src/main/kotlin/io/spine/validation/java/JavaValidationRenderer.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import io.spine.protodata.java.lines
3535
import io.spine.protodata.java.render.JavaRenderer
3636
import io.spine.protodata.render.SourceFile
3737
import io.spine.protodata.render.SourceFileSet
38+
import io.spine.protodata.type.TypeSystem
3839
import io.spine.tools.code.Java
3940
import io.spine.tools.java.codeBlock
4041
import io.spine.validate.NonValidated
@@ -74,6 +75,12 @@ import java.util.*
7475
*/
7576
public class JavaValidationRenderer : JavaRenderer() {
7677

78+
/**
79+
* Exposes [typeSystem] property, so that [ValidationConstraintsCode] could use it.
80+
*/
81+
public override val typeSystem: TypeSystem
82+
get() = super.typeSystem
83+
7784
override fun render(sources: SourceFileSet) {
7885
// We receive `grpc` and `kotlin` output sources roots here as well.
7986
// As for now, we modify only `java` sources.

0 commit comments

Comments
 (0)