Skip to content

Commit

Permalink
Fix javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Nov 30, 2023
1 parent 97ffe69 commit 32b37d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ public class SWSessionService {
private final SWProxy proxyData;
private final Gson gson = new Gson();

/**
* Creates a new SessionService instance.
*
* @param authType Authentication type to use.
*/
public SWSessionService(AuthType authType, SWProxy proxyData) {
this.JOIN_ENDPOINT = switch (authType) {
case MICROSOFT_JAVA -> MOJANG_JOIN_URI;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ public static void addProxy(ChannelPipeline pipeline, SWProxy proxy) {
}
}
case SOCKS4 -> pipeline.addFirst("proxy", new Socks4ProxyHandler(address, proxy.username()));
case SOCKS5 -> pipeline.addFirst("proxy", new Socks5ProxyHandler(address, proxy.username(), proxy.password()));
case SOCKS5 ->
pipeline.addFirst("proxy", new Socks5ProxyHandler(address, proxy.username(), proxy.password()));
default -> throw new UnsupportedOperationException("Unsupported proxy type: " + proxy.type());
}
}
Expand Down

0 comments on commit 32b37d3

Please sign in to comment.