You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2023/05/22 12:49:13 UTC
[tomcat] 02/02: Fix method name. Use method rather than field.
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 4b8b437134e2bed4285eaaec0fe1ec00e3223169
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon May 22 13:48:31 2023 +0100
Fix method name. Use method rather than field.
---
java/org/apache/tomcat/util/net/AbstractEndpoint.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
index 423403e31f..0bc0c4eb3b 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -634,7 +634,7 @@ public abstract class AbstractEndpoint<S,U> {
public void setUseVirtualThreads(boolean useVirtualThreads) {
this.useVirtualThreads = useVirtualThreads;
}
- public boolean getVirtualThreads() {
+ public boolean getUseVirtualThreads() {
return useVirtualThreads;
}
@@ -1074,7 +1074,7 @@ public abstract class AbstractEndpoint<S,U> {
public void createExecutor() {
internalExecutor = true;
- if (useVirtualThreads) {
+ if (getUseVirtualThreads()) {
executor = new VirtualThreadExecutor(getName() + "-exec-");
} else {
TaskQueue taskqueue = new TaskQueue();
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org