final ApplicationFiles appFiles = new ApplicationFiles(); _loginTimeout.setInt(prefs.getLoginTimeout()); _largeScriptStmtCount.setInt(prefs.getLargeScriptStmtCount()); _debugJdbcStream.setSelected(prefs.isJdbcDebugToStream()); _debugJdbcWriter.setSelected(prefs.isJdbcDebugToWriter()); _debugJdbcDont.setSelected(prefs.isJdbcDebugDontDebug()); _jdbcDebugLogFileNameLbl.setText(appFiles.getJDBCDebugLogFile().getPath()); _fileOpenInPreviousDir.setSelected(prefs.isFileOpenInPreviousDir()); _fileOpenInSpecifiedDir.setSelected(prefs.isFileOpenInSpecifiedDir()); _fileSpecifiedDir.setText(prefs.getFileSpecifiedDir());
_contentsNbrRowsToShowField.setInt(props.getContentsNbrRowsToShow()); _contentsLimitRowsChk.setSelected(props.getContentsLimitRows()); _showRowCountChk.setSelected(props.getShowRowCount()); _loadSchemasCatalogsChk.setSelected(props.getLoadSchemasCatalogs()); _catalogFilterInclude.setText(props.getCatalogFilterInclude()); _schemaFilterInclude.setText(props.getSchemaFilterInclude()); _objectFilterInclude.setText(props.getObjectFilterInclude()); _catalogFilterExclude.setText(props.getCatalogFilterExclude()); _schemaFilterExclude.setText(props.getSchemaFilterExclude()); _objectFilterExclude.setText(props.getObjectFilterExclude()); updateControlStatus();
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/SQLPreferencesPanel.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/properties/SessionObjectTreePropertiesPanel.java
Method name: void loadData(IApplication, SquirrelPreferences) Method name: void loadData(SessionProperties)
Number of AST nodes: 10 Number of AST nodes: 11
1
final ApplicationFiles appFiles = new ApplicationFiles();
2
			_loginTimeout.setInt
1
_contentsNbrRowsToShowField.setInt(props.getContentsNbrRowsToShow());
3
(prefs.getLoginTimeout());
2
			_contentsLimitRowsChk.setSelected(props.get
4
            _largeScriptStmt
3
ContentsLimitRows());
5
Count.setInt(prefs.getLargeScriptStmtCount());
4
			_showRowCountChk.setSelected(props.get
6
			_debugJdbcStream.setSelected(prefs.isJdbcDebugToStream());
7
			_debugJdbcWriter.setSelected(prefs.isJdbcDebugToWriter());
8
			_debugJdbcDont.setSelected(prefs.isJdbcDebugDontDebug());
9
			_jdbcDebugLogFileNameLbl.setText(appFiles.getJDBCDebugLogFile().getPath
5
ShowRowCount());
6
			_loadSchemasCatalogsChk.setSelected(props.getLoadSchemasCatalogs());
7
         _catalogFilterInclude.setText(props.getCatalogFilterInclude());
8
         _schemaFilterInclude.setText(props.getSchemaFilterInclude());
10
());
9
         _objectFilterInclude.setText(props.getObjectFilterInclude());
11
         _fileOpenInPreviousDir.setSelected(prefs.isFileOpenInPreviousDir());
10
         _
12
         _fileOpenInSpecifiedDir.setSelected(prefs.isFileOpenInSpecifiedDir());
13
         _fileSpecifiedDir
11
catalogFilterExclude.setText(props.getCatalogFilterExclude());
12
         _schemaFilterExclude.setText(props.getSchemaFilterExclude());
14
.setText(prefs.getFileSpecifiedDir()
13
         _objectFilterExclude.setText(props.getObjectFilterExclude());
15
);
14
			updateControlStatus();
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons110