From a043a7f524a0c79a5cd403b235d3b8b2fd286a57 Mon Sep 17 00:00:00 2001 From: amvanbaren Date: Fri, 14 Feb 2025 12:31:55 +0200 Subject: [PATCH] Java modifier order (Java) Reorder the modifiers to comply with the Java Language Specification. --- .../java/org/eclipse/openvsx/ExtensionValidator.java | 12 ++++++------ .../main/java/org/eclipse/openvsx/RegistryAPI.java | 8 ++++---- .../src/main/java/org/eclipse/openvsx/UserAPI.java | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/server/src/main/java/org/eclipse/openvsx/ExtensionValidator.java b/server/src/main/java/org/eclipse/openvsx/ExtensionValidator.java index acd467818..f287fb81d 100644 --- a/server/src/main/java/org/eclipse/openvsx/ExtensionValidator.java +++ b/server/src/main/java/org/eclipse/openvsx/ExtensionValidator.java @@ -29,15 +29,15 @@ @Component public class ExtensionValidator { - private final static List MARKDOWN_VALUES = List.of("github", "standard"); + private static final List MARKDOWN_VALUES = List.of("github", "standard"); - private final static List GALLERY_THEME_VALUES = List.of("dark", "light"); + private static final List GALLERY_THEME_VALUES = List.of("dark", "light"); - private final static List QNA_VALUES = List.of("marketplace", "false"); + private static final List QNA_VALUES = List.of("marketplace", "false"); - private final static int DEFAULT_STRING_SIZE = 255; - private final static int DESCRIPTION_SIZE = 2048; - private final static int GALLERY_COLOR_SIZE = 16; + private static final int DEFAULT_STRING_SIZE = 255; + private static final int DESCRIPTION_SIZE = 2048; + private static final int GALLERY_COLOR_SIZE = 16; private final Pattern namePattern = Pattern.compile("[\\w\\-\\+\\$~]+"); diff --git a/server/src/main/java/org/eclipse/openvsx/RegistryAPI.java b/server/src/main/java/org/eclipse/openvsx/RegistryAPI.java index 74b835cad..10d0cab89 100644 --- a/server/src/main/java/org/eclipse/openvsx/RegistryAPI.java +++ b/server/src/main/java/org/eclipse/openvsx/RegistryAPI.java @@ -43,10 +43,10 @@ @RestController public class RegistryAPI { - private final static int REVIEW_TITLE_SIZE = 255; - private final static int REVIEW_COMMENT_SIZE = 2048; - private final static String VERSION_PATH_PARAM_REGEX = "(?:" + SemanticVersion.VERSION_PATH_PARAM_REGEX + ")|latest|pre-release"; - private final static String NO_JSON_INPUT = "No JSON input."; + private static final int REVIEW_TITLE_SIZE = 255; + private static final int REVIEW_COMMENT_SIZE = 2048; + private static final String VERSION_PATH_PARAM_REGEX = "(?:" + SemanticVersion.VERSION_PATH_PARAM_REGEX + ")|latest|pre-release"; + private static final String NO_JSON_INPUT = "No JSON input."; protected final Logger logger = LoggerFactory.getLogger(RegistryAPI.class); diff --git a/server/src/main/java/org/eclipse/openvsx/UserAPI.java b/server/src/main/java/org/eclipse/openvsx/UserAPI.java index dc4573350..c5a47c4e3 100644 --- a/server/src/main/java/org/eclipse/openvsx/UserAPI.java +++ b/server/src/main/java/org/eclipse/openvsx/UserAPI.java @@ -45,7 +45,7 @@ @RestController public class UserAPI { - private final static int TOKEN_DESCRIPTION_SIZE = 255; + private static final int TOKEN_DESCRIPTION_SIZE = 255; protected final Logger logger = LoggerFactory.getLogger(UserAPI.class);