mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-05 16:14:30 +00:00
chore[orm]: simplify the code
This commit is contained in:
1 parent
3978e6ef12
commit
b15768f805
2 files changed
+2
-2
No files matched your search
@@ -38,7 +38,7 @@ public class IntMapCodec<V> implements Codec<Map<Integer, V>> {
|
||||
if (value == null) {
|
||||
writer.writeNull();
|
||||
} else {
|
||||
valueCodec.encode(writer, entry.getValue(), encoderContext);
|
||||
valueCodec.encode(writer, value, encoderContext);
|
||||
}
|
||||
}
|
||||
writer.writeEndDocument();
|
||||
|
||||
@@ -38,7 +38,7 @@ public class LongMapCodec<V> implements Codec<Map<Long, V>> {
|
||||
if (value == null) {
|
||||
writer.writeNull();
|
||||
} else {
|
||||
valueCodec.encode(writer, entry.getValue(), encoderContext);
|
||||
valueCodec.encode(writer, value, encoderContext);
|
||||
}
|
||||
}
|
||||
writer.writeEndDocument();
|
||||
|
||||
Reference in new issue
Block a user