public class OptionalComponent {
private String value1;
private String value2;
public String getValue1() {
return value1;
}
public void setValue1(String value1) {
this.value1 = value1;
}
public String getValue2() {
return value2;
}
public void setValue2(String value2) {
this.value2 = value2;
public static final class Component {
private Calendar cal;
private Float floaty;
/**
* Returns the cal.
* @return Calendar
*/
public Calendar getCal() {
return cal;
}
/**
* Sets the cal.
* @param cal The cal to set
*/
public void setCal(Calendar cal) {
this.cal = cal;
}
/**
* Returns the floaty.
* @return Float
*/
public Float getFloaty() {
return floaty;
}
/**
* Sets the floaty.
* @param floaty The floaty to set
*/
public void setFloaty(Float floaty) {
this.floaty = floaty;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/component/basic/OptionalComponent.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Multi.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class OptionalComponent {↵ | | 1 | public static final class Component {↵
|
2 | private String value1;↵ | | 2 | private Calendar cal;↵
|
3 | private String value2;↵ | | 3 | private ↵
|
|
4 | public String↵ | | 4 | Float floaty;↵
|
| | | 5 | /**↵
|
| | | 6 | * Returns the cal.↵
|
| | | 7 | * @return Calendar↵
|
| | | 8 | */↵
|
5 | getValue1() {↵ | | 9 | public Calendar getCal() {↵
|
6 | return value1;↵ | | 10 | return cal;↵
|
7 | }↵ | | 11 | }↵
|
|
| | | 12 | ↵
|
| | | 13 | /**↵
|
| | | 14 | * Sets the cal.↵
|
| | | 15 | * @param cal The cal to set↵
|
| | | 16 | */↵
|
8 | public void setValue1(String value1) {↵ | | 17 | public void setCal(Calendar cal) {↵
|
9 | this.value1 = value1;↵ | | 18 | this.cal = cal↵
|
10 | }↵ | | |
|
|
| | | 19 | ;↵
|
| | | 20 | }↵
|
| | | 21 | ↵
|
| | | 22 | /**↵
|
| | | 23 | * Returns the floaty.↵
|
| | | 24 | * @return Float↵
|
| | | 25 | */↵
|
11 | public String getValue2() {↵ | | 26 | public Float getFloaty() {↵
|
12 | return value2;↵ | | 27 | return floaty;↵
|
13 | }↵ | | 28 | }↵
|
|
14 | public void setValue2(String value2↵ | | 29 | ↵
|
| | | 30 | /**↵
|
| | | 31 | * Sets the floaty.↵
|
| | | 32 | * @param floaty The floaty to set↵
|
| | | 33 | */↵
|
15 | ) {↵ | | 34 | public void setFloaty(Float floaty) {↵
|
16 | this.value2 = value2;↵ | | 35 | this.floaty = floaty;↵
|
17 | | | 36 |
|
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 |