Skip to content

Commit

Permalink
Remove empty transformer from defaults
Browse files Browse the repository at this point in the history
It's unnecessary because empty message type processor handles this case
  • Loading branch information
Duzhinsky committed Nov 10, 2023
1 parent c38368d commit abaf08e
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ public record RegisteredTransformer(

@NotNull
public static List<RegisteredTransformer> 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),
Expand All @@ -47,7 +41,6 @@ public static List<RegisteredTransformer> defaultTransformers() {
Stream.of(
timestampTransformer,
durationTransformer,
emptyTransformer,
byteStringTransformer
),
Stream.of(
Expand Down

0 comments on commit abaf08e

Please sign in to comment.