if (!newName.equals(oldName)) { try { folder.setName(newName); } catch (Exception ex) { s_log.error("Error", ex); // ?? } }
if (seperatorChar.getText().length() > 1) { try { seperatorChar.setText(seperatorChar.getText(0, 1)); } catch (Exception e) { /* Ignore that */ } }
Clone fragments detected by clone detection tool
File path: /sql12/plugins/favs/src/net/sourceforge/squirrel_sql/plugins/favs/QueryTreeModel.java File path: /sql12/plugins/dataimport/src/net/sourceforge/squirrel_sql/plugins/dataimport/importer/csv/CSVSettingsPanel.java
Method name: void treeNodesChanged(TreeModelEvent) Method name: void stateChanged()
Number of AST nodes: 3 Number of AST nodes: 3
1
if (!newName.equals(oldName)) {
1
if (seperatorChar.getText().length() > 1) {
2
						try {
2
			try {
3
							folder.setName(newName);
3
				
4
			
4
seperatorChar.setText(seperatorChar.getText(0, 1));
5
			} catch (Exception ex) {
5
			} catch (Exception e) {
6
							s_log.error("Error", ex); // ??
7
						}
8
			
6
 /* Ignore that */ }
9
		}
7
		}
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