public void includePattern(String[] regexp) { if (regexp != null && regexp.length > 0) { INCPTRN = regexp; this.PTRNFILTER = true; // now we create the compiled pattern and // add it to the arraylist for (int idx = 0; idx < INCPTRN.length; idx++) { this.INCPATTERNS.add(this.createPattern(INCPTRN[idx]));
public void excludePattern(String[] regexp) { if (regexp != null && regexp.length > 0) { EXCPTRN = regexp; this.PTRNFILTER = true; // now we create the compiled pattern and // add it to the arraylist for (int idx = 0; idx < EXCPTRN.length; idx++) { this.EXCPATTERNS.add(this.createPattern(EXCPTRN[idx]));
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: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void includePattern(String[] regexp) {
1
public void excludePattern(String[] regexp) {
2
		if (regexp != null && regexp.length > 0) {
2
		if (regexp != null && regexp.length > 0) {
3
			INCPTRN = regexp;
3
			EXCPTRN = regexp;
4
			this.PTRNFILTER = true;
4
			this.PTRNFILTER = true;
5
			// now we create the compiled pattern and
5
			// now we create the compiled pattern and
6
			// add it to the arraylist
6
			// add it to the arraylist
7
			for (int idx = 0; idx < INCPTRN.length; idx++) {
7
			for (int idx = 0; idx < EXCPTRN.length; idx++) {
8
				this.INCPATTERNS.add(this.createPattern(INCPTRN[idx]));
8
				this.EXCPATTERNS.add(this.createPattern(EXCPTRN[idx]));
9
			
9
			
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