From b5b19087a8ecbab33432653cb2949d871d363f9e Mon Sep 17 00:00:00 2001 From: Okke Harsta Date: Thu, 5 Dec 2024 14:50:16 +0100 Subject: [PATCH] Formatter --- server/src/main/java/access/api/EnvironmentController.java | 1 - .../java/db/mysql/migration/V11_0__migrate_applications.java | 2 +- server/src/test/java/access/api/InvitationControllerTest.java | 2 +- .../src/test/java/access/cron/RoleExpirationNotifierTest.java | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/server/src/main/java/access/api/EnvironmentController.java b/server/src/main/java/access/api/EnvironmentController.java index 287ef7c9..415fbf8e 100644 --- a/server/src/main/java/access/api/EnvironmentController.java +++ b/server/src/main/java/access/api/EnvironmentController.java @@ -10,7 +10,6 @@ @RestController public class EnvironmentController { - private final String disclaimerBackgroundColor; private final String disclaimerContent; diff --git a/server/src/main/java/db/mysql/migration/V11_0__migrate_applications.java b/server/src/main/java/db/mysql/migration/V11_0__migrate_applications.java index 9495d8d1..099612b3 100644 --- a/server/src/main/java/db/mysql/migration/V11_0__migrate_applications.java +++ b/server/src/main/java/db/mysql/migration/V11_0__migrate_applications.java @@ -27,7 +27,7 @@ public void migrate(Context context) { Set applications = Set.of(new Application(manageId, EntityType.valueOf(manageType))); String jsonNode; try { - jsonNode = ObjectMapperHolder.objectMapper.writeValueAsString(applications); + jsonNode = ObjectMapperHolder.objectMapper.writeValueAsString(applications); } catch (JsonProcessingException e) { throw new RuntimeException(e); } diff --git a/server/src/test/java/access/api/InvitationControllerTest.java b/server/src/test/java/access/api/InvitationControllerTest.java index 2adaba5c..e9943deb 100644 --- a/server/src/test/java/access/api/InvitationControllerTest.java +++ b/server/src/test/java/access/api/InvitationControllerTest.java @@ -412,7 +412,7 @@ void acceptInvitationUserTimeOut() throws Exception { super.stubForManageProvisioning(List.of("5")); AcceptInvitation acceptInvitation = new AcceptInvitation(hash, invitation.getId()); - Map results = given() + Map results = given() .when() .filter(accessCookieFilter.cookieFilter()) .accept(ContentType.JSON) diff --git a/server/src/test/java/access/cron/RoleExpirationNotifierTest.java b/server/src/test/java/access/cron/RoleExpirationNotifierTest.java index 46d4a35d..95fb6376 100644 --- a/server/src/test/java/access/cron/RoleExpirationNotifierTest.java +++ b/server/src/test/java/access/cron/RoleExpirationNotifierTest.java @@ -34,7 +34,7 @@ void sweep() { String htmlContent = messageParser.getHtmlContent(); //Due to html formatting we can't be sure of the line breaks Stream.of("Your Inviter role Mail at the application Calendar EN will expire in 5 days".split(" ")) - .forEach(s -> assertTrue(htmlContent.contains(s))); + .forEach(s -> assertTrue(htmlContent.contains(s))); userRole = userRoleRepository.findByRoleName("Mail").get(0); assertEquals(1, userRole.getExpiryNotifications());