http-client-branch: review comment - consistent use of status line in exception messages http-client-branch
authorchegar
Wed, 20 Jun 2018 13:04:57 +0100
branchhttp-client-branch
changeset 56787 e51f528c5fb8
parent 56786 e550e715c4d3
child 56788 7d40b235de18
http-client-branch: review comment - consistent use of status line in exception messages
src/java.net.http/share/classes/jdk/internal/net/http/Http1HeaderParser.java
--- a/src/java.net.http/share/classes/jdk/internal/net/http/Http1HeaderParser.java	Wed Jun 20 12:20:29 2018 +0100
+++ b/src/java.net.http/share/classes/jdk/internal/net/http/Http1HeaderParser.java	Wed Jun 20 13:04:57 2018 +0100
@@ -182,7 +182,7 @@
     private void readStatusLineFeed(ByteBuffer input) throws ProtocolException {
         char c = state == State.STATUS_LINE_FOUND_LF ? LF : (char)input.get();
         if (c != LF) {
-            throw protocolException("Bad trailing char, \"%s\", when parsing status-line, \"%s\"",
+            throw protocolException("Bad trailing char, \"%s\", when parsing status line, \"%s\"",
                                     c, sb.toString());
         }
 
@@ -222,7 +222,7 @@
             privateMap = null;
             state = State.FINISHED;  // no headers
         } else {
-            throw protocolException("Unexpected \"%s\", after status-line CR", c);
+            throw protocolException("Unexpected \"%s\", after status line CR", c);
         }
     }