public class ChildEntity extends ChildValue implements Entity {
private Long id;
public ChildEntity() {
super();
}
public ChildEntity(String name) {
super( name );
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id
public class ChildWithManyToOne extends ChildEntity {
private ParentWithCollection parent;
public ChildWithManyToOne() {
}
public ChildWithManyToOne(String name) {
super( name );
}
public ParentWithCollection getParent() {
return parent;
}
public void setParent(ParentWithCollection parent) {
this.parent = parent
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/event/collection/ChildEntity.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/event/collection/association/bidirectional/onetomany/ChildWithManyToOne.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class ChildEntity extends ChildValue implements Entity {↵ | | 1 | public class ChildWithManyToOne extends ChildEntity {↵
|
2 | private Long id;↵ | | 2 | private ↵
|
|
3 | public ChildEntity() {↵ | | |
|
4 | super();↵ | | 3 | ParentWithCollection parent;↵
|
|
| | | 4 | public ChildWithManyToOne() {↵
|
5 | }↵ | | 5 | }↵
|
|
6 | public ChildEntity(String name) {↵ | | 6 | public ChildWithManyToOne(String name) {↵
|
7 | super( name );↵ | | 7 | super( name );↵
|
8 | }↵ | | 8 | }↵
|
|
9 | public Long getId() {↵ | | 9 | public ParentWithCollection getParent() {↵
|
10 | return id;↵ | | 10 | return parent;↵
|
11 | }↵ | | 11 | }↵
|
|
12 | public void setId(Long id) {↵ | | 12 | public void set↵
|
13 | this.id = id | | 13 | Parent(ParentWithCollection parent) {↵
|
| | | 14 | this.parent = parent
|
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 |