From 369a105524702895739485d3932b45e7592cbdd3 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Fri, 8 Jul 2016 08:38:43 -0700 Subject: [PATCH] Issue #695 - Flagging with method level @Deprecated for improved IDE experience --- .../main/java/org/eclipse/jetty/server/LocalConnector.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/LocalConnector.java b/jetty-server/src/main/java/org/eclipse/jetty/server/LocalConnector.java index 113a9f3b71a..25b5fe923c5 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/LocalConnector.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/LocalConnector.java @@ -96,6 +96,7 @@ public class LocalConnector extends AbstractConnector * @throws Exception if the requests fail * @deprecated Use {@link #getResponse(String)} */ + @Deprecated public String getResponses(String requests) throws Exception { return getResponses(requests, 5, TimeUnit.SECONDS); @@ -115,6 +116,7 @@ public class LocalConnector extends AbstractConnector * @throws Exception if the requests fail * @deprecated Use {@link #getResponse(String, boolean, long, TimeUnit)} */ + @Deprecated public String getResponses(String requests,long idleFor,TimeUnit units) throws Exception { ByteBuffer result = getResponses(BufferUtil.toBuffer(requests,StandardCharsets.UTF_8),idleFor,units); @@ -133,6 +135,7 @@ public class LocalConnector extends AbstractConnector * @throws Exception if the requests fail * @deprecated Use {@link #getResponse(ByteBuffer)} */ + @Deprecated public ByteBuffer getResponses(ByteBuffer requestsBuffer) throws Exception { return getResponses(requestsBuffer, 5, TimeUnit.SECONDS); @@ -151,6 +154,7 @@ public class LocalConnector extends AbstractConnector * @throws Exception if the requests fail * @deprecated Use {@link #getResponse(ByteBuffer, boolean, long, TimeUnit)} */ + @Deprecated public ByteBuffer getResponses(ByteBuffer requestsBuffer,long idleFor,TimeUnit units) throws Exception { if (LOG.isDebugEnabled())