Skip to content

Commit 0c08b9c

Browse files
sam0r040timonback
andcommitted
fix(core): remove usage of new Strings.class from org.apache.commons:commons-lang3:3.18 and use deprecated method from 3.17 again
Co-authored-by: Timon Back <timonback@users.noreply.github.com>
1 parent 6233fc0 commit 0c08b9c

File tree

1 file changed

+1
-2
lines changed
  • springwolf-core/src/main/java/io/github/springwolf/core/asyncapi/scanners/common/utils

1 file changed

+1
-2
lines changed

springwolf-core/src/main/java/io/github/springwolf/core/asyncapi/scanners/common/utils/TextUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
package io.github.springwolf.core.asyncapi.scanners.common.utils;
33

44
import org.apache.commons.lang3.StringUtils;
5-
import org.apache.commons.lang3.Strings;
65

76
import java.util.Arrays;
87

@@ -37,7 +36,7 @@ public static String trimIndent(String text) {
3736
.reduce((a, b) -> a + newLine + b)
3837
.orElse(StringUtils.EMPTY);
3938

40-
if (Strings.CS.endsWith(text, "\n")) {
39+
if (StringUtils.endsWith(text, "\n")) {
4140
result = result.concat(newLine);
4241
}
4342

0 commit comments

Comments
 (0)