From 03a0a0aebbacb808246827f5d02281fc340b5b71 Mon Sep 17 00:00:00 2001 From: Jim Ferenczi Date: Mon, 5 Dec 2016 15:31:53 +0100 Subject: [PATCH] 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. --- .../java/org/elasticsearch/action/get/GetResponse.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/action/get/GetResponse.java b/core/src/main/java/org/elasticsearch/action/get/GetResponse.java index ece7d06e0f3..1b347a2d05d 100644 --- a/core/src/main/java/org/elasticsearch/action/get/GetResponse.java +++ b/core/src/main/java/org/elasticsearch/action/get/GetResponse.java @@ -134,18 +134,10 @@ public class GetResponse extends ActionResponse implements Iterable, T return getResult.getSource(); } - /** - * @deprecated Use {@link GetResponse#getSource()} instead - */ - @Deprecated public Map getFields() { return getResult.getFields(); } - /** - * @deprecated Use {@link GetResponse#getSource()} instead - */ - @Deprecated public GetField getField(String name) { return getResult.field(name); }