Skip to content

Commit

Permalink
style: format code with Google Java Format
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in a64318a according to the output
from Google Java Format.

Details: #155
  • Loading branch information
deepsource-autofix[bot] authored Dec 6, 2024
1 parent a64318a commit ab6464b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down

0 comments on commit ab6464b

Please sign in to comment.