From abaf08e5956de0936d7442e463c82eef9af43471 Mon Sep 17 00:00:00 2001 From: Dmitrii Duzhinskii Date: Fri, 10 Nov 2023 12:06:13 +0300 Subject: [PATCH] Remove empty transformer from defaults It's unnecessary because empty message type processor handles this case --- .../org/sudu/protogen/config/RegisteredTransformer.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/generator/src/main/java/org/sudu/protogen/config/RegisteredTransformer.java b/generator/src/main/java/org/sudu/protogen/config/RegisteredTransformer.java index a3951c2..1845104 100644 --- a/generator/src/main/java/org/sudu/protogen/config/RegisteredTransformer.java +++ b/generator/src/main/java/org/sudu/protogen/config/RegisteredTransformer.java @@ -19,12 +19,6 @@ public record RegisteredTransformer( @NotNull public static List defaultTransformers() { - RegisteredTransformer emptyTransformer = new RegisteredTransformer( - "google.protobuf.Empty", - TypeName.VOID, - new TransformRule("$L"), - new TransformRule("") - ); RegisteredTransformer timestampTransformer = new RegisteredTransformer( "google.protobuf.Timestamp", ClassName.get(Instant.class), @@ -47,7 +41,6 @@ public static List defaultTransformers() { Stream.of( timestampTransformer, durationTransformer, - emptyTransformer, byteStringTransformer ), Stream.of(