-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash when using AVRO CharSequence encodings and nested objects (#…
…164) * Fix NativeDataObjectMapper * Fix PythonDataObjectMapper
- Loading branch information
1 parent
f18e3be
commit 81346eb
Showing
3 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
ksml-data/src/main/java/io/axual/ksml/data/util/MapUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package io.axual.ksml.data.util; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public class MapUtil { | ||
public static Map<String, Object> stringKeys(Map<?, ?> map) { | ||
final var result = new HashMap<String, Object>(); | ||
map.forEach((key, value) -> result.put(key != null ? key.toString() : null, value)); | ||
return result; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters