if(GLOBAL_STATE_LOAD_AND_CACHE_ALL == _globalState && GLOBAL_STATE_LOAD_AND_CACHE_ALL == schemaPropsCacheIsBasedOn._globalState) { return true; } else { return false; }
if (obj instanceof DocPositionComparator) { return true; } 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/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/oster/DocPositionComparator.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;
5
      }
6
      else
7
      {
8
         
2
 (obj instanceof DocPositionComparator)
3
		{
4
			return true;
5
		}
6
		else
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