String getValue() {
return getPropertyAsString(VALUE);
}
/**
* set the value for this object.
*/
public synchronized void setValue(String value) {
this.setProperty(VALUE, value);
}
/**
* get the domain for this object.
*/
public synchronized String getDomain() {
return getPropertyAsString(DOMAIN);
}
String getSuccess(){
return getPropertyAsString(SUCCESS);
}
/**
* set the success message
* @param success
*/
public void setSuccess(String success){
setProperty(SUCCESS,success);
}
/**
* get the success code defined by the user
*/
public String getSuccessCode(){
return getPropertyAsString(SUCCESSCODE);
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/Cookie.java
|
|
File path: /jakarta-jmeter-2.3.2/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | String getValue() {↵ | | 1 | String getSuccess(){↵
|
2 | return getPropertyAsString(VALUE);↵ | | 2 | return getPropertyAsString(↵
|
3 | }↵ | | |
|
|
4 | ↵ | | 3 | SUCCESS);↵
|
| | | 4 | }↵
|
| | | 5 | ↵
|
5 | /**↵ | | 6 | /**↵
|
6 | * set the value for this object.↵ | | 7 | * set the ↵
|
7 | ↵ | | 8 | success message↵
|
| | | 9 | * @param success↵
|
8 | */↵ | | 10 | */↵
|
9 | public synchronized void setValue(String value) {↵ | | 11 | public void setSuccess(String ↵
|
10 | this.setProperty(VALUE, value);↵ | | |
|
11 | }↵ | | |
|
|
12 | ↵ | | 12 | success){↵
|
| | | 13 | setProperty(SUCCESS,success);↵
|
| | | 14 | }↵
|
| | | 15 | ↵
|
13 | /**↵ | | 16 | /**↵
|
14 | * get the domain for this object.↵ | | 17 | * get the ↵
|
15 | ↵ | | 18 | success code defined by the user↵
|
16 | */↵ | | 19 | */↵
|
17 | public synchronized String getDomain() {↵ | | 20 | public String getSuccessCode(){↵
|
18 | return getPropertyAsString(DOMAIN);↵ | | 21 | return getPropertyAsString(↵
|
19 | ↵ | | 22 | SUCCESSCODE);↵
|
20 | } | | 23 | }
|
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 |