public class Entity {
private Long id;
private String name;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
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;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/jmx/src/test/java/org/hibernate/jmx/Entity.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/component/basic/OptionalComponent.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class Entity {↵ | | 1 | public class ↵
|
2 | private Long id↵ | | 2 | OptionalComponent {↵
|
3 | ;↵ | | 3 | private String value1;↵
|
4 | private String name;↵ | | 4 | private String value2;↵
|
|
5 | public Long getId() {↵ | | 5 | public String getValue1() {↵
|
6 | return id;↵ | | 6 | return value1;↵
|
7 | }↵ | | 7 | }↵
|
|
8 | public void setId(Long id) {↵ | | 8 | public void set↵
|
9 | this.id = id↵ | | 9 | Value1(String value1) {↵
|
10 | ;↵ | | 10 | this.value1 = value1;↵
|
11 | }↵ | | 11 | }↵
|
|
12 | public String getName() {↵ | | 12 | public String getValue2() {↵
|
13 | return name;↵ | | 13 | return value2;↵
|
14 | }↵ | | 14 | }↵
|
|
15 | public void setName(String name) {↵ | | 15 | public void setValue2(String value2) {↵
|
16 | this.name = name;↵ | | 16 | this.value2 = value2;↵
|
17 | | | 17 |
|
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 |