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
public class TagEvent implements ITagEvent {
private Object source;
private String id;
public TagEvent(Object source, String id) {
this.source = source;
this.id = id;
}
public String getId() {
return id;
}
public Object getSource() {
return source
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/profiles/Profile.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/tagging/TagEvent.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Profile {↵ | | 1 | public class TagEvent implements ITagEvent {↵
|
|
2 | private String name;↵ | | 2 | private Object source;↵
|
|
3 | private File location;↵ | | 3 | private String id;↵
|
| | | 4 | ↵
|
4 | public Profile(String name, File location) {↵ | | 5 | public ↵
|
5 | this.name = name;↵ | | |
|
6 | this.location = location;↵ | | |
|
7 | }↵ | | |
|
|
8 | /**↵ | | |
|
9 | * @return Returns the location.↵ | | |
|
10 | */↵ | | |
|
11 | public File getLocation() {↵ | | |
|
12 | return location;↵ | | |
|
13 | }↵ | | |
|
|
14 | /**↵ | | |
|
15 | * @return Returns the name.↵ | | |
|
16 | */↵ | | |
|
17 | public String getNam↵ | | 6 | TagEvent(Object source, String id) {↵
|
| | | 7 | this.source = source;↵
|
| | | 8 | this.id = id;↵
|
| | | 9 | }↵
|
|
| | | 10 | public String getId() {↵
|
| | | 11 | return id;↵
|
| | | 12 | }↵
|
|
18 | e() {↵ | | 13 | public Object getSource() {↵
|
19 | return name | | 14 | return source
|
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 |