Skip to content

Commit 3408bf2

Browse files
committed
fix deprecation
1 parent 6fd6c95 commit 3408bf2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/dev/mieser/tsa/signing/impl/cert/Pkcs12SigningKeystoreLoader.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import lombok.RequiredArgsConstructor;
1515

1616
import org.apache.commons.lang3.StringUtils;
17+
import org.apache.commons.lang3.Strings;
1718

1819
/**
1920
* {@link SigningKeystoreLoader} which supports PKCS#12 key stores.
@@ -72,7 +73,7 @@ private KeyStore loadKeystore() {
7273

7374
private InputStream openStream() throws IOException {
7475
if (path.toLowerCase().startsWith(CLASSPATH_MARKER)) {
75-
String pathWithoutClasspathPrefix = StringUtils.removeStartIgnoreCase(path, CLASSPATH_MARKER);
76+
String pathWithoutClasspathPrefix = Strings.CI.removeStart(path, CLASSPATH_MARKER);
7677
InputStream resourceStream = getClass().getClassLoader().getResourceAsStream(pathWithoutClasspathPrefix);
7778
return Objects.requireNonNull(resourceStream,
7879
String.format("Classpath resource '%s' not found.", pathWithoutClasspathPrefix));

0 commit comments

Comments
 (0)