if (info.getDatabaseObjectType() == DatabaseObjectType.SCHEMA) { return true; } else { return false; }
if (obj instanceof ConstraintView) { return ((ConstraintView) obj)._constraintData.equals(_constraintData); } else { return false; }
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/InformixDialectExt.java File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/ConstraintView.java
Method name: boolean canPasteTo(IDatabaseObjectInfo) Method name: boolean equals(Object)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (info.getDatabaseObjectType() == DatabaseObjectType.SCHEMA)
1
if (
2
		{
3
			return true;
4
		} else
5
		{
6
			
2
obj instanceof ConstraintView)
3
      {
4
         return ((ConstraintView) obj)._constraintData.equals(_constraintData);
5
      }
6
      else
7
      {
7
return false;
8
         return false;
8
		}
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.1
Clones locationClones are in different classes
Number of node comparisons9