public class Assignable {
private String id;
private Collection categories;
public Collection getCategories() {
return categories;
}
public String getId() {
return id;
}
public void setCategories(Collection collection) {
categories = collection;
}
public void setId(String string) {
id = string;
public class Component {
private String _name;
private SubComponent _subComponent;
/**
* @return
*/
public String getName() {
return _name;
}
/**
* @param string
*/
public void setName(String string) {
_name = string;
}
/**
* @return
*/
public SubComponent getSubComponent() {
return _subComponent;
}
/**
* @param component
*/
public void setSubComponent(SubComponent component) {
_subComponent = component;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Assignable.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Component.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Assignable {↵ | | 1 | public class ↵
|
2 | private String id;↵ | | |
|
3 | private Collection categories;↵ | | |
|
|
4 | public Collection getCategories() {↵ | | |
|
5 | return categories;↵ | | |
|
6 | }↵ | | |
|
|
7 | public String getId() {↵ | | |
|
8 | return id;↵ | | |
|
9 | }↵ | | |
|
|
10 | public void setCategories(Collection collection) {↵ | | |
|
11 | categories = collection;↵ | | |
|
12 | }↵ | | |
|
|
13 | public void setId(String string) {↵ | | |
|
14 | id = string;↵ | | |
|
15 | | | 2 | Component {↵
|
| | | 3 | private String _name;↵
|
| | | 4 | ↵
|
| | | 5 | private SubComponent _subComponent;↵
|
|
| | | 6 | /**↵
|
| | | 7 | * @return↵
|
| | | 8 | */↵
|
| | | 9 | public String getName() {↵
|
| | | 10 | return _name;↵
|
| | | 11 | }↵
|
|
| | | 12 | /**↵
|
| | | 13 | * @param string↵
|
| | | 14 | */↵
|
| | | 15 | public void setName(String string) {↵
|
| | | 16 | _name = string;↵
|
| | | 17 | }↵
|
|
| | | 18 | /**↵
|
| | | 19 | * @return↵
|
| | | 20 | */↵
|
| | | 21 | public SubComponent getSubComponent() {↵
|
| | | 22 | return _subComponent;↵
|
| | | 23 | }↵
|
|
| | | 24 | /**↵
|
| | | 25 | * @param component↵
|
| | | 26 | */↵
|
| | | 27 | public void setSubComponent(SubComponent component) {↵
|
| | | 28 | _subComponent = component;↵
|
| | | 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 |