for (int i = 0; i < string.length(); i++) {
if (!Character.isDigit(string.charAt(i))) {
return false;
}
}
if ((t.getDefaultValue() != null) && (getDefaultValue() != null)) {
if (!t.getDefaultValue().equals(getDefaultValue())) {
return false;
}
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/config/ProxyConfigurationDialog.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/context/base/AttributeType.java
|
Method name: boolean ensureDigits(String)
|
|
Method name: boolean equals(Object)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | for (int i = 0; i < string.length(); i++) {↵ | | |
|
2 | if (!Character.isDigit(string.charAt(i))) {↵ | | |
|
3 | return false;↵ | | |
|
4 | }↵ | | |
|
5 | ↵ | | 1 | if ((t.getDefaultValue() != null) && (getDefaultValue() != null)) {↵
|
| | | 2 | if (!t.getDefaultValue().equals(getDefaultValue())) {↵
|
| | | 3 | return false;↵
|
| | | 4 | }↵
|
6 | } | | 5 | }
|
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |