public class VirtualItem {
private IContactStorage parentStore;
private String parentId;
public VirtualItem(IContactStorage parentStore, String parentId) {
this.parentStore = parentStore;
this.parentId = parentId;
}
public String getParentId() {
return parentId;
}
public IContactStorage getParentStore() {
return parentStore;
public class Profile {
private String name;
private File location;
public Profile(String name, File location) {
this.name = name;
this.location = location;
}
/**
* @return Returns the location.
*/
public File getLocation() {
return location;
}
/**
* @return Returns the name.
*/
public String getName() {
return name;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/folder/virtual/VirtualItem.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/profiles/Profile.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class VirtualItem {↵ | | 1 | public class Profile {↵
|
|
2 | private IContactStorage parentStore;↵ | | 2 | private String name;↵
|
|
3 | private String parentId;↵ | | 3 | private File location;↵
|
4 | ↵ | | |
|
5 | public VirtualItem(IContactStorage parentStore, String parentId) {↵ | | 4 | public ↵
|
6 | this.parentStore = parentStore;↵ | | |
|
7 | this.parentId = parentId;↵ | | |
|
8 | }↵ | | |
|
| | | 5 | Profile(String name, File location) {↵
|
| | | 6 | this.name = name;↵
|
| | | 7 | this.location = location;↵
|
| | | 8 | }↵
|
|
| | | 9 | /**↵
|
| | | 10 | * @return Returns the location.↵
|
| | | 11 | */↵
|
9 | public String getParentId() {↵ | | 12 | public ↵
|
10 | return parentId;↵ | | |
|
11 | }↵ | | |
|
| | | 13 | File getLocation() {↵
|
| | | 14 | return location;↵
|
| | | 15 | }↵
|
|
| | | 16 | /**↵
|
| | | 17 | * @return Returns the name.↵
|
| | | 18 | */↵
|
12 | public IContactStorage getParentStore() {↵ | | 19 | public String getName() {↵
|
13 | return parentStore;↵ | | 20 | return name;↵
|
14 | | | 21 |
|
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 |