Skip to content

Commit 7fddbe1

Browse files
Mavelousok2c
authored andcommitted
Update error message in ProtocolVersion
Error message for Protocol Major Version was incorrect.
1 parent 81a3c82 commit 7fddbe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httpcore5/src/main/java/org/apache/hc/core5/http/ProtocolVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class ProtocolVersion implements Serializable {
7171
*/
7272
public ProtocolVersion(final String protocol, final int major, final int minor) {
7373
this.protocol = Args.notNull(protocol, "Protocol name");
74-
this.major = Args.notNegative(major, "Protocol minor version");
74+
this.major = Args.notNegative(major, "Protocol major version");
7575
this.minor = Args.notNegative(minor, "Protocol minor version");
7676
}
7777

0 commit comments

Comments
 (0)