This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new f8fec15375 Java 8 compat
f8fec15375 is described below
commit f8fec1537565f31678f65e66cd5d0b62649fe0f7
Author: remm <[email protected]>
AuthorDate: Tue Jun 23 22:09:11 2026 +0200
Java 8 compat
---
test/org/apache/jasper/compiler/TestGenerator.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/org/apache/jasper/compiler/TestGenerator.java
b/test/org/apache/jasper/compiler/TestGenerator.java
index c56f78e9a9..131fe1c2b4 100644
--- a/test/org/apache/jasper/compiler/TestGenerator.java
+++ b/test/org/apache/jasper/compiler/TestGenerator.java
@@ -715,7 +715,7 @@ public class TestGenerator extends TomcatBaseTest {
throw new IllegalSelectorException();
} else {
try {
- if (!state.isBlank()) {
+ if (!state.trim().isEmpty()) {
pageContext.getOut().print(state);
pageContext.getOut().print("-");
}
@@ -736,7 +736,7 @@ public class TestGenerator extends TomcatBaseTest {
throw new IllegalSelectorException();
} else {
try {
- if (!state.isBlank()) {
+ if (!state.trim().isEmpty()) {
pageContext.getOut().print(state);
pageContext.getOut().print("-");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]