This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit f4bcad41450b207dde5eb0490375f8763de49d68
Author: Mark Thomas <[email protected]>
AuthorDate: Wed May 13 12:24:57 2026 +0100

    Use byte rather than int for byte values.
---
 java/org/apache/coyote/http2/Http2UpgradeHandler.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/java/org/apache/coyote/http2/Http2UpgradeHandler.java 
b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
index 0190ce9116..c71a5b23b2 100644
--- a/java/org/apache/coyote/http2/Http2UpgradeHandler.java
+++ b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
@@ -86,12 +86,12 @@ class Http2UpgradeHandler extends AbstractStream implements 
InternalHttpUpgradeH
     /**
      * Flag indicating the end of a stream.
      */
-    protected static final int FLAG_END_OF_STREAM = 1;
+    protected static final byte FLAG_END_OF_STREAM = 1;
 
     /**
      * Flag indicating the end of headers.
      */
-    protected static final int FLAG_END_OF_HEADERS = 4;
+    protected static final byte FLAG_END_OF_HEADERS = 4;
 
     /**
      * PING frame with zero payload length and zero stream ID.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to