From 9ebda630b1202b2261487a3caba3c131123ec1c6 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Mon, 22 May 2023 13:34:20 +0200 Subject: [PATCH] [MNG-6829] Replace StringUtils#isEmpty(String) and #isNotEmpty(String) (#121) Continuation of https://issues.apache.org/jira/browse/MNG-6829 Review requested of @elharo 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 --- .../plugins/checkstyle/AbstractCheckstyleReport.java | 3 +-- .../plugins/checkstyle/CheckstyleViolationCheckMojo.java | 3 +-- .../checkstyle/exec/DefaultCheckstyleExecutor.java | 8 ++++---- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/checkstyle/AbstractCheckstyleReport.java b/src/main/java/org/apache/maven/plugins/checkstyle/AbstractCheckstyleReport.java index 0e39ecf4..0c6d2edf 100644 --- a/src/main/java/org/apache/maven/plugins/checkstyle/AbstractCheckstyleReport.java +++ b/src/main/java/org/apache/maven/plugins/checkstyle/AbstractCheckstyleReport.java @@ -34,7 +34,6 @@ import com.puppycrawl.tools.checkstyle.api.AuditListener; import com.puppycrawl.tools.checkstyle.api.AutomaticBean.OutputStreamOptions; import com.puppycrawl.tools.checkstyle.api.CheckstyleException; -import org.apache.commons.lang3.StringUtils; import org.apache.maven.artifact.Artifact; import org.apache.maven.execution.MavenSession; import org.apache.maven.model.Dependency; @@ -602,7 +601,7 @@ private List getCheckstylePluginDependenciesAsArtifacts(Map