Skip to content

Commit

Permalink
Merge pull request #25189 from OndroMih/ondromih-fix-intellij-plugin
Browse files Browse the repository at this point in the history
IntelliJ plugin fix: bring back the previous constructor to avoid a breaking change
  • Loading branch information
dmatej authored Oct 20, 2024
2 parents d7eadb0 + d16d825 commit feaa1c0
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,21 @@ public class RemoteResponseManager implements ResponseManager {
private final String response;
private Map<String, String> 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;
Expand Down

0 comments on commit feaa1c0

Please sign in to comment.