From 652381d8e11d31038b4309ff178ecdd3dccdf612 Mon Sep 17 00:00:00 2001 From: Marcus Fihlon Date: Fri, 19 Apr 2024 11:40:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Fix=20linter=20warnings=20#97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcus Fihlon --- src/test/java/swiss/fihlon/apus/agenda/LanguageTest.java | 2 +- src/test/java/swiss/fihlon/apus/agenda/RoomStyleTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/swiss/fihlon/apus/agenda/LanguageTest.java b/src/test/java/swiss/fihlon/apus/agenda/LanguageTest.java index 614c0a4..98030b3 100644 --- a/src/test/java/swiss/fihlon/apus/agenda/LanguageTest.java +++ b/src/test/java/swiss/fihlon/apus/agenda/LanguageTest.java @@ -39,7 +39,7 @@ void getLanguageCode() { void getFlagEmoji() { for (final Language language : Language.values()) { assertNotNull(language.getFlagEmoji()); - assertFalse(language.getFlagEmoji().trim().isEmpty()); + assertFalse(language.getFlagEmoji().isBlank()); } } diff --git a/src/test/java/swiss/fihlon/apus/agenda/RoomStyleTest.java b/src/test/java/swiss/fihlon/apus/agenda/RoomStyleTest.java index 8d31e3f..f76bb0a 100644 --- a/src/test/java/swiss/fihlon/apus/agenda/RoomStyleTest.java +++ b/src/test/java/swiss/fihlon/apus/agenda/RoomStyleTest.java @@ -27,7 +27,7 @@ class RoomStyleTest { void getCssStyle() { for (final RoomStyle roomStyle : RoomStyle.values()) { assertNotNull(roomStyle.getCssStyle()); - assertEquals(roomStyle.equals(RoomStyle.NONE), roomStyle.getCssStyle().trim().isEmpty()); + assertEquals(roomStyle.equals(RoomStyle.NONE), roomStyle.getCssStyle().isBlank()); } } @@ -35,7 +35,7 @@ void getCssStyle() { void getTranslationKey() { for (final RoomStyle roomStyle : RoomStyle.values()) { assertNotNull(roomStyle.getTranslationKey()); - assertEquals(roomStyle.equals(RoomStyle.NONE), roomStyle.getTranslationKey().trim().isEmpty()); + assertEquals(roomStyle.equals(RoomStyle.NONE), roomStyle.getTranslationKey().isBlank()); } }