This is an automated email from the ASF dual-hosted git repository.
sseifert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-maven-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new eef3df6 cosmetic: eliminate deprecation warning
eef3df6 is described below
commit eef3df6b67ce37786818c9b681eeeaad8a82dd92
Author: Stefan Seifert <[email protected]>
AuthorDate: Tue Mar 4 16:24:22 2025 +0100
cosmetic: eliminate deprecation warning
---
.../java/org/apache/sling/maven/bundlesupport/BundlePrerequisite.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/src/main/java/org/apache/sling/maven/bundlesupport/BundlePrerequisite.java
b/src/main/java/org/apache/sling/maven/bundlesupport/BundlePrerequisite.java
index d6707b9..8308df0 100644
--- a/src/main/java/org/apache/sling/maven/bundlesupport/BundlePrerequisite.java
+++ b/src/main/java/org/apache/sling/maven/bundlesupport/BundlePrerequisite.java
@@ -20,8 +20,8 @@ package org.apache.sling.maven.bundlesupport;
import java.util.ArrayList;
import java.util.List;
+import java.util.Objects;
-import org.apache.commons.lang3.StringUtils;
import org.osgi.framework.Version;
/**
@@ -102,7 +102,7 @@ public final class BundlePrerequisite {
}
public String getSymbolicName() {
- return StringUtils.defaultString(symbolicName, artifactId);
+ return Objects.toString(symbolicName, artifactId);
}
public void setSymbolicName(String symbolicName) {