Skip to content

Commit

Permalink
Merge pull request #1113 from amvanbaren/java-reorder-modifiers
Browse files Browse the repository at this point in the history
Java modifier order
  • Loading branch information
amvanbaren authored Feb 14, 2025
2 parents ec56679 + a043a7f commit 74a19a3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions server/src/main/java/org/eclipse/openvsx/ExtensionValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
@Component
public class ExtensionValidator {

private final static List<String> MARKDOWN_VALUES = List.of("github", "standard");
private static final List<String> MARKDOWN_VALUES = List.of("github", "standard");

private final static List<String> GALLERY_THEME_VALUES = List.of("dark", "light");
private static final List<String> GALLERY_THEME_VALUES = List.of("dark", "light");

private final static List<String> QNA_VALUES = List.of("marketplace", "false");
private static final List<String> 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\\-\\+\\$~]+");

Expand Down
8 changes: 4 additions & 4 deletions server/src/main/java/org/eclipse/openvsx/RegistryAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion server/src/main/java/org/eclipse/openvsx/UserAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 74a19a3

Please sign in to comment.