This is an automated email from the ASF dual-hosted git repository.
markt 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 b53f92e322 Code clean-up - formatting. No functional change.
b53f92e322 is described below
commit b53f92e3223781470d3fd728f4628a34e07284ed
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Jul 31 13:50:23 2025 +0100
Code clean-up - formatting. No functional change.
---
java/org/apache/coyote/http2/ConnectionSettingsBase.java | 2 +-
java/org/apache/coyote/http2/HpackDecoder.java | 7 +++----
java/org/apache/coyote/http2/Http2Protocol.java | 5 ++---
java/org/apache/coyote/http2/Http2UpgradeHandler.java | 4 ++--
java/org/apache/coyote/http2/Stream.java | 2 +-
5 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/java/org/apache/coyote/http2/ConnectionSettingsBase.java
b/java/org/apache/coyote/http2/ConnectionSettingsBase.java
index 47141ba050..0a177ed0ff 100644
--- a/java/org/apache/coyote/http2/ConnectionSettingsBase.java
+++ b/java/org/apache/coyote/http2/ConnectionSettingsBase.java
@@ -66,7 +66,7 @@ abstract class ConnectionSettingsBase<T extends Throwable> {
final void set(Setting setting, long value) throws T {
- set(setting, value, false);
+ set(setting, value, false);
}
diff --git a/java/org/apache/coyote/http2/HpackDecoder.java
b/java/org/apache/coyote/http2/HpackDecoder.java
index d6fb592f6f..b25554582b 100644
--- a/java/org/apache/coyote/http2/HpackDecoder.java
+++ b/java/org/apache/coyote/http2/HpackDecoder.java
@@ -380,10 +380,9 @@ public class HpackDecoder {
/**
* Are the headers pass to the recipient so far valid? The decoder
needs to process all the headers to maintain
- * state even if there is a problem. In addition, it is easy for the
intended recipient to track if the
- * complete set of headers is valid since to do that state needs to be
maintained between the parsing of the
- * initial headers and the parsing of any trailer headers. The
recipient is the best place to maintain that
- * state.
+ * state even if there is a problem. In addition, it is easy for the
intended recipient to track if the complete
+ * set of headers is valid since to do that state needs to be
maintained between the parsing of the initial
+ * headers and the parsing of any trailer headers. The recipient is
the best place to maintain that state.
*
* @throws StreamException If the headers received to date are not
valid
*/
diff --git a/java/org/apache/coyote/http2/Http2Protocol.java
b/java/org/apache/coyote/http2/Http2Protocol.java
index a7cb153676..42d60b5bc2 100644
--- a/java/org/apache/coyote/http2/Http2Protocol.java
+++ b/java/org/apache/coyote/http2/Http2Protocol.java
@@ -148,9 +148,8 @@ public class Http2Protocol implements UpgradeProtocol {
@Override
public Processor getProcessor(SocketWrapperBase<?> socketWrapper, Adapter
adapter) {
- return new UpgradeProcessorInternal(socketWrapper,
- new UpgradeToken(getInternalUpgradeHandler(socketWrapper,
adapter, null), null,
- null, getUpgradeProtocolName()),null);
+ return new UpgradeProcessorInternal(socketWrapper, new UpgradeToken(
+ getInternalUpgradeHandler(socketWrapper, adapter, null), null,
null, getUpgradeProtocolName()), null);
}
diff --git a/java/org/apache/coyote/http2/Http2UpgradeHandler.java
b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
index 234dd74f8a..4f5c356dea 100644
--- a/java/org/apache/coyote/http2/Http2UpgradeHandler.java
+++ b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
@@ -965,8 +965,8 @@ class Http2UpgradeHandler extends AbstractStream implements
InternalHttpUpgradeH
} else if (windowSize < 1) {
/*
* The connection window has no capacity. If the stream
has not been granted an allocation, and the
- * stream was not already added to the backlog due to a
partial reservation (see next else if
- * block) add it to the backlog so it can obtain an
allocation when capacity is available.
+ * stream was not already added to the backlog due to a
partial reservation (see next else if block)
+ * add it to the backlog so it can obtain an allocation
when capacity is available.
*/
if (stream.getConnectionAllocationMade() == 0 &&
stream.getConnectionAllocationRequested() == 0) {
stream.setConnectionAllocationRequested(reservation);
diff --git a/java/org/apache/coyote/http2/Stream.java
b/java/org/apache/coyote/http2/Stream.java
index 012b1efebf..ab041be128 100644
--- a/java/org/apache/coyote/http2/Stream.java
+++ b/java/org/apache/coyote/http2/Stream.java
@@ -1149,7 +1149,7 @@ class Stream extends AbstractNonZeroStream implements
HeaderEmitter {
// Only want to return false if the window size is zero AND we
are
// already waiting for an allocation.
return (getWindowSize() <= 0 ||
!allocationManager.isWaitingForStream()) &&
- (handler.getWindowSize() <= 0 ||
!allocationManager.isWaitingForConnection()) && !dataLeft;
+ (handler.getWindowSize() <= 0 ||
!allocationManager.isWaitingForConnection()) && !dataLeft;
} finally {
writeLock.unlock();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]