Author: markt
Date: Fri Feb 9 12:22:52 2018
New Revision: 1823646
URL: http://svn.apache.org/viewvc?rev=1823646&view=rev
Log:
Add some Javadoc to document unused code in the non-async parser and keep the
IDE happy.
Modified:
tomcat/trunk/java/org/apache/coyote/http2/Http2Parser.java
Modified: tomcat/trunk/java/org/apache/coyote/http2/Http2Parser.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/Http2Parser.java?rev=1823646&r1=1823645&r2=1823646&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http2/Http2Parser.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http2/Http2Parser.java Fri Feb 9
12:22:52 2018
@@ -127,6 +127,11 @@ class Http2Parser {
return true;
}
+ /**
+ * NO-OP for non-async parser.
+ *
+ * @param buffer Unused.
+ */
protected void unRead(ByteBuffer buffer) {
}
@@ -521,6 +526,19 @@ class Http2Parser {
}
+ /**
+ * Swallow bytes.
+ *
+ * @param streamId Stream being swallowed
+ * @param len Number of bytes to swallow
+ * @param mustBeZero Are the bytes required to have value zero
+ * @param byteBuffer Unused for non-async parser
+ *
+ * @throws IOException If an I/O error occurs reading additional bytes into
+ * the input buffer.
+ * @throws ConnectionException If the swallowed bytes are expected to have
a
+ * value of zero but do not
+ */
protected void swallow(int streamId, int len, boolean mustBeZero,
ByteBuffer byteBuffer)
throws IOException, ConnectionException {
if (log.isDebugEnabled()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]