From 67b92579eb23043cf7b86aadd3b6ad9904bbd06f Mon Sep 17 00:00:00 2001 From: Julius Date: Wed, 4 Oct 2023 21:24:46 +0900 Subject: [PATCH] reformat code --- .../java/com/algoverse/api/pathfinding/PathFindingService.java | 3 ++- .../main/java/com/algoverse/api/sorting/SortingService.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/com/algoverse/api/pathfinding/PathFindingService.java b/api/src/main/java/com/algoverse/api/pathfinding/PathFindingService.java index e0b7132..f73afee 100644 --- a/api/src/main/java/com/algoverse/api/pathfinding/PathFindingService.java +++ b/api/src/main/java/com/algoverse/api/pathfinding/PathFindingService.java @@ -19,8 +19,8 @@ @Service public class PathFindingService { - private PathFindingStrategy pathFindingStrategy; private static final Random RAND = new Random(); + private PathFindingStrategy pathFindingStrategy; /** * This method sets the strategy for path finding. @@ -71,6 +71,7 @@ public ImmutableList randomNodeGenerator(Coordinates boardSize) { } // TODO: implement a random maze generator + @SuppressWarnings("unused") public BoardInformation randomMazeGenerator(Coordinates boardSize) { return null; } diff --git a/api/src/main/java/com/algoverse/api/sorting/SortingService.java b/api/src/main/java/com/algoverse/api/sorting/SortingService.java index d63b0ff..2d63d94 100644 --- a/api/src/main/java/com/algoverse/api/sorting/SortingService.java +++ b/api/src/main/java/com/algoverse/api/sorting/SortingService.java @@ -15,8 +15,8 @@ @Service public class SortingService { - private SortingStrategy sortingStrategy; private static final Random RAND = new Random(); + private SortingStrategy sortingStrategy; public void setSortingStrategy(SortingStrategy sortingStrategy) { this.sortingStrategy = sortingStrategy;