if(GLOBAL_STATE_LOAD_AND_CACHE_ALL == _globalState && GLOBAL_STATE_LOAD_AND_CACHE_ALL == schemaPropsCacheIsBasedOn._globalState) { 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/app/src/net/sourceforge/squirrel_sql/client/gui/db/SQLAliasSchemaProperties.java File path: /sql12/plugins/graph/src/net/sourceforge/squirrel_sql/plugins/graph/ConstraintView.java
Method name: boolean loadSchemaNames(SQLAliasSchemaProperties) Method name: boolean equals(Object)
Number of AST nodes: 3 Number of AST nodes: 3
1
if(GLOBAL_STATE_LOAD_AND_CACHE_ALL == _globalState &&
1
if
2
         GLOBAL_STATE_LOAD_AND_CACHE_ALL == schemaPropsCacheIsBasedOn._globalState)
3
      {
4
         return true
2
 (obj instanceof ConstraintView)
3
      {
5
;
4
         return ((ConstraintView) obj)._constraintData.equals(_constraintData);
6
      }
5
      }
7
      else
6
      else
8
      {
7
      {
9
         return false;
8
         return false;
10
      }
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