try { SSLSocketFactory sslfac = getSSLSocketFactory(); return sslfac.getDefaultCipherSuites(); } catch (IOException ex) { return new String[] {}; }
try { SSLSocketFactory sslfac = getSSLSocketFactory(); return sslfac.getSupportedCipherSuites(); } catch (IOException ex) { return new String[] {}; }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/HttpSSLProtocolSocketFactory.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/HttpSSLProtocolSocketFactory.java
Method name: String[] getDefaultCipherSuites() Method name: String[] getSupportedCipherSuites()
Number of AST nodes: 3 Number of AST nodes: 3
1
try {
1
try {
2
            SSLSocketFactory sslfac = getSSLSocketFactory();
2
            SSLSocketFactory sslfac = getSSLSocketFactory();
3
            return sslfac.getDefaultCipherSuites();
3
            return sslfac.getSupportedCipherSuites();
4
        } catch (IOException ex) {
4
        } catch (IOException ex) {
5
            return new String[] {};
5
            return new String[] {};
6
        }
6
		}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are declared in the same class
Number of node comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.1
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    try
    1
    try
    2
    SSLSocketFactory sslfac = getSSLSocketFactory();
    2
    SSLSocketFactory sslfac = getSSLSocketFactory();
    3
    return sslfac.getDefaultCipherSuites();
    3
    return sslfac.getDefaultCipherSuites();
    3
    return sslfac.getSupportedCipherSuites();
    Differences
    Expression1Expression2Difference
    getDefaultCipherSuitesgetSupportedCipherSuitesMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression sslfac.getDefaultCipherSuites() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression sslfac.getSupportedCipherSuites() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3
    return sslfac.getSupportedCipherSuites();
    Precondition Violations (2)
    Row Violation
    1Expression sslfac.getDefaultCipherSuites() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression sslfac.getSupportedCipherSuites() cannot be parameterized, because it has dependencies to/from statements that will be extracted