Skip to content

Commit

Permalink
added missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-mulligan committed Nov 15, 2023
1 parent 314a8de commit d40fd52
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions patchfinder/src/main/java/messenger/Messenger.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@

import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.sql.ResultSet;
import java.util.*;
import java.util.concurrent.*;
Expand Down Expand Up @@ -69,13 +71,13 @@ public Messenger(String host, String vhost, int port, String username, String pa
this.factory.setUsername(username);
this.factory.setPassword(password);

try {
factory.useSslProtocol();
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException(e);
} catch (KeyManagementException e) {
throw new RuntimeException(e);
}
// try {
// factory.useSslProtocol();
// } catch (NoSuchAlgorithmException e) {
// throw new RuntimeException(e);
// } catch (KeyManagementException e) {
// throw new RuntimeException(e);
// }

this.inputQueue = inputQueue;
}
Expand All @@ -85,13 +87,13 @@ protected Messenger(ConnectionFactory factory, String inputQueue) {
logger.info("Initializing Messenger...");
this.factory = factory;

try {
factory.useSslProtocol();
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException(e);
} catch (KeyManagementException e) {
throw new RuntimeException(e);
}
// try {
// factory.useSslProtocol();
// } catch (NoSuchAlgorithmException e) {
// throw new RuntimeException(e);
// } catch (KeyManagementException e) {
// throw new RuntimeException(e);
// }

this.inputQueue = inputQueue;
}
Expand Down

0 comments on commit d40fd52

Please sign in to comment.