this.USEFILE = true; boolean exc = false; for (int idx = 0; idx < this.EXCFILE.length; idx++) { if (text.indexOf(this.EXCFILE[idx]) > -1) { exc = true; this.USEFILE = false; break; } } return exc;
this.USEFILE = true; boolean exc = false; for (int idx = 0; idx < this.EXCPATTERNS.size(); idx++) { if (JMeterUtils.getMatcher().contains(text, (Pattern) this.EXCPATTERNS.get(idx))) { exc = true; this.USEFILE = false; break; } } return exc;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/util/accesslog/LogFilter.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/util/accesslog/LogFilter.java
Method name: boolean excFile(String) Method name: boolean excPattern(String)
Number of AST nodes: 8 Number of AST nodes: 8
1
this.USEFILE = true;
1
this.USEFILE = true;
2
		boolean exc = false;
2
		boolean exc = false;
3
		for (int idx = 0; idx < this.EXCFILE.length; idx++) {
3
		for (int idx = 0; idx < this.EXCPATTERNS.size(); idx++) {
4
			if (text.indexOf(this.EXCFILE[idx]) > -1) {
4
			if (JMeterUtils.getMatcher().contains(text, (Pattern) this.EXCPATTERNS.get(idx))) {
5
				exc = true;
5
				exc = true;
6
				this.USEFILE = false;
6
				this.USEFILE = false;
7
				break;
7
				break;
8
			}
8
			}
9
		}
9
		}
10
		return exc;
10
		return exc;
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.1
Clones locationClones are declared in the same class
Number of node comparisons1