Skip to content

Commit

Permalink
replace another StringUtils call (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo authored Nov 20, 2024
1 parent f14438f commit ec0b15c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import java.util.Map;
import java.util.Set;

import org.apache.commons.lang3.StringUtils;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
import org.apache.maven.plugin.AbstractMojo;
Expand Down Expand Up @@ -512,7 +511,7 @@ private void writeDependencyXML(Set<Artifact> artifacts) {
writer.startElement("version");
writer.writeText(artifact.getBaseVersion());
String classifier = artifact.getClassifier();
if (StringUtils.isNotBlank(classifier)) {
if (classifier != null && !classifier.trim().isEmpty()) {
writer.startElement("classifier");
writer.writeText(artifact.getClassifier());
writer.endElement();
Expand Down

0 comments on commit ec0b15c

Please sign in to comment.