if (log.isDebugEnabled() && certificates != null) { for (int c = 0; c < certificates.length; c++) { X509Certificate cert = certificates[c]; log.debug(" Server certificate " + (c + 1) + ":"); log.debug(" Subject DN: " + cert.getSubjectDN()); log.debug(" Signature Algorithm: " + cert.getSigAlgName()); log.debug(" Valid from: " + cert.getNotBefore() ); log.debug(" Valid until: " + cert.getNotAfter()); log.debug(" Issuer: " + cert.getIssuerDN()); } }
if (log.isDebugEnabled() && certificates != null) { for (int c = 0; c < certificates.length; c++) { X509Certificate cert = certificates[c]; log.debug(" Client certificate " + (c + 1) + ":"); log.debug(" Subject DN: " + cert.getSubjectDN()); log.debug(" Signature Algorithm: " + cert.getSigAlgName()); log.debug(" Valid from: " + cert.getNotBefore() ); log.debug(" Valid until: " + cert.getNotAfter()); log.debug(" Issuer: " + cert.getIssuerDN()); } }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/CustomX509TrustManager.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/CustomX509TrustManager.java
Method name: void checkServerTrusted(X509Certificate[], String) Method name: void checkClientTrusted(X509Certificate[], String)
Number of AST nodes: 9 Number of AST nodes: 9
1
if (log.isDebugEnabled() && certificates != null) {
1
if (log.isDebugEnabled() && certificates != null) {
2
            for (int c = 0; c < certificates.length; c++) {
2
            for (int c = 0; c < certificates.length; c++) {
3
                X509Certificate cert = certificates[c];
3
                X509Certificate cert = certificates[c];
4
                log.debug(" Server certificate " + (c + 1) + ":");
4
                log.debug(" Client certificate " + (c + 1) + ":");
5
                log.debug("  Subject DN: " + cert.getSubjectDN());
5
                log.debug("  Subject DN: " + cert.getSubjectDN());
6
                log.debug("  Signature Algorithm: " + cert.getSigAlgName());
6
                log.debug("  Signature Algorithm: " + cert.getSigAlgName());
7
                log.debug("  Valid from: " + cert.getNotBefore() );
7
                log.debug("  Valid from: " + cert.getNotBefore() );
8
                log.debug("  Valid until: " + cert.getNotAfter());
8
                log.debug("  Valid until: " + cert.getNotAfter());
9
                log.debug("  Issuer: " + cert.getIssuerDN());
9
                log.debug("  Issuer: " + cert.getIssuerDN());
10
            }
10
            }
11
        }
11
        }
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.3
Clones locationClones are declared in the same class
Number of node comparisons65
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements9
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)10.7
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (log.isDebugEnabled() && certificates != null)
    1
    if (log.isDebugEnabled() && certificates != null)
    2
    for (int c = 0; c < certificates.length; c++)
    2
    for (int c = 0; c < certificates.length; c++)
    3
    X509Certificate cert = certificates[c];
    3
    X509Certificate cert = certificates[c];
    4
    log.debug(" Server certificate " + (c + 1) + ":");
    4
    log.debug(" Server certificate " + (c + 1) + ":");
    4
    log.debug(" Client certificate " + (c + 1) + ":");
    Differences
    Expression1Expression2Difference
    " Server certificate "" Client certificate "LITERAL_VALUE_MISMATCH
    4
    log.debug(" Client certificate " + (c + 1) + ":");
    5
    log.debug("  Subject DN: " + cert.getSubjectDN());
    5
    log.debug("  Subject DN: " + cert.getSubjectDN());
    6
    log.debug("  Signature Algorithm: " + cert.getSigAlgName());
    6
    log.debug("  Signature Algorithm: " + cert.getSigAlgName());
    7
    log.debug("  Valid from: " + cert.getNotBefore());
    7
    log.debug("  Valid from: " + cert.getNotBefore());
    8
    log.debug("  Valid until: " + cert.getNotAfter());
    8
    log.debug("  Valid until: " + cert.getNotAfter());
    9
    log.debug("  Issuer: " + cert.getIssuerDN());
    9
    log.debug("  Issuer: " + cert.getIssuerDN());
    Precondition Violations (0)
    Row Violation