Revert "Don't allow XContentBuilder#writeValue(TimeValue)"

This reverts commit 7f70c00dad.
This commit is contained in:
Nik Everett 2016-08-31 14:45:03 -04:00
parent 1128776b3c
commit bd93c7054c
1 changed files with 0 additions and 1 deletions

View File

@ -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) {