public boolean equals(Object rhs) { boolean rc = false; if (rhs != null && rhs.getClass().equals(getClass())) { rc = ((IntegerIdentifier)rhs).toString().equals(toString()); } return rc;
public boolean equals(Object rhs) { boolean rc = false; if (rhs != null && rhs.getClass().equals(getClass())) { rc = ((UidIdentifier)rhs).toString().equals(toString()); } return rc;
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/id/IntegerIdentifier.java File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/id/UidIdentifier.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public boolean equals(Object rhs)
1
public boolean equals(Object rhs)
2
	{
3
		
2
   {
4
boolean rc = false;
3
      boolean rc = false;
5
		if (rhs != null && rhs.getClass().equals(getClass()))
4
      if (rhs != null && rhs.getClass().equals(getClass()))
6
		{
7
			rc = ((Integer
5
      {
8
Identifier)rhs).toString().equals(toString());
6
         rc = ((UidIdentifier)rhs).toString().equals(toString());
9
		}
10
		
7
      }
11
return rc;
8
      return rc;
12
	
9
   
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