This is an automated email from the ASF dual-hosted git repository.
pjfanning pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-projection.git
The following commit(s) were added to refs/heads/main by this push:
new 4b50689 avoid deprecated StringUtils (#451)
4b50689 is described below
commit 4b506892b37e67b3899d98b239550a00957109de
Author: PJ Fanning <[email protected]>
AuthorDate: Fri Apr 24 10:01:32 2026 +0200
avoid deprecated StringUtils (#451)
---
project/CopyrightHeader.scala | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/project/CopyrightHeader.scala b/project/CopyrightHeader.scala
index a39bd1c..a25922f 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._
@@ -111,12 +111,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]