Skip to content

Commit 707ab61

Browse files
[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]>
1 parent c5481eb commit 707ab61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
269269
ArtifactType artifactType =
270270
session.getRepositorySession().getArtifactTypeRegistry().get(packaging);
271271
if (artifactType != null
272-
&& StringUtils.isEmpty(classifier)
272+
&& (classifier == null || classifier.isEmpty())
273273
&& !StringUtils.isEmpty(artifactType.getClassifier())) {
274274
classifier = artifactType.getClassifier();
275275
}

0 commit comments

Comments
 (0)