if (!infoFile.exists()) {
infoFile = new File(pluginDirectory, "readme.txt");
}
if (!infoFile.exists()) {
infoFile = new File(pluginDirectory, "Readme.html");
}
if (!infoFile.exists()) {
infoFile = new File(pluginDirectory, "Readme.html");
}
if (!infoFile.exists()) {
infoFile = new File(pluginDirectory, "Readme.txt");
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/plugin/PluginManager.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/plugin/PluginManager.java
|
Method name: URL getInfoURL(String)
|
|
Method name: URL getInfoURL(String)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if (!infoFile.exists()) {↵ | | 1 | if (!infoFile.exists()) {↵
|
2 | infoFile = new File(pluginDirectory, "readme.txt");↵ | | 2 | infoFile = new File(pluginDirectory, "Readme.html");↵
|
3 | }↵ | | 3 | }↵
|
|
4 | if (!infoFile.exists()) {↵ | | 4 | if (!infoFile.exists()) {↵
|
5 | infoFile = new File(pluginDirectory, "Readme.html");↵ | | 5 | infoFile = new File(pluginDirectory, "Readme.txt");↵
|
6 | } | | 6 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 14 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.7 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
7 | if (!infoFile.exists()) | | 9 | if (!infoFile.exists()) |
8 | infoFile = new File(pluginDirectory, "readme.txt"); | | 10 | infoFile = new File(pluginDirectory, "Readme.html"); |
9 | if (!infoFile.exists()) | | 11 | if (!infoFile.exists()) |
10 | infoFile = new File(pluginDirectory, "Readme.html"); | | 12 | infoFile = new File(pluginDirectory, "Readme.txt"); |
Precondition Violations (0)
Row |
Violation |