public class Note {
private Long id;
private String description;
public Note() {
}
public Note(String description) {
this.description = description;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description
public class Competitor {
public Integer id;
private String name;
public Competitor() {
}
public Competitor(String name) {
this.name = name;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/deletetransient/Note.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/ops/Competitor.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Note {↵ | | 1 | public class ↵
|
2 | private Long↵ | | 2 | Competitor {↵
|
3 | id;↵ | | 3 | public Integer id;↵
|
4 | private String description;↵ | | 4 | private String name;↵
|
|
|
5 | public Note() {↵ | | 5 | public Competitor() {↵
|
6 | }↵ | | 6 | }↵
|
|
7 | public Note(String description) {↵ | | 7 | public ↵
|
8 | this.description = description↵ | | 8 | Competitor(String name) {↵
|
9 | ;↵ | | 9 | this.name = name;↵
|
10 | }↵ | | 10 | }↵
|
|
11 | public Long getId() {↵ | | 11 | public Integer getId() {↵
|
12 | return id;↵ | | 12 | return id;↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public void setId(Long id) {↵ | | 14 | public void setId(Integer id) {↵
|
15 | this.id = id;↵ | | 15 | this.id = id;↵
|
16 | }↵ | | 16 | }↵
|
|
17 | public String getDescription() {↵ | | 17 | public String getName() {↵
|
18 | return description;↵ | | 18 | return name;↵
|
19 | }↵ | | 19 | }↵
|
|
20 | public void setDescription(String description) {↵ | | 20 | public void set↵
|
21 | this.description = description | | 21 | Name(String name) {↵
|
| | | 22 | this.name = name
|
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 |