From d16d825a0b24c6762e30bfff93bee3a44ebc0711 Mon Sep 17 00:00:00 2001 From: Ondro Mihalyi Date: Sun, 20 Oct 2024 15:23:21 +0200 Subject: [PATCH] IntelliJ plugin fix: bring back the previous constructor to avoid braking change Bring back the previous constructor in RemoteResponseManager class, without the charset argument. Fixes #25188. --- .../admin/remote/RemoteResponseManager.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nucleus/admin/util/src/main/java/com/sun/enterprise/admin/remote/RemoteResponseManager.java b/nucleus/admin/util/src/main/java/com/sun/enterprise/admin/remote/RemoteResponseManager.java index 87e4e0f9b6b..bd7c397a497 100644 --- a/nucleus/admin/util/src/main/java/com/sun/enterprise/admin/remote/RemoteResponseManager.java +++ b/nucleus/admin/util/src/main/java/com/sun/enterprise/admin/remote/RemoteResponseManager.java @@ -52,6 +52,21 @@ public class RemoteResponseManager implements ResponseManager { private final String response; private Map mainAtts = Collections.emptyMap(); + /** + * Creates the object with the default charset by delegating to the {@link #RemoteResponseManager(java.io.InputStream, java.nio.charset.Charset, int, java.util.logging.Logger)} constructor. + * @param in + * @param code + * @param logger + * @throws RemoteException + * @throws IOException + * @deprecated It is encouraged to use the {@link #RemoteResponseManager(java.io.InputStream, java.nio.charset.Charset, int, java.util.logging.Logger)} constructor with explicit charset. This constructor is kept only for backwards compatibility with the IntelliJ Idea plugin. + */ + @Deprecated(since = "7.0.18") + public RemoteResponseManager(InputStream in, int code, Logger logger) + throws RemoteException, IOException { + this(in, Charset.defaultCharset(), code, logger); + } + public RemoteResponseManager(InputStream in, Charset charset, int code, Logger logger) throws RemoteException, IOException { this.code = code;