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.git
The following commit(s) were added to refs/heads/main by this push:
new e10cc9fe7 Remove deprecated Apache StringUtils
e10cc9fe7 is described below
commit e10cc9fe74033beb56db26886c2c47090da30e44
Author: Matthew de Detrich <[email protected]>
AuthorDate: Thu Dec 11 10:20:17 2025 +1100
Remove deprecated Apache StringUtils
---
project/CopyrightHeader.scala | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/project/CopyrightHeader.scala b/project/CopyrightHeader.scala
index a1347c762..e92b8c9b8 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._
@@ -113,16 +113,16 @@ 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 License, Version 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 License, Version 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]