Undeprecate GetResponse#getFields and GetResponse#getField

These functions should not have been deprecated as they can be used to retrieve stored and doc-value field.
This commit is contained in:
Jim Ferenczi 2016-12-05 15:31:53 +01:00
parent 6bddd426cc
commit 03a0a0aebb
1 changed files with 0 additions and 8 deletions

View File

@ -134,18 +134,10 @@ public class GetResponse extends ActionResponse implements Iterable<GetField>, T
return getResult.getSource(); return getResult.getSource();
} }
/**
* @deprecated Use {@link GetResponse#getSource()} instead
*/
@Deprecated
public Map<String, GetField> getFields() { public Map<String, GetField> getFields() {
return getResult.getFields(); return getResult.getFields();
} }
/**
* @deprecated Use {@link GetResponse#getSource()} instead
*/
@Deprecated
public GetField getField(String name) { public GetField getField(String name) {
return getResult.field(name); return getResult.field(name);
} }