CloneSet134


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
39230.955block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
139281
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/imap/IMAPServer.java
239498
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
39
Source Line
281
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/imap/IMAPServer.java

{
  try {
    protocol.startTLS();
    usingSSL = true;
    LOG.info("Switched to SSL");
  }
  catch (IOException
         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);
    // reopen the port
    protocol.openPort();
  }
  catch (IMAPException
         e) {
    int result = showErrorDialog(MailResourceLoader.getString("dialog", "error", "ssl_not_supported") + "\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);
  }
}


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

{
  try {
    protocol.startTLS();
    usingSSL = true;
    LOG.info("Switched to SSL");
  }
  catch (IOException
         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);
    // reopen the port
    protocol.openPort();
  }
  catch (POP3Exception
         e) {
    int result = showErrorDialog(MailResourceLoader.getString("dialog", "error", "ssl_not_supported") + "\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);
  }
}


Clone AbstractionParameter Count: 3Parameter Bindings

{
  try {
    protocol.startTLS();
    usingSSL = true;
    LOG.info("Switched to SSL");
  }
  catch (IOException
         e) {
    int result = showErrorDialog(MailResourceLoader.getString("dialog", "error", "ssl_handshake_error") + ": " + e.getLocalizedMessage() + "\n" + MailResourceLoader.getString("dialog", "error", "ssl_turn_off"));
    if (result == [[#variablef3d02c0]]) {
      throw new CommandCancelledException();
    }
     [[#variablef3d0200]].setBoolean("enable_ssl", false);
    // reopen the port
    protocol.openPort();
  }
  catch ( [[#variablef3cbf20]]
         e) {
    int result = showErrorDialog(MailResourceLoader.getString("dialog", "error", "ssl_not_supported") + "\n" + MailResourceLoader.getString("dialog", "error", "ssl_turn_off"));
    if (result == [[#variablef3d02c0]]) {
      throw new CommandCancelledException();
    }
     [[#variablef3d0200]].setBoolean("enable_ssl", false);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#f3d02c0]]
1 
12[[#f3d02c0]]
JOptionPane.CANCEL_OPTION 
21[[#f3d0200]]
// turn off SSL for the future
item 
22[[#f3d0200]]
// turn off SSL for the future
popItem 
31[[#f3cbf20]]
IMAPException 
32[[#f3cbf20]]
POP3Exception