this.USEFILE = false;
for (int idx = 0; idx < this.INCPATTERNS.size(); idx++) {
if (JMeterUtils.getMatcher().contains(text, (Pattern) this.INCPATTERNS.get(idx))) {
this.USEFILE = true;
break;
}
}
return this.USEFILE;
this.USEFILE = false;
for (int idx = 0; idx < this.INCFILE.length; idx++) {
if (text.indexOf(this.INCFILE[idx]) > -1) {
this.USEFILE = true;
break;
}
}
return this.USEFILE;
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 incPattern(String)
|
|
Method name: boolean incFile(String)
|
Number of AST nodes: 6
|
|
Number of AST nodes: 6
|
|
1 | this.USEFILE = false;↵ | | 1 | this.USEFILE = false;↵
|
2 | for (int idx = 0; idx < this.INCPATTERNS.size(); idx++) {↵ | | 2 | for (int idx = 0; idx < this.INCFILE.length; idx++) {↵
|
3 | if (JMeterUtils.getMatcher().contains(text, (Pattern) this.INCPATTERNS.get(idx))) {↵ | | 3 | if (text.indexOf(this.INCFILE[idx]) > -1) {↵
|
4 | this.USEFILE = true;↵ | | 4 | this.USEFILE = true;↵
|
5 | break;↵ | | 5 | break;↵
|
6 | }↵ | | 6 | }↵
|
7 | }↵ | | 7 | }↵
|
8 | return this.USEFILE; | | 8 | return this.USEFILE;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 1 |