From 9c99d70d43e8577ea54a5bb1582a9710b4d5dbcd Mon Sep 17 00:00:00 2001 From: Chivenh Date: Tue, 10 Dec 2024 17:44:45 +0800 Subject: [PATCH] Update Namespaces.java Replace `Strings` with `org.springframework.util.StringUtils`. Because of logging will be another one. --- .../java/me/ahoo/cosid/spring/boot/starter/Namespaces.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cosid-spring-boot-starter/src/main/java/me/ahoo/cosid/spring/boot/starter/Namespaces.java b/cosid-spring-boot-starter/src/main/java/me/ahoo/cosid/spring/boot/starter/Namespaces.java index aeb788dcf7..2d87c71dcd 100644 --- a/cosid-spring-boot-starter/src/main/java/me/ahoo/cosid/spring/boot/starter/Namespaces.java +++ b/cosid-spring-boot-starter/src/main/java/me/ahoo/cosid/spring/boot/starter/Namespaces.java @@ -13,7 +13,7 @@ package me.ahoo.cosid.spring.boot.starter; -import org.apache.logging.log4j.util.Strings; +import org.springframework.util.StringUtils; public final class Namespaces { private Namespaces() { @@ -21,7 +21,7 @@ private Namespaces() { public static String firstNotBlank(String... namespaces) { for (String namespace : namespaces) { - if (Strings.isNotBlank(namespace)) { + if (StringUtils.hasText(namespace)) { return namespace; } }