try { return file.getCanonicalPath(); } catch (IOException ex) { // i18n[exportconfig.errorReslovingFileName=Error resolving file name] s_log.error(s_stringMgr.getString("exportconfig.errorReslovingFileName"), ex); } return file.getAbsolutePath();
try { return file.getCanonicalPath(); } catch (IOException ex) { // i18n[exportconfig.errorResolvingFile=Error resolving file name] s_log.error(s_stringMgr.getString("exportconfig.errorResolvingFile"), ex); } return file.getAbsolutePath();
Clone fragments detected by clone detection tool
File path: /sql12/plugins/exportconfig/src/net/sourceforge/squirrel_sql/plugins/exportconfig/gui/ExportPanelBuilder.java File path: /sql12/plugins/exportconfig/src/net/sourceforge/squirrel_sql/plugins/exportconfig/ExportConfigPreferences.java
Method name: String getFileName(File) Method name: String getFileName(File)
Number of AST nodes: 3 Number of AST nodes: 3
1
try
1
try
2
		{
2
		{
3
			return file.getCanonicalPath();
3
			return file.getCanonicalPath();
4
		}
4
		}
5
		catch (IOException ex)
5
		catch (IOException ex)
6
		{
6
		{
7
			// i18n[exportconfig.errorReslovingFileName=Error resolving file name]
7
			// i18n[exportconfig.errorResolvingFile=Error resolving file name]
8
			s_log.error(s_stringMgr.getString("exportconfig.errorReslovingFileName"), ex);
8
			s_log.error(s_stringMgr.getString("exportconfig.errorResolvingFile"), ex);
9
		}
9
		}
10
		return file.getAbsolutePath();
10
		return file.getAbsolutePath();
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.3
Clones locationClones are in different classes
Number of node comparisons5
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.7
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    try
    1
    try
    1
    try
    Differences
    Expression1Expression2Difference
    "exportconfig.errorReslovingFileName""exportconfig.errorResolvingFile"LITERAL_VALUE_MISMATCH
    1
    try
    2
    return file.getCanonicalPath();
    2
    return file.getCanonicalPath();
    3
    return file.getAbsolutePath();
    3
    return file.getAbsolutePath();
    Precondition Violations (0)
    Row Violation