if(nr != 4) { channel.close(); channel = null; throw new IOException("Connection Closed: "+nr); }
while(it.hasNext()){ ResourceLimitingJdbcDataSource dsc = (ResourceLimitingJdbcDataSource)it.next(); log.debug("Disposing pool: "+dsc.getInstrumentableName()+" @"+System.identityHashCode(dsc)); dsc.dispose(); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/AjpSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java
Method name: int getMessage() Method name: void testEnded()
Number of AST nodes: 4 Number of AST nodes: 4
1
if(nr != 4) {
2
            channel.close();
3
            channel = null;
4
            throw new IOException("Connection Closed: "+nr);
5
        
1
while(it.hasNext()){
2
				ResourceLimitingJdbcDataSource dsc = (ResourceLimitingJdbcDataSource)it.next();
3
				log.debug("Disposing pool: "+dsc.getInstrumentableName()+" @"+System.identityHashCode(dsc));
4
				dsc.dispose();
6
}
5
			}
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons1