This is an automated email from the ASF dual-hosted git repository.
pedrosans 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 8b7774ae4e Fix JavaScriptUtils variable declaration
8b7774ae4e is described below
commit 8b7774ae4e232345318cd185ce2e378e68d2370a
Author: Pedro Santos <[email protected]>
AuthorDate: Tue Jul 21 18:25:14 2026 -0300
Fix JavaScriptUtils variable declaration
---
.../main/java/org/apache/wicket/core/util/string/JavaScriptUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/wicket-core/src/main/java/org/apache/wicket/core/util/string/JavaScriptUtils.java
b/wicket-core/src/main/java/org/apache/wicket/core/util/string/JavaScriptUtils.java
index 2a001e441a..ab8fa8f25e 100644
---
a/wicket-core/src/main/java/org/apache/wicket/core/util/string/JavaScriptUtils.java
+++
b/wicket-core/src/main/java/org/apache/wicket/core/util/string/JavaScriptUtils.java
@@ -142,7 +142,7 @@ public class JavaScriptUtils
{
if (s != null)
{
- var trimmed = s.trim();
+ String trimmed = s.trim();
if (trimmed.length() > 1 && trimmed.startsWith("'") &&
trimmed.endsWith("'"))
{
s = trimmed.substring(1, trimmed.length() - 1);