8258736: No break in the loop

Reviewed-by: wetmore
This commit is contained in:
Xue-Lei Andrew Fan 2020-12-21 19:09:03 +00:00
parent 01d51a101a
commit 12297a00ef

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020, 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
@ -532,6 +532,7 @@ enum SSLCipher {
for (ProtocolVersion pv : me.getValue()) {
if (protocolVersion == pv) {
rcg = me.getKey();
break;
}
}
}
@ -557,6 +558,7 @@ enum SSLCipher {
for (ProtocolVersion pv : me.getValue()) {
if (protocolVersion == pv) {
wcg = me.getKey();
break;
}
}
}