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

fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-persistence-r2dbc.git


The following commit(s) were added to refs/heads/main by this push:
     new 8f0f128  avoid use of deprecated StringUtils (#308)
8f0f128 is described below

commit 8f0f1288a4b274bae8cd9c9a214d628536912b12
Author: PJ Fanning <[email protected]>
AuthorDate: Fri Jan 30 11:00:31 2026 +0100

    avoid use of deprecated StringUtils (#308)
---
 project/CopyrightHeader.scala | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/project/CopyrightHeader.scala b/project/CopyrightHeader.scala
index 200943f..79ebf58 100644
--- a/project/CopyrightHeader.scala
+++ b/project/CopyrightHeader.scala
@@ -9,7 +9,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._
 
@@ -89,12 +89,12 @@ trait CopyrightHeader extends AutoPlugin {
   })
 
   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 isValidCopyrightAnnotated(text: String): Boolean = {
     isApacheCopyrighted(text)


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

Reply via email to