8282932: a space is needed for the unsupported protocol exception message in ProtocolVersion

Reviewed-by: xuelei, mullan
This commit is contained in:
John Jiang 2022-03-10 18:25:06 +00:00
parent 879b6445e3
commit 1f295239b9

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -290,7 +290,7 @@ enum ProtocolVersion {
ProtocolVersion pv = ProtocolVersion.nameOf(pn);
if (pv == null) {
throw new IllegalArgumentException(
"Unsupported protocol" + pn);
"Unsupported protocol: " + pn);
}
pvs.add(pv);