This is an automated email from the ASF dual-hosted git repository.

mdedetrich pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-connectors-kafka.git


The following commit(s) were added to refs/heads/main by this push:
     new 4c6703ba Remove deprecated Apache StringUtils
4c6703ba is described below

commit 4c6703ba9253f4484270ea94442cff2b0ff8e26d
Author: Matthew de Detrich <[email protected]>
AuthorDate: Wed Dec 10 10:55:13 2025 +1100

    Remove deprecated Apache StringUtils
---
 project/CopyrightHeader.scala | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/project/CopyrightHeader.scala b/project/CopyrightHeader.scala
index 645c8c41..082caff9 100644
--- a/project/CopyrightHeader.scala
+++ b/project/CopyrightHeader.scala
@@ -13,7 +13,7 @@
 
 import sbtheader.HeaderPlugin.autoImport._
 import sbtheader.{ CommentCreator, HeaderPlugin, NewLine }
-import org.apache.commons.lang3.StringUtils
+import org.apache.commons.lang3.Strings
 import sbt.Keys._
 import sbt._
 
@@ -110,15 +110,15 @@ trait CopyrightHeader extends AutoPlugin {
   })
 
   private def isGenerated(text: String): Boolean =
-    StringUtils.contains(text, "DO NOT EDIT DIRECTLY")
+    Strings.CS.contains(text, "DO NOT EDIT DIRECTLY")
 
   private def isApacheCopyrighted(text: String): Boolean =
-    StringUtils.containsIgnoreCase(text, "licensed to the apache software 
foundation (asf)") ||
-    StringUtils.containsIgnoreCase(text, 
"www.apache.org/licenses/license-2.0") ||
-    StringUtils.contains(text, "Apache-2.0")
+    Strings.CI.contains(text, "licensed to the apache software foundation 
(asf)") ||
+    Strings.CI.contains(text, "www.apache.org/licenses/license-2.0") ||
+    Strings.CS.contains(text, "Apache-2.0")
 
   private def isLightbendCopyrighted(text: String): Boolean =
-    StringUtils.containsIgnoreCase(text, "lightbend inc.")
+    Strings.CI.contains(text, "lightbend inc.")
 
   private def isOnlyLightbendCopyrightAnnotated(text: String): Boolean = {
     isLightbendCopyrighted(text) && !isApacheCopyrighted(text)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to