mirror of
https://github.com/google/nomulus.git
synced 2025-07-03 01:33:29 +02:00
Fix a few linter warnings (#1122)
This commit is contained in:
parent
509c0dcd17
commit
d285edef3d
2 changed files with 7 additions and 3 deletions
|
@ -76,7 +76,7 @@ public class SslServerInitializer<C extends Channel> extends ChannelInitializer<
|
|||
* OpenSSL provider (if used), so there is no need to include the OpenSSL name variants here. More
|
||||
* information about these cipher suites and their OpenSSL names can be found at ciphersuite.info.
|
||||
*/
|
||||
private static final ImmutableList ALLOWED_TLS_CIPHERS =
|
||||
private static final ImmutableList<String> ALLOWED_TLS_CIPHERS =
|
||||
ImmutableList.of(
|
||||
"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
|
||||
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
|
||||
|
|
|
@ -458,8 +458,12 @@ class SslServerInitializerTest {
|
|||
private static boolean compareSemanticVersion(
|
||||
ImmutableList<Integer> v1, ImmutableList<Integer> v2) {
|
||||
for (int i : ImmutableList.of(0, 1, 2)) {
|
||||
if (v1.get(i) > v2.get(i)) return true;
|
||||
if (v1.get(i) < v2.get(i)) return false;
|
||||
if (v1.get(i) > v2.get(i)) {
|
||||
return true;
|
||||
}
|
||||
if (v1.get(i) < v2.get(i)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue