From ab6464b9ad6bea065f30483bc4c896e425b21760 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 20:27:28 +0000 Subject: [PATCH] style: format code with Google Java Format This commit fixes the style issues introduced in a64318a according to the output from Google Java Format. Details: https://github.com/Suwayomi/Suwayomi-VaadinUI/pull/155 --- .../tachideskvaadinui/TachideskVaadinUiApplication.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/online/hatsunemiku/tachideskvaadinui/TachideskVaadinUiApplication.java b/src/main/java/online/hatsunemiku/tachideskvaadinui/TachideskVaadinUiApplication.java index b43ef77..9b8358d 100644 --- a/src/main/java/online/hatsunemiku/tachideskvaadinui/TachideskVaadinUiApplication.java +++ b/src/main/java/online/hatsunemiku/tachideskvaadinui/TachideskVaadinUiApplication.java @@ -53,6 +53,7 @@ public static void main(String[] args) { /** * Runs the tasks that should be run when the application is already running. + * * @param headless Whether the application is running in headless mode */ private static void runAlreadyRunningTasks(boolean headless) { @@ -69,11 +70,15 @@ private static void runAlreadyRunningTasks(boolean headless) { /** * Checks if the application is already running. + * * @return {@code true} if the application is already running, {@code false} otherwise */ private static boolean isRunningAlready() { int port = 3901; - try (ServerSocket ignored = new ServerSocket(port)) { // skipcq: JAVA-S1011 - Not a security risk, because the socket is closed immediately. + try (ServerSocket ignored = + new ServerSocket( + port)) { // skipcq: JAVA-S1011 - Not a security risk, because the socket is closed + // immediately. return false; } catch (IOException e) { return true;