File path: /jEdit-4.2/src/org/gjt/sp/jedit/pluginmgr/PluginList.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/pluginmgr/PluginList.java | |||
Method name: boolean isSatisfied()
|
Method name: boolean isSatisfied()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if((from == null || MiscUtilities.compareStrings(↵ | 1 | if((from == null || MiscUtilities.compareStrings(↵ | |
2 | javaVersion,from,false) >= 0)↵ | 2 | build,from,false) >= 0)↵ | |
3 | &&↵ | 3 | &&↵ | |
4 | (to == null || MiscUtilities.compareStrings(↵ | 4 | (to == null || MiscUtilities.compareStrings(↵ | |
5 | javaVersion,to,false) <= 0))↵ | 5 | build,to,false) <= 0))↵ | |
6 | return true;↵ | 6 | return true;↵ | |
7 | else↵ | 7 | else↵ | |
8 | return false; | 8 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.8 |
Clones location | Clones are in the same method |
Number of node comparisons | 10 |
Number of mapped statements | 3 |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9 | if ((from == null || MiscUtilities.compareStrings(javaVersion, from, false) >= 0) && (to == null || MiscUtilities.compareStrings(javaVersion, to, false) <= 0)) |
| 14 | if ((from == null || MiscUtilities.compareStrings(build, from, false) >= 0) && (to == null || MiscUtilities.compareStrings(build, to, false) <= 0)) | |||||||||||||
10 | return true; |
| 15 | return true; | |||||||||||||
else | else | ||||||||||||||||
11 | return false; |
| 16 | return false; |
Row | Violation |
---|---|
1 | Conditional return false; |
2 | Conditional return false; |
3 | Conditional return true; |
4 | Conditional return true; |