Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump version.protobuf from 3.25.3 to 4.26.1 #352

Merged
merged 2 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
<!-- project dependencies -->
<version.zeebe>8.5.0</version.zeebe>

<version.protobuf>3.25.3</version.protobuf>
<version.protoc>3.9.1</version.protoc>
<version.protobuf>4.26.1</version.protobuf>
<version.protoc>4.26.1</version.protoc>
<version.slf4j>1.7.25</version.slf4j>

<version.assertj>3.25.3</version.assertj>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
*/
public final class RecordTransformer {

private static final EnumMap<ValueType, Function<Record, GeneratedMessageV3>> TRANSFORMERS =
private static final EnumMap<ValueType, Function<Record, GeneratedMessage>> TRANSFORMERS =
new EnumMap<>(ValueType.class);

private static final EnumMap<ValueType, RecordMetadata.ValueType> VALUE_TYPE_MAPPING =
Expand Down Expand Up @@ -150,9 +150,9 @@ public final class RecordTransformer {

private RecordTransformer() {}

public static GeneratedMessageV3 toProtobufMessage(Record record) {
public static GeneratedMessage toProtobufMessage(Record record) {
final ValueType valueType = record.getValueType();
final Function<Record, GeneratedMessageV3> toRecordFunc = TRANSFORMERS.get(valueType);
final Function<Record, GeneratedMessage> toRecordFunc = TRANSFORMERS.get(valueType);
return toRecordFunc != null ? toRecordFunc.apply(record) : Empty.getDefaultInstance();
}

Expand Down
Loading