Skip to content

Commit

Permalink
Merge pull request #352 from camunda-community-hub/dependabot/maven/v…
Browse files Browse the repository at this point in the history
…ersion.protobuf-4.26.1

chore(deps): bump version.protobuf from 3.25.3 to 4.26.1
  • Loading branch information
saig0 authored May 6, 2024
2 parents 60adb85 + 5b1e46e commit 9cf7c5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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
6 changes: 3 additions & 3 deletions src/main/java/io/zeebe/exporter/proto/RecordTransformer.java
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

0 comments on commit 9cf7c5b

Please sign in to comment.