public class Address {
private Long id;
private Set lines = new HashSet();
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Set getLines() {
return lines;
}
public void setLines(Set lines) {
this.lines = lines;
public abstract class ItemImpl implements Item {
private Long id;
private String name;
/**
* @return Returns the id.
*/
public Long getId() {
return id;
}
/**
* @param id The id to set.
*/
public void setId(Long id) {
this.id = id;
}
/**
* @return Returns the name.
*/
public String getName() {
return name;
}
/**
* @param name The name to set.
*/
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/any/Address.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/interfaceproxy/ItemImpl.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Address {
↵ | | 1 | public abstract class ItemImpl implements Item {↵
|
2 | private Long id;
↵ | | 2 | private Long id;↵
|
3 | private Set lines = new HashSet();↵ | | 3 | private S↵
|
4 |
↵ | | 4 | tring name;↵
|
| | | 5 | /**↵
|
| | | 6 | * @return Returns the id.↵
|
| | | 7 | */↵
|
5 | public Long getId() {
↵ | | 8 | public Long getId() {↵
|
6 | return id;
↵ | | 9 | return id;↵
|
7 | }↵ | | 10 | }↵
|
8 |
↵ | | |
|
| | | 11 | /**↵
|
| | | 12 | * @param id The id to set.↵
|
| | | 13 | */↵
|
9 | public void setId(Long id) {
↵ | | 14 | public void setId(Long id) {↵
|
10 | this.id = id;
↵ | | 15 | this.id = id;↵
|
11 | }↵ | | 16 | }↵
|
12 |
↵ | | |
|
| | | 17 | /**↵
|
| | | 18 | * @return Returns the name.↵
|
| | | 19 | */↵
|
13 | public Set getLines() {
↵ | | 20 | public String getName() {↵
|
14 | return lines;↵ | | 21 | return ↵
|
15 | }↵ | | |
|
16 |
↵ | | 22 | name;↵
|
| | | 23 | }↵
|
| | | 24 | /**↵
|
| | | 25 | * @param name The name to set.↵
|
| | | 26 | */↵
|
17 | public void setLines(Set lines) {
↵ | | 27 | public void setName(String name) {↵
|
18 | this.lines = lines;
↵ | | 28 | this.name = name;↵
|
19 | | | 29 |
|
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 |