public class StringPropertyValue implements PropertyValue {
private Long id;
private String value;
public StringPropertyValue() {
}
public StringPropertyValue(String value) {
this.value = value;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String asString() {
return value;
public class ParentInfo {
private Long id;
private Parent owner;
private String info;
public ParentInfo() {
}
public ParentInfo(String info) {
this.info = info;
}
public Long getId() {
return id;
}
public Parent getOwner() {
return owner;
}
public void setOwner(Parent owner) {
this.owner = owner;
}
public String getInfo() {
return info;
}
public void setInfo(String info) {
this.info = info;
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/any/StringPropertyValue.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/jpa/cascade/ParentInfo.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class StringPropertyValue implements PropertyValue {↵ | | 1 | public class ParentInfo {↵
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | ↵ | | 3 | private Parent owner;↵
|
4 | private String value;↵ | | 4 | private String info;↵
|
|
5 | public StringPropertyValue() {↵ | | 5 | public ParentInfo() {↵
|
6 | }↵ | | 6 | }↵
|
|
7 | public StringPropertyValue(String value) {↵ | | 7 | public ParentInfo(String info) {↵
|
8 | this.value = value;↵ | | 8 | this.info = info;↵
|
9 | }↵ | | 9 | }↵
|
|
10 | public Long getId() {↵ | | 10 | public Long getId() {↵
|
11 | return id;↵ | | 11 | return id;↵
|
12 | }↵ | | 12 | }↵
|
|
13 | public void setId(Long id) {↵ | | 13 | public ↵
|
14 | this.id = id;↵ | | |
|
15 | }↵ | | |
|
|
16 | public String getValue() {↵ | | |
|
17 | return value↵ | | 14 | Parent getOwner() {↵
|
| | | 15 | return owner;↵
|
| | | 16 | }↵
|
|
| | | 17 | public void setOwner(Parent owner) {↵
|
18 | ;↵ | | 18 | this.owner = owner;↵
|
19 | }↵ | | 19 | }↵
|
|
20 | public void setValue(String value) {↵ | | 20 | public ↵
|
21 | this.value = value↵ | | 21 | String getInfo() {↵
|
22 | ;↵ | | 22 | return info;↵
|
23 | }↵ | | 23 | }↵
|
|
24 | public String asString() {↵ | | 24 | public ↵
|
25 | return value↵ | | 25 | void setInfo(String info) {↵
|
26 | ;↵ | | 26 | this.info = info;↵
|
27 | | | 27 |
|
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 |