String getLocalHostName(){
if (localHostName == null) {
getLocalHostDetails();
}
return localHostName;
}
public static synchronized String getLocalHostFullName(){
if (localHostFullName == null) {
getLocalHostDetails();
}
return localHostFullName;
}
String getLocalHostIP(){
if (localHostIP == null) {
getLocalHostDetails();
}
return localHostIP;
}
public static synchronized String getLocalHostName(){
if (localHostName == null) {
getLocalHostDetails();
}
return localHostName;
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/JMeterUtils.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/JMeterUtils.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | String getLocalHostName(){↵ | | 1 | String getLocalHostIP(){↵
|
2 | if (localHostName == null) {↵ | | 2 | if (localHostIP == null) {↵
|
3 | getLocalHostDetails();↵ | | 3 | getLocalHostDetails();↵
|
4 | }↵ | | 4 | }↵
|
5 | return localHostName;↵ | | 5 | return localHostIP;↵
|
6 | }↵ | | 6 | }↵
|
|
7 | public static synchronized String getLocalHostFullName(){↵ | | 7 | public static synchronized String getLocalHostName(){↵
|
8 | if (localHostFullName == null) {↵ | | 8 | if (localHostName == null) {↵
|
9 | getLocalHostDetails();↵ | | 9 | getLocalHostDetails();↵
|
10 | }↵ | | 10 | }↵
|
11 | return localHostFullName;↵ | | 11 | return localHostName;↵
|
12 | } | | 12 | }
|
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 |