String getVarName() {
return getPropertyAsString(VAR_NAME);
}
public void setFormat(String format) {
setProperty(FORMAT, format);
}
public String getFormat() {
return getPropertyAsString(FORMAT);
String getMatchNumberAsString() {
return getPropertyAsString(MATCH_NUMBER);
}
/**
* Sets the value of the variable if no matches are found
*
* @param defaultValue
*/
public void setDefaultValue(String defaultValue) {
setProperty(DEFAULT, defaultValue);
}
public String getDefaultValue() {
return getPropertyAsString(DEFAULT);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/modifiers/CounterConfig.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/RegexExtractor.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | String getVarName() {↵ | | 1 | String getMatchNumberAsString() {↵
|
2 | return getPropertyAsString(VAR_NAME);↵ | | 2 | return getPropertyAsString(↵
|
3 | }↵ | | |
|
|
4 | ↵ | | 3 | MATCH_NUMBER);↵
|
| | | 4 | }↵
|
|
| | | 5 | /**↵
|
| | | 6 | * Sets the value of the variable if no matches are found↵
|
| | | 7 | * ↵
|
| | | 8 | * @param defaultValue↵
|
| | | 9 | */↵
|
5 | public void setFormat(String format) {↵ | | 10 | public void set↵
|
6 | ↵ | | 11 | DefaultValue(String defaultValue) {↵
|
7 | setProperty(FORMAT, format);↵ | | 12 | setProperty(↵
|
8 | ↵ | | 13 | DEFAULT, defaultValue);↵
|
9 | }↵ | | 14 | }↵
|
|
10 | public String getFormat() {↵ | | 15 | public String get↵
|
11 | ↵ | | 16 | DefaultValue() {↵
|
12 | return getPropertyAsString(FORMAT);↵ | | 17 | return getPropertyAsString(DEFAULT);↵
|
13 | | | 18 |
|
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.0 |
Clones location | |
Number of node comparisons | 0 |