mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Revert "Don't allow XContentBuilder#writeValue(TimeValue)"
This reverts commit 7f70c00dad0574f35adea06c33ee2939ecd3e477.
This commit is contained in:
parent
1128776b3c
commit
bd93c7054c
@ -886,7 +886,6 @@ public final class XContentBuilder implements BytesStream, Releasable {
|
||||
generator.writeNull();
|
||||
return;
|
||||
}
|
||||
assert false == value instanceof TimeValue : "Use timeValueField instead";
|
||||
Class<?> type = value.getClass();
|
||||
Writer writer = MAP.get(type);
|
||||
if (writer != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user