for (int i = 0; i < _booleans.length; i++) { if(_booleans[i].productMatches(md)) { return _booleans[i].getBooleanValue(orig); } }
if(propertyInfo.getCompareString().equals(attrName)) { return propertyInfo; }
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DatabaseSpecificBooleanValue.java File path: /sql12/plugins/hibernate/src/net/sourceforge/squirrel_sql/plugins/hibernate/mapping/MappedClassInfo.java
Method name: String getBooleanValue(String, ISQLDatabaseMetaData) Method name: PropertyInfo getAttributeByName(String)
Number of AST nodes: 3 Number of AST nodes: 2
1
for (int i = 0; i < _booleans.length; i++) {
2
            if(_booleans[i].productMatches(md)) {
3
  
1
if(propertyInfo.getCompareString().equals(attrName))
2
         {
4
              return _booleans[i].getBooleanValue(orig);
3
            return 
5
            }
4
propertyInfo;
6
        }
5
         }
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.2
Clones locationClones are in different classes
Number of node comparisons1