This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-deploy-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 707ab61 [MNG-6829] Replace StringUtils#isEmpty(String) &
#isNotEmpty(String) (#40)
707ab61 is described below
commit 707ab61615606053eb816e7c96d1fc276a80a47f
Author: Tim te Beek <[email protected]>
AuthorDate: Fri Jun 9 13:33:58 2023 +0200
[MNG-6829] Replace StringUtils#isEmpty(String) & #isNotEmpty(String) (#40)
Last batch of is(Not)Empty for
https://issues.apache.org/jira/browse/MNG-6829
These are the smallest change sets, hence why I opened more at the same
time.
After this we can target the next most often used method from the
StringUtils classes.
Use this link to re-run the recipe:
https://public.moderne.io/recipes/org.openrewrite.java.migrate.apache.commons.lang.IsNotEmptyToJdk?organizationId=QXBhY2hlIE1hdmVu
Co-authored-by: Moderne <[email protected]>
---
src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java
b/src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java
index c6c875b..7de11c8 100644
--- a/src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java
+++ b/src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java
@@ -269,7 +269,7 @@ public class DeployFileMojo extends AbstractDeployMojo {
ArtifactType artifactType =
session.getRepositorySession().getArtifactTypeRegistry().get(packaging);
if (artifactType != null
- && StringUtils.isEmpty(classifier)
+ && (classifier == null || classifier.isEmpty())
&& !StringUtils.isEmpty(artifactType.getClassifier())) {
classifier = artifactType.getClassifier();
}