public class KeyManyToOneKeyEntity {
private Long id;
private String name;
public KeyManyToOneKeyEntity(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
public class Employee {
private String id;
public Employee() {
}
public Employee(String id) {
this.id = id;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/hql/KeyManyToOneKeyEntity.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/unconstrained/Employee.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class KeyManyToOneKeyEntity {↵ | | 1 | public class Employee {↵
|
| | | 2 | ↵
|
2 | private Long id;↵ | | 3 | private String id;↵
|
|
3 | private String name;↵ | | 4 | p↵
|
|
4 | public KeyManyToOneKeyEntity↵ | | 5 | ublic Employee() {↵
|
| | | 6 | }↵
|
|
5 | (String name) {↵ | | 7 | public Employee(String id) {↵
|
6 | this.name = name;↵ | | 8 | this.id = id;↵
|
7 | }↵ | | 9 | }↵
|
|
8 | public String getName() {↵ | | 10 | public String getId() {↵
|
9 | return name;↵ | | 11 | return id;↵
|
10 | }↵ | | 12 | }↵
|
| | | 13 | ↵
|
|
11 | public void setName(String name) {↵ | | 14 | public void setId(String id) {↵
|
12 | this.name = name;↵ | | 15 | this.id = id;↵
|
13 | | | 16 |
|
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 |