CloneSet158


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
30230.958statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
130246
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/imap/IMAPServer.java
231462
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/pop3/POP3Store.java
Next
Last
Clone Instance
1
Line Count
30
Source Line
246
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/imap/IMAPServer.java

int sslType = item.getIntegerWithDefault("ssl_type", IncomingItem.TLS);
boolean sslEnabled = item.getBoolean("enable_ssl");
// open a port to the server
if (sslEnabled && sslType == IncomingItem.IMAPS_POP3S) {
  try {
    protocol.openSSLPort();
    usingSSL = true;
  }
  catch (SSLException
         e) {
    int result = showErrorDialog(MailResourceLoader.getString("dialog", "error", "ssl_handshake_error") + ": " + e.getLocalizedMessage() + "\n" + MailResourceLoader.getString("dialog", "error", "ssl_turn_off"));
    if (result == 1) {
      throw new CommandCancelledException();
    }
    // turn off SSL for the future
    item.setBoolean("enable_ssl", false);
    item.setInteger("port", IMAPProtocol.DEFAULT_PORT);
    // reopen the port
    protocol.openPort();
  }
}
else {
  protocol.openPort();
}


First
Previous
Clone Instance
2
Line Count
31
Source Line
462
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/pop3/POP3Store.java

int sslType = popItem.getIntegerWithDefault("ssl_type", IncomingItem.TLS);
boolean sslEnabled = popItem.getBoolean("enable_ssl");
// open a port to the server
if (sslEnabled && sslType == IncomingItem.IMAPS_POP3S) {
  try {
    protocol.openSSLPort();
    usingSSL = true;
  }
  catch (SSLException
         e) {
    int result = showErrorDialog(MailResourceLoader.getString("dialog", "error", "ssl_handshake_error") + ": " + e.getLocalizedMessage() + "\n" + MailResourceLoader.getString("dialog", "error", "ssl_turn_off"));
    if (result == JOptionPane.CANCEL_OPTION) {
      throw new CommandCancelledException();
    }
    // turn off SSL for the future
    popItem.setBoolean("enable_ssl", false);
    popItem.setInteger("port", POP3Protocol.DEFAULT_PORT);
    // reopen the port
    protocol.openPort();
  }
}
else {
  protocol.openPort();
}


Clone AbstractionParameter Count: 3Parameter Bindings

int sslType = [[#variablef3ec6e0]].getIntegerWithDefault("ssl_type", IncomingItem.TLS);
boolean sslEnabled = [[#variablef3ec6e0]].getBoolean("enable_ssl");
// open a port to the server
if (sslEnabled && sslType == IncomingItem.IMAPS_POP3S) {
  try {
    protocol.openSSLPort();
    usingSSL = true;
  }
  catch (SSLException
         e) {
    int result = showErrorDialog(MailResourceLoader.getString("dialog", "error", "ssl_handshake_error") + ": " + e.getLocalizedMessage() + "\n" + MailResourceLoader.getString("dialog", "error", "ssl_turn_off"));
    if (result == [[#variablef3ec6c0]]) {
      throw new CommandCancelledException();
    }
     [[#variablef3ec6e0]].setBoolean("enable_ssl", false);
     [[#variablef3ec6e0]].setInteger("port",  [[#variablef3ed9c0]].DEFAULT_PORT);
    // reopen the port
    protocol.openPort();
  }
}
else {
  protocol.openPort();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#f3ec6e0]]
item 
12[[#f3ec6e0]]
popItem 
21[[#f3ec6c0]]
1 
22[[#f3ec6c0]]
JOptionPane.CANCEL_OPTION 
31[[#f3ed9c0]]
IMAPProtocol 
32[[#f3ed9c0]]
POP3Protocol