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-management.git
The following commit(s) were added to refs/heads/main by this push:
new 2a14fbd5 avoid deprecated StringUtils (#605)
2a14fbd5 is described below
commit 2a14fbd54bb9e54dfd5369591b975cd8b4f52c7c
Author: PJ Fanning <[email protected]>
AuthorDate: Mon Jan 26 07:46:35 2026 +0100
avoid deprecated StringUtils (#605)
---
project/CopyrightHeader.scala | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/project/CopyrightHeader.scala b/project/CopyrightHeader.scala
index 12313951..1a592043 100644
--- a/project/CopyrightHeader.scala
+++ b/project/CopyrightHeader.scala
@@ -13,7 +13,7 @@
import sbtheader.HeaderPlugin.autoImport._
import sbtheader.{ CommentCreator, CommentStyle, HeaderPlugin, NewLine }
-import org.apache.commons.lang3.StringUtils
+import org.apache.commons.lang3.Strings
import sbt.Keys._
import sbt._
@@ -110,9 +110,9 @@ 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 =
text.contains("Lightbend Inc.")
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]