Skip to content

Commit 3120f37

Browse files
committed
use our own string functions
1 parent 5737244 commit 3120f37

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/main/java/org/htmlunit/html/HtmlOutput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
import java.util.HashSet;
2020
import java.util.Map;
2121

22-
import org.apache.commons.lang3.StringUtils;
2322
import org.htmlunit.SgmlPage;
23+
import org.htmlunit.util.StringUtils;
2424

2525
/**
2626
* Wrapper for the HTML element "output".

src/main/java/org/htmlunit/httpclient/HtmlUnitSameSiteHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
*/
1515
package org.htmlunit.httpclient;
1616

17-
import org.apache.commons.lang3.StringUtils;
1817
import org.apache.http.cookie.CommonCookieAttributeHandler;
1918
import org.apache.http.cookie.Cookie;
2019
import org.apache.http.cookie.CookieOrigin;
2120
import org.apache.http.cookie.MalformedCookieException;
2221
import org.apache.http.cookie.SetCookie;
2322
import org.apache.http.impl.cookie.BasicClientCookie;
23+
import org.htmlunit.util.StringUtils;
2424

2525
/**
2626
* Customized CookieAttributeHandler for handling of the samesite attribute.

src/test/java/org/htmlunit/archunit/ArchitectureTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,14 @@ public class ArchitectureTest {
129129
public static final ArchRule apacheStringsContainsRule = noClasses()
130130
.should().callMethod(org.apache.commons.lang3.Strings.class, "contains", CharSequence.class, CharSequence.class);
131131

132+
/**
133+
* Do not use org.apache.commons.lang3.StringUtils.toRootLowerCase(String).
134+
*/
135+
@ArchTest
136+
public static final ArchRule apacheStringstoRootLowerCaseRule = noClasses()
137+
.should().callMethod(org.apache.commons.lang3.StringUtils.class, "toRootLowerCase", String.class);
138+
139+
132140
/**
133141
* The jetty websocket stuff is only used by one class.
134142
*/

0 commit comments

Comments
 (0)