CloneSet179


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

/**
 * Gets the selected Authentication method or else the most secure.
 *
 * @return the authentication method
 */
private int getLoginMethod() throws CommandCancelledException, IOException {
  String loginMethod = item.get("login_method");
  int result = 0;
  try {
    result = Integer.parseInt(loginMethod);
  }
  catch (NumberFormatException
         e) {
  // Just use the default as fallback
  }
  if (result == 0) {
    List supported = checkSupportedAuthenticationMethods();
    if (usingSSL) {
      // NOTE if SSL is possible we just need the plain login
      // since SSL does the encryption for us.
      result = ((Integer) supported.get(0)).intValue();
    }
    else {
      Collections.sort(supported, new AuthenticationSecurityComparator());
      result = ((Integer) supported.get(supported.size() - 1)).intValue();
    }
  }
  return result;
}


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

/**
 * Gets the selected Authentication method or else the most secure.
 *
 * @return the authentication method
 */
private int getLoginMethod() throws CommandCancelledException, IOException {
  String loginMethod = popItem.get("login_method");
  int result = 0;
  try {
    result = Integer.parseInt(loginMethod);
  }
  catch (NumberFormatException
         e) {
  // Just use the default as fallback
  }
  if (result == 0) {
    List supported = checkSupportedAuthenticationMethods();
    if (usingSSL) {
      // NOTE if SSL is possible we just need the plain login
      // since SSL does the encryption for us.
      result = ((Integer) supported.get(0)).intValue();
    }
    else {
      Collections.sort(supported, new AuthenticationSecurityComparator());
      result = ((Integer) supported.get(supported.size() - 1)).intValue();
    }
  }
  return result;
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Gets the selected Authentication method or else the most secure.
         *
         * @return the authentication method
         */
private int getLoginMethod() throws CommandCancelledException, IOException {
  String loginMethod = [[#variable11396b00]].get("login_method");
  int result = 0;
  try {
    result = Integer.parseInt(loginMethod);
  }
  catch (NumberFormatException
         e) {
  // Just use the default as fallback
  }
  if (result == 0) {
    List supported = checkSupportedAuthenticationMethods();
    if (usingSSL) {
      // NOTE if SSL is possible we just need the plain login
      // since SSL does the encryption for us.
      result = ((Integer) supported.get(0)).intValue();
    }
    else {
      Collections.sort(supported, new AuthenticationSecurityComparator());
      result = ((Integer) supported.get(supported.size() - 1)).intValue();
    }
  }
  return result;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#11396b00]]
item 
12[[#11396b00]]
popItem