This is an automated email from the ASF dual-hosted git repository.
adelbene pushed a commit to branch wicket-9.x
in repository https://gitbox.apache.org/repos/asf/wicket.git
The following commit(s) were added to refs/heads/wicket-9.x by this push:
new 60c24bc019 WICKET-6992 fix for missing method CharSequence#isEmpty
60c24bc019 is described below
commit 60c24bc0194f83647e2b8277f6101ba98501b657
Author: Andrea Del Bene <[email protected]>
AuthorDate: Thu Jun 30 15:59:30 2022 +0200
WICKET-6992 fix for missing method CharSequence#isEmpty
---
wicket-request/src/main/java/org/apache/wicket/request/Url.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wicket-request/src/main/java/org/apache/wicket/request/Url.java
b/wicket-request/src/main/java/org/apache/wicket/request/Url.java
index ab505f5497..e8425acebc 100755
--- a/wicket-request/src/main/java/org/apache/wicket/request/Url.java
+++ b/wicket-request/src/main/java/org/apache/wicket/request/Url.java
@@ -801,7 +801,7 @@ public class Url implements Serializable
StringMode.FULL.name() + " mode because
it has a `..` segment: " + toString());
}
- if (!path.isEmpty() && !(path.charAt(0) == '/'))
+ if (!(path.length() == 0) && !(path.charAt(0) == '/'))
{
result.append('/');
}