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:48:37 UTC

[tomcat] branch main updated: 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 main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 67b1423c08 Fix method name. Use method rather than field.
67b1423c08 is described below

commit 67b1423c088ea0144857e6dd38a00ff0736fc08f
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 8698dedf92..cbc35ececb 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -748,7 +748,7 @@ public abstract class AbstractEndpoint<S,U> {
     public void setUseVirtualThreads(boolean useVirtualThreads) {
         this.useVirtualThreads = useVirtualThreads;
     }
-    public boolean getVirtualThreads() {
+    public boolean getUseVirtualThreads() {
         return useVirtualThreads;
     }
 
@@ -1179,7 +1179,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