public static final class Ternary { private String name; private Foo foo; private Glarch glarch; /** * Returns the foo. * @return Foo */ public Foo getFoo() { return foo; } /** * Returns the glarch. * @return Glarch */ public Glarch getGlarch() { return glarch; } /** * Returns the name. * @return String */ public String getName() { return name; } /** * Sets the foo. * @param foo The foo to set */ public void setFoo(Foo foo) { this.foo = foo; } /** * Sets the glarch. * @param glarch The glarch to set */ public void setGlarch(Glarch glarch) { this.glarch = glarch; } /** * Sets the name. * @param name The name to set */ public void setName(String name) { this.name = name
public class Person { private Long id; private String name; private BankAccount bankAccount; /** * @return Returns the id. */ public Long getId() { return id; } /** * @param id The id to set. */ public void setId(Long id) { this.id = id; } /** * @return Returns the name. */ public String getName() { return name; } /** * @param name The name to set. */ public void setName(String name) { this.name = name; } public BankAccount getBankAccount() { return bankAccount; } public void setBankAccount(BankAccount bankAccount) { this.bankAccount = bankAccount
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/legacy/Container.java File path: /hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/propertyref/inheritence/joined/Person.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public static final class Ternary {
1
public class Person {
2
		private String name;
2
	private 
3
		private Foo foo;
3
Long id;
4
	private String name;
4
		private Glarch glarch;
5
	private BankAccount bankAccount;
6

5
		/**
7
	/**
6
		 * Returns the foo.
8
	 * @return Returns the 
7
		 * @return Foo
8
	
9
id.
9
	 */
10
	 */
10
		public Foo getFoo() {
11
	public Long getId() {
11
			return foo;
12
		return 
12
		}
13
		
14
	
13
id;
14
	}
15
	/**
15
	/**
16
		 * Returns the glarch.
16
	 * 
17
		 * @return Glarch
17
@param id The id to set.
18
		 */
18
	 */
19
		public Glarch getGlarch() {
19
	public void setId(Long id) {
20
			return glarch;
20
		
21
		}
22
		
23
	
21
this.id = id;
22
	}
24
	/**
23
	/**
25
		 * Returns the name.
24
	 * @return Returns the name.
26
		 * @return String
27
		 */
25
	 */
28
		public String getName() {
26
	public String getName() {
29
			return name;
27
		return name;
30
		}
28
	
31
		
32
		/**
33
		 * Sets the foo.
34
	
29
}
30
	/**
35
	 * @param foo The foo to set
31
	 * @param name The name to set.
36
		 */
32
	 */
37
		public void setFoo(Foo foo) {
33
	public void setName(String name) {
38
			this.foo = foo;
34
		this.
39
		}
40
		
41
		/**
42
		 * Sets the glarch.
43
		 * @param glarch The glarch to set
44
		 */
45
		public void setGlarch(Glarch glarch) {
46
			this.glarch = glarch;
47
		}
48
		
49
		/**
50
		 * Sets the name.
51
		 * @param name The name to set
52
		 */
53
		public void setName(String name
35
name = name;
36
	}
37
	public BankAccount getBankAccount() {
38
		return bankAccount;
39
	}
54
) {
40
	public void setBankAccount(BankAccount bankAccount) {
55
			this.name = name
41
		this.bankAccount = bankAccount
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0