File path: /jEdit-4.2/src/org/gjt/sp/jedit/io/VFS.java | File path: /jEdit-4.2/src/org/gjt/sp/jedit/io/VFS.java | |||
Method name: boolean save(View, Buffer, String)
|
Method name: boolean insert(View, Buffer, String)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if((getCapabilities() & WRITE_CAP) == 0)↵ | 1 | if((getCapabilities() & READ_CAP) == 0)↵ | |
2 | {↵ | 2 | {↵ | |
3 | VFSManager.error(view,path,"vfs.not-supported.save",new String[] { name });↵ | 3 | VFSManager.error(view,path,"vfs.not-supported.load",new String[] { name });↵ | |
4 | return false;↵ | 4 | return false;↵ | |
5 | }↵ | 5 | }↵ | |
6 | Object session = createVFSSession(path,view);↵ | 6 | Object session = createVFSSession(path,view);↵ | |
7 | if(session == null)↵ | 7 | if(session == null)↵ | |
8 | return false; | 8 |
| |
See real code fragment | See real code fragment |
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) | 1.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 21 |
Number of mapped statements | 6 |
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) | 2.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if ((getCapabilities() & WRITE_CAP) == 0) |
| 1 | if ((getCapabilities() & READ_CAP) == 0) | ||||||||||
2 | VFSManager.error(view, path, "vfs.not-supported.save", new String[] {name}); |
| 2 | VFSManager.error(view, path, "vfs.not-supported.load", new String[] {name}); | ||||||||||
3 | return false; | 3 | return false; | |||||||||||
4 | Object session = createVFSSession(path, view); | 4 | Object session = createVFSSession(path, view); | |||||||||||
5 | if (session == null) | 5 | if (session == null) | |||||||||||
6 | return false; | 6 | return false; |
Row | Violation |
---|