fix: checkstyle

This commit is contained in:
huanghongxun 2021-08-22 21:32:54 +08:00
parent 3b8a0989de
commit 54fe311a3d
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ import java.util.logging.Level;
import static org.jackhuang.hmcl.util.Lang.mapOf;
import static org.jackhuang.hmcl.util.Lang.thread;
public class MicrosoftAuthenticationServer extends NanoHTTPD implements MicrosoftService.OAuthSession {
public final class MicrosoftAuthenticationServer extends NanoHTTPD implements MicrosoftService.OAuthSession {
private final int port;
private final CompletableFuture<String> future = new CompletableFuture<>();

View File

@ -107,7 +107,7 @@ public abstract class HttpRequest {
return string(payload instanceof String ? (String) payload : GSON.toJson(payload), "application/json");
}
public final HttpPostRequest form(Map<String, String> params) {
public HttpPostRequest form(Map<String, String> params) {
return string(NetworkUtils.withQuery("", params), "application/x-www-form-urlencoded");
}