Skip to content

Commit 62e9b0e

Browse files
author
Santiago Gala
committed
Remove commons-lang dependency
1 parent 3902f55 commit 62e9b0e

File tree

6 files changed

+77
-90
lines changed

6 files changed

+77
-90
lines changed

core/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@
9393
<groupId>org.apache.commons</groupId>
9494
<artifactId>commons-collections4</artifactId>
9595
</dependency>
96-
<dependency>
97-
<groupId>org.apache.commons</groupId>
98-
<artifactId>commons-lang3</artifactId>
99-
</dependency>
10096
<dependency>
10197
<groupId>commons-io</groupId>
10298
<artifactId>commons-io</artifactId>

core/src/main/groovy/noe/common/utils/VerifyURLBuilder.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import com.gargoylesoftware.htmlunit.Page
44
import com.gargoylesoftware.htmlunit.WebClient
55
import com.gargoylesoftware.htmlunit.WebResponse
66
import groovy.util.logging.Slf4j
7-
import org.apache.commons.lang3.StringUtils
87

98
import java.util.regex.Pattern
109

@@ -252,7 +251,7 @@ public final class VerifyURLBuilder {
252251
*/
253252
private Map build() {
254253
if (url == null) throw new IllegalArgumentException("URL must not be null.")
255-
if (StringUtils.isBlank(reqKey) != StringUtils.isBlank(reqValue)) {
254+
if (reqKey?.allWhitespace != reqValue?.allWhitespace) {
256255
throw new IllegalArgumentException("ReqKey and ReqValue have to have to be either both set or both empty.")
257256
}
258257

0 commit comments

Comments
 (0)