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
public class Customer extends Person {
private Employee contactOwner;
public Customer() {
}
public Customer(String name) {
super( name );
}
public Employee getContactOwner() {
return contactOwner;
}
public void setContactOwner(Employee contactOwner) {
this.contactOwner = contactOwner
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Mono.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/subclassfilter/Customer.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Mono extends Top {↵ | | 1 | public class Customer extends ↵
|
2 | ↵ | | 2 | Person {↵
|
3 | private Set strings;↵ | | 3 | private ↵
|
|
4 | /**↵ | | |
|
5 | * Constructor for Mono.↵ | | |
|
6 | * @param c↵ | | |
|
7 | */↵ | | |
|
8 | public Mono(int c) {↵ | | |
|
9 | super(c);↵ | | |
|
10 | }↵ | | |
|
|
11 | /**↵ | | |
|
12 | * Constructor for Mono.↵ | | |
|
13 | */↵ | | |
|
14 | public Mono() {↵ | | |
|
15 | super();↵ | | |
|
16 | }↵ | | |
|
|
17 | /**↵ | | |
|
18 | * Returns the strings.↵ | | |
|
19 | * @return Set↵ | | |
|
20 | */↵ | | |
|
21 | public Set getStrings() {↵ | | |
|
22 | return strings;↵ | | |
|
23 | }↵ | | |
|
|
24 | /**↵ | | |
|
25 | * Sets the strings.↵ | | |
|
26 | * @param strings The strings to set↵ | | |
|
27 | */↵ | | |
|
28 | public void setStrings(Set strings) {↵ | | |
|
29 | this.strings = strings | | 4 | Employee contactOwner;↵
|
|
| | | 5 | public Customer() {↵
|
| | | 6 | }↵
|
|
| | | 7 | public Customer(String name) {↵
|
| | | 8 | super( name );↵
|
| | | 9 | }↵
|
|
| | | 10 | public Employee getContactOwner() {↵
|
| | | 11 | return contactOwner;↵
|
| | | 12 | }↵
|
|
| | | 13 | public void setContactOwner(Employee contactOwner) {↵
|
| | | 14 | this.contactOwner = contactOwner
|
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 |