String getName() {
return getPropertyAsString(HNAME);
}
/**
* Set the name for this object.
*/
public synchronized void setName(String name) {
this.setProperty(HNAME, name);
}
/**
* Get the value for this object.
*/
public synchronized String getValue() {
return getPropertyAsString(VALUE);
}
String getFailure(){
return getPropertyAsString(FAILURE);
}
/**
* set the failure message
* @param fail
*/
public void setFailure(String fail){
setProperty(FAILURE,fail);
}
/**
* The failure code is used by other components
*/
public String getFailureCode(){
return getPropertyAsString(FAILURECODE);
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/Header.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 getName() {↵ | | 1 | String getFailure(){↵
|
2 | return getPropertyAsString(HNAME);↵ | | 2 | return getPropertyAsString(FAILURE);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Set the name for this object.↵ | | 5 | * set the ↵
|
6 | ↵ | | 6 | failure message↵
|
| | | 7 | * @param fail↵
|
7 | */↵ | | 8 | */↵
|
8 | public synchronized void setName(String name) {↵ | | 9 | public void setFailure(String ↵
|
9 | this.setProperty(HNAME, name);↵ | | |
|
10 | }↵ | | |
|
|
11 | /**↵ | | |
|
12 | * Get the va↵ | | 10 | fail){↵
|
| | | 11 | setProperty(FAILURE,fail);↵
|
| | | 12 | }↵
|
| | | 13 | ↵
|
| | | 14 | /**↵
|
13 | lue for this object.↵ | | 15 | * The failure ↵
|
14 | ↵ | | 16 | code is used by other components↵
|
15 | */↵ | | 17 | */↵
|
16 | public synchronized String getValue() {↵ | | 18 | public String getFailureCode(){↵
|
17 | return getPropertyAsString(VALUE);↵ | | 19 | return getPropertyAsString(FAILURECODE);↵
|
18 | } | | 20 | }
|
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 |