Skip to content

Commit

Permalink
Style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
erm-g committed Jul 8, 2024
1 parent ad0bfab commit c284229
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions netty/src/test/java/io/grpc/netty/AdvancedTlsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public void onFileReloadingKeyManagerTrustManagerTest() throws Exception {
public void onFileLoadingKeyManagerTrustManagerTest() throws Exception {
// Create & start a server.
AdvancedTlsX509KeyManager serverKeyManager = new AdvancedTlsX509KeyManager();
serverKeyManager.updateIdentityCredentialsFromFile(serverKey0File, serverCert0File);
serverKeyManager.updateIdentityCredentials(serverCert0File, serverKey0File);
AdvancedTlsX509TrustManager serverTrustManager = AdvancedTlsX509TrustManager.newBuilder()
.setVerification(Verification.CERTIFICATE_ONLY_VERIFICATION)
.build();
Expand All @@ -393,7 +393,7 @@ public void onFileLoadingKeyManagerTrustManagerTest() throws Exception {
new SimpleServiceImpl()).build().start();
// Create a client to connect.
AdvancedTlsX509KeyManager clientKeyManager = new AdvancedTlsX509KeyManager();
clientKeyManager.updateIdentityCredentialsFromFile(clientKey0File, clientCert0File);
clientKeyManager.updateIdentityCredentials(clientCert0File, clientKey0File);
AdvancedTlsX509TrustManager clientTrustManager = AdvancedTlsX509TrustManager.newBuilder()
.setVerification(Verification.CERTIFICATE_AND_HOST_NAME_VERIFICATION)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public Closeable updateIdentityCredentials(File certFile, File keyFile,
public Closeable updateIdentityCredentialsFromFile(File keyFile, File certFile,
long period, TimeUnit unit, ScheduledExecutorService executor) throws IOException,
GeneralSecurityException {
return updateIdentityCredentials(certFile, keyFile, period, unit, executor);
return this.updateIdentityCredentials(certFile, keyFile, period, unit, executor);
}

/**
Expand All @@ -173,7 +173,7 @@ public Closeable updateIdentityCredentialsFromFile(File keyFile, File certFile,
*/
public void updateIdentityCredentials(File certFile, File keyFile) throws IOException,
GeneralSecurityException {
UpdateResult newResult = readAndUpdate(keyFile, certFile, 0, 0);
UpdateResult newResult = readAndUpdate(certFile, keyFile, 0, 0);
if (!newResult.success) {
throw new GeneralSecurityException(
"Files were unmodified before their initial update. Probably a bug.");
Expand All @@ -190,7 +190,7 @@ public void updateIdentityCredentials(File certFile, File keyFile) throws IOExce
@Deprecated
public void updateIdentityCredentialsFromFile(File keyFile, File certFile) throws IOException,
GeneralSecurityException {
updateIdentityCredentials(certFile, keyFile);
this.updateIdentityCredentials(certFile, keyFile);
}

private static class KeyInfo {
Expand Down

0 comments on commit c284229

Please sign in to comment.