清理代码 (#4519)

This commit is contained in:
辞庐
2025-09-28 00:01:00 +08:00
committed by GitHub
parent 75789c774d
commit 7f4c5fc4a0
14 changed files with 33 additions and 44 deletions

View File

@@ -271,7 +271,7 @@ public class OAuth {
}
}
private static class DeviceTokenResponse extends ErrorResponse {
private final static class DeviceTokenResponse extends ErrorResponse {
@SerializedName("user_code")
public String userCode;
@@ -291,7 +291,7 @@ public class OAuth {
public int interval;
}
private static class TokenResponse extends ErrorResponse {
private final static class TokenResponse extends ErrorResponse {
@SerializedName("token_type")
public String tokenType;
@@ -329,7 +329,7 @@ public class OAuth {
* redirect URI used to obtain the authorization
* code.","correlation_id":"??????"}
*/
public static class AuthorizationResponse extends ErrorResponse {
public final static class AuthorizationResponse extends ErrorResponse {
@SerializedName("token_type")
public String tokenType;
@@ -352,7 +352,7 @@ public class OAuth {
public String foci;
}
private static class RefreshResponse extends ErrorResponse {
private final static class RefreshResponse extends ErrorResponse {
@SerializedName("expires_in")
int expiresIn;

View File

@@ -321,16 +321,16 @@ public class MicrosoftService {
public static final long ADD_FAMILY = 2148916238L;
}
public static class XBox400Exception extends AuthenticationException {
public final static class XBox400Exception extends AuthenticationException {
}
public static class NoMinecraftJavaEditionProfileException extends AuthenticationException {
public final static class NoMinecraftJavaEditionProfileException extends AuthenticationException {
}
public static class NoXuiException extends AuthenticationException {
public final static class NoXuiException extends AuthenticationException {
}
private static class XBoxLiveAuthenticationResponseDisplayClaims {
private final static class XBoxLiveAuthenticationResponseDisplayClaims {
List<Map<Object, Object>> xui;
}
@@ -356,7 +356,7 @@ public class MicrosoftService {
* XErr Candidates: 2148916233 = missing XBox account 2148916238 = child account
* not linked to a family
*/
private static class XBoxLiveAuthenticationResponse extends MicrosoftErrorResponse {
private final static class XBoxLiveAuthenticationResponse extends MicrosoftErrorResponse {
@SerializedName("IssueInstant")
String issueInstant;
@@ -370,7 +370,7 @@ public class MicrosoftService {
XBoxLiveAuthenticationResponseDisplayClaims displayClaims;
}
private static class MinecraftLoginWithXBoxResponse {
private final static class MinecraftLoginWithXBoxResponse {
@SerializedName("username")
String username;
@@ -387,14 +387,14 @@ public class MicrosoftService {
int expiresIn;
}
private static class MinecraftStoreResponseItem {
private final static class MinecraftStoreResponseItem {
@SerializedName("name")
String name;
@SerializedName("signature")
String signature;
}
private static class MinecraftStoreResponse extends MinecraftErrorResponse {
private final static class MinecraftStoreResponse extends MinecraftErrorResponse {
@SerializedName("items")
List<MinecraftStoreResponseItem> items;
@@ -405,7 +405,7 @@ public class MicrosoftService {
String keyId;
}
public static class MinecraftProfileResponseSkin implements Validation {
public final static class MinecraftProfileResponseSkin implements Validation {
public String id;
public String state;
public String url;

View File

@@ -246,11 +246,11 @@ public class YggdrasilService {
}
}
private static class TextureResponse {
private final static class TextureResponse {
public Map<TextureType, Texture> textures;
}
private static class AuthenticationResponse extends ErrorResponse {
private final static class AuthenticationResponse extends ErrorResponse {
public String accessToken;
public String clientToken;
public GameProfile selectedProfile;

View File

@@ -62,7 +62,7 @@ public final class CleanroomVersionList extends VersionList<CleanroomRemoteVersi
});
}
private static class ReleaseResult {
private final static class ReleaseResult {
String name;
String created_at;
}