data.next(); for (int i = 0; i < numColumns; i++) { Object o = rs.getObject(i + 1); if (o instanceof byte[]) { o = new String((byte[]) o); } data.addColumnValue(dbCols[i], o); }
data.next(); for (int i = 0; i < numColumns; i++) { Object o = rs.getObject(i + 1); if (o instanceof byte[]) { o = new String((byte[]) o); } data.addColumnValue(dbCols[i], o); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/collections/Data.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
data.next();
1
data.next();
2
			for (int i = 0; i < numColumns; i++) {
2
			for (int i = 0; i < numColumns; i++) {
3
				Object o = rs.getObject(i + 1);
3
				Object o = rs.getObject(i + 1);
4
				if (o instanceof byte[]) {
4
				if (o instanceof byte[]) {
5
					o = new String((byte[]) o);
5
					o = new String((byte[]) o);
6
				}
6
				}
7
				data.addColumnValue(dbCols[i], o);
7
				data.addColumnValue(dbCols[i], o);
8
			}
8
			}
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 location
Number of node comparisons0