public void setLine(String[] line) { List tempList; String[] h = getHeaders(); for (int count = 0; count < h.length; count++) { tempList = (List) data.get(h[count]); if (count < line.length && line[count].length() > 0) { tempList.add(line[count]); } else { tempList.add("N/A"); } } size++;
public void setLine(String[] line, String deflt) { List tempList; String[] h = getHeaders(); for (int count = 0; count < h.length; count++) { tempList = (List) data.get(h[count]); if (count < line.length && line[count].length() > 0) { tempList.add(line[count]); } else { tempList.add(deflt); } } size++;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/collections/Data.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
public void setLine(String[] line) {
1
public void setLine(String[] line, String deflt) {
2
		List tempList;
2
		List tempList;
3
		String[] h = getHeaders();
3
		String[] h = getHeaders();
4
		for (int count = 0; count < h.length; count++) {
4
		for (int count = 0; count < h.length; count++) {
5
			tempList = (List) data.get(h[count]);
5
			tempList = (List) data.get(h[count]);
6
			if (count < line.length && line[count].length() > 0) {
6
			if (count < line.length && line[count].length() > 0) {
7
				tempList.add(line[count]);
7
				tempList.add(line[count]);
8
			} else {
8
			} else {
9
				tempList.add("N/A");
9
				tempList.add(deflt);
10
			}
10
			}
11
		}
11
		}
12
		size++;
12
		size++;
13
	
13
	
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