Skip to content

Commit

Permalink
Format: Add/remove spaces
Browse files Browse the repository at this point in the history
Javadoc
  • Loading branch information
garydgregory committed Sep 18, 2024
1 parent b04b31c commit df78880
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ private enum State {
private int emptyLineCount;

/**
* Constructs a new instance for a subclass.
*
* @param http1Config HTTP/1.1 protocol parameters.
* @param lineParser How to parse lines in an HTTP message.
* @since 5.3
*/
public AbstractMessageParser(final Http1Config http1Config, final LineParser lineParser) {
Expand All @@ -77,6 +81,10 @@ public AbstractMessageParser(final Http1Config http1Config, final LineParser lin
}

/**
* Constructs a new instance for a subclass.
*
* @param lineParser How to parse lines in an HTTP message.
* @param messageConstraints HTTP/1.1 protocol parameters.
* @deprecated Use {@link #AbstractMessageParser(Http1Config, LineParser)}
*/
@Deprecated
Expand Down Expand Up @@ -147,7 +155,7 @@ private void parseHeader() throws IOException {
public T parse(
final SessionInputBuffer sessionBuffer, final boolean endOfStream) throws IOException, HttpException {
Args.notNull(sessionBuffer, "Session input buffer");
while (this.state !=State.COMPLETED) {
while (this.state != State.COMPLETED) {
if (this.lineBuf == null) {
this.lineBuf = new CharArrayBuffer(64);
} else {
Expand Down Expand Up @@ -188,7 +196,7 @@ public T parse(
this.state = State.COMPLETED;
}
}
if (this.state ==State. COMPLETED) {
if (this.state == State.COMPLETED) {
for (final CharArrayBuffer buffer : this.headerBufs) {
this.message.addHeader(this.lineParser.parseHeader(buffer));
}
Expand Down

0 comments on commit df78880

Please sign in to comment.