if(buf.endsWith("_" + availableLocales[i].toString())) { return availableLocales[i]; }
for (int i = 0; i < frames.length; i++) { if ((sheetType == ST_SHEET_TYPE_FIND_VALUES && frames[i] instanceof SmarttoolFindBadNullValuesFrame) || (sheetType == ST_SHEET_TYPE_CHANGE_VALUES && frames[i] instanceof SmarttoolChangeValuesFrame) || (sheetType == ST_SHEET_TYPE_MISSING_INICES && frames[i] instanceof SmarttoolMissingIndicesFrame) ) { return frames[i]; } }
Clone fragments detected by clone detection tool
File path: /sql12/plugins/i18n/src/net/sourceforge/squirrel_sql/plugins/i18n/I18nProps.java File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/SmarttoolsPlugin.java
Method name: Locale parseLocaleFromPropsFileName(String) Method name: IWidget isInternalFrameUsed(IApplication, int)
Number of AST nodes: 2 Number of AST nodes: 3
1
if(buf.endsWith("_" + availableLocales[i].toString()))
2
            {
3
                return availableLocales[i];
4
            
1
for (int i = 0; i < frames.length; i++) {
2
			if ((sheetType == ST_SHEET_TYPE_FIND_VALUES && frames[i] instanceof SmarttoolFindBadNullValuesFrame)
3
					|| (sheetType == ST_SHEET_TYPE_CHANGE_VALUES && frames[i] instanceof SmarttoolChangeValuesFrame)
4
					|| (sheetType == ST_SHEET_TYPE_MISSING_INICES && frames[i] instanceof SmarttoolMissingIndicesFrame)
5
					) {
6
				return frames[i];
7
			}
5
}
8
		}
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 comparisons1