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;
public class Mono extends Top {
private Set strings;
/**
* Constructor for Mono.
* @param c
*/
public Mono(int c) {
super(c);
}
/**
* Constructor for Mono.
*/
public Mono() {
super();
}
/**
* Returns the strings.
* @return Set
*/
public Set getStrings() {
return strings;
}
/**
* Sets the strings.
* @param strings The strings to set
*/
public void setStrings(Set strings) {
this.strings = strings;
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/association/bidirectional/onetomany/ChildWithManyToOne.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Mono.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class ChildWithManyToOne extends ChildEntity {↵ | | 1 | public class ↵
|
2 | private ParentWithCollection parent;↵ | | |
|
|
3 | public ChildWithManyToOne() {↵ | | |
|
4 | }↵ | | |
|
|
5 | public ChildWithManyToOne(String name↵ | | 2 | Mono extends Top {↵
|
| | | 3 | ↵
|
| | | 4 | private Set strings;↵
|
|
| | | 5 | /**↵
|
| | | 6 | * Constructor for Mono.↵
|
| | | 7 | * @param c↵
|
| | | 8 | */↵
|
| | | 9 | public Mono(int c) {↵
|
| | | 10 | super(c);↵
|
| | | 11 | }↵
|
|
| | | 12 | /**↵
|
| | | 13 | * Constructor for Mono.↵
|
| | | 14 | */↵
|
6 | ) {↵ | | 15 | public Mono() {↵
|
7 | super( name );↵ | | 16 | super();↵
|
8 | }↵ | | 17 | }↵
|
|
9 | public ParentWithCollection getParent() {↵ | | 18 | ↵
|
10 | return parent;↵ | | |
|
11 | }↵ | | |
|
|
12 | public void setParent(ParentWithCollection parent↵ | | 19 | /**↵
|
| | | 20 | * Returns the strings.↵
|
| | | 21 | * @return Set↵
|
| | | 22 | */↵
|
| | | 23 | public Set getStrings() {↵
|
| | | 24 | return strings;↵
|
| | | 25 | }↵
|
|
| | | 26 | /**↵
|
| | | 27 | * Sets the strings.↵
|
| | | 28 | * @param strings The strings to set↵
|
| | | 29 | */↵
|
13 | ) {↵ | | 30 | public void setStrings(Set strings) {↵
|
14 | this.parent = parent;↵ | | 31 | this.strings = strings;↵
|
15 | | | 32 |
|
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 |