public class B extends A {
private int count;
private Map map;
private String bName = "B Name";
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public Map getMap() {
return map;
}
public void setMap(Map map) {
this.map = map;
}
public String getBName() {
return bName;
}
public void setBName(String name) {
bName = name
public class Blobber {
private int id;
private Blob blob;
private Clob clob;
/**
* Returns the blob.
* @return Blob
*/
public Blob getBlob() {
return blob;
}
/**
* Returns the clob.
* @return Clob
*/
public Clob getClob() {
return clob;
}
/**
* Returns the id.
* @return int
*/
public int getId() {
return id;
}
/**
* Sets the blob.
* @param blob The blob to set
*/
public void setBlob(Blob blob) {
this.blob = blob;
}
/**
* Sets the clob.
* @param clob The clob to set
*/
public void setClob(Clob clob) {
this.clob = clob;
}
/**
* Sets the id.
* @param id The id to set
*/
public void setId(int id) {
this.id = id
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/B.java
|
|
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Blobber.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | public class B extends A {↵ | | 1 | public class Blobber {↵
|
2 | private int count;↵ | | 2 | private int id;↵
|
3 | private Map map;↵ | | 3 | private Blob blob;↵
|
4 | private String bName = "B Name";↵ | | 4 | private ↵
|
5 | ↵ | | 5 | Clob clob;↵
|
| | | 6 | /**↵
|
| | | 7 | * Returns the blob.↵
|
| | | 8 | * @return Blob↵
|
| | | 9 | */↵
|
6 | public int getCount() {↵ | | 10 | public Blob getBlob() {↵
|
7 | return count;↵ | | 11 | return ↵
|
8 | }↵ | | |
|
9 | ↵ | | 12 | blob;↵
|
| | | 13 | }↵
|
|
| | | 14 | /**↵
|
| | | 15 | * Returns the clob.↵
|
| | | 16 | * @return Clob↵
|
| | | 17 | */↵
|
10 | public void setCount(int count) {↵ | | 18 | public ↵
|
11 | this.count = count;↵ | | |
|
12 | }↵ | | |
|
13 | ↵ | | 19 | Clob getClob() {↵
|
| | | 20 | return clob;↵
|
| | | 21 | }↵
|
|
| | | 22 | /**↵
|
| | | 23 | * Returns the id.↵
|
| | | 24 | * @return int↵
|
| | | 25 | */↵
|
14 | public Map getMap() {↵ | | 26 | public int getId() {↵
|
15 | return map;↵ | | 27 | return id;↵
|
16 | }↵ | | 28 | }↵
|
|
| | | 29 | /**↵
|
| | | 30 | * Sets the blob.↵
|
| | | 31 | * @param blob The blob to set↵
|
| | | 32 | */↵
|
17 | public void setMap(Map map) {↵ | | 33 | public void set↵
|
18 | this.map = map;↵ | | |
|
19 | }↵ | | |
|
|
20 | public String getBName() {↵ | | |
|
21 | return bName;↵ | | |
|
22 | }↵ | | |
|
| | | 34 | Blob(Blob blob) {↵
|
| | | 35 | this.blob = blob;↵
|
| | | 36 | }↵
|
|
| | | 37 | /**↵
|
| | | 38 | * Sets the clob.↵
|
| | | 39 | * @param clob The clob to set↵
|
| | | 40 | */↵
|
| | | 41 | public void setClob(Clob clob) {↵
|
| | | 42 | this.clob = clob;↵
|
| | | 43 | }↵
|
|
| | | 44 | /**↵
|
| | | 45 | * Sets the id.↵
|
| | | 46 | * @param id The id to set↵
|
| | | 47 | */↵
|
23 | public void setBName(String name) {↵ | | 48 | public void set↵
|
24 | bName = name | | 49 | Id(int id) {↵
|
| | | 50 | this.id = id
|
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 |