final IProxySettings proxySettings = prefs.getProxySettings(); _httpUseProxyChk.setSelected(proxySettings.getHttpUseProxy()); _httpProxyServer.setText(proxySettings.getHttpProxyServer()); _httpProxyPort.setText(proxySettings.getHttpProxyPort()); _httpNonProxyHosts.setText(proxySettings.getHttpNonProxyHosts()); _httpProxyUser.setText(proxySettings.getHttpProxyUser()); _httpProxyPassword.setText(proxySettings.getHttpProxyPassword()); _socksUseProxyChk.setSelected(proxySettings.getSocksUseProxy()); _socksProxyServer.setText(proxySettings.getSocksProxyServer()); _socksProxyPort.setText(proxySettings.getSocksProxyPort()); updateControlStatus();
_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/ProxyPreferencesPanel.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: 11 Number of AST nodes: 11
1
final IProxySettings proxySettings = prefs.getProxySettings();
2
			_httpUseProxy
1
_contentsNbrRowsToShowField.setInt(props.getContentsNbrRowsToShow());
3
Chk.setSelected(proxySettings.getHttpUseProxy());
2
			_contentsLimitRowsChk.setSelected(pro
4
			_httpProxyServer.setText(proxySettings.getHttpProxyServer());
5
			_httpProxyPort.setText(proxySettings.getHttpProxyPort());
6
			_httpNonProxyHosts
3
ps.getContentsLimitRows());
4
			_showRowCountChk.setSelected(props.getShowRowCount());
5
			_loadSchemasCatalogsChk.setSelected(props.getLoadSchemasCatalogs());
7
.setText(proxySettings.getHttpNonProxyHosts());
6
         _catalogFilterInclude.setText(pro
8
			_httpProxyUser.setText(proxySettings.getHttpProxyUser());
9
			_httpProxyPassword.setText(proxySettings.getHttpProxyPassword());
10
			_socksUseProxyChk.setSelected(proxySettings.getSocksUseProxy());
11
			_socksProxyServer
7
ps.getCatalogFilterInclude());
8
         _schemaFilterInclude.setText(props.getSchemaFilterInclude());
9
         _objectFilterInclude.setText(props.getObjectFilterInclude());
10
         _catalogFilterExclude.setText(props.getCatalogFilterExclude());
12
.setText(proxySettings.getSocksProxyServer());
11
         _schemaFilterExclude.setText(pro
13
			_socksProxyPort
12
ps.getSchemaFilterExclude());
14
.setText(proxySettings.getSocksProxyPort());
13
         _objectFilterExclude.setText(props.getObjectFilterExclude());
15
			updateControlStatus();
14
			updateControlStatus();
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons121
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment10
    Number of unmapped statements in the second code fragment10
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
                                                                                                                                                    
    1
    _contentsNbrRowsToShowField.setInt(props.getContentsNbrRowsToShow());
    1
    final IProxySettings proxySettings = prefs.getProxySettings();
                                                                                                                                  
                                                                                                                                          
    2
    _contentsLimitRowsChk.setSelected(props.getContentsLimitRows());
    2
    _httpUseProxyChk.setSelected(proxySettings.getHttpUseProxy());
                                                                                                                                      
                                                                                                                      
    3
    _showRowCountChk.setSelected(props.getShowRowCount());
    3
    _httpProxyServer.setText(proxySettings.getHttpProxyServer());
                                                                                                                                    
                                                                                                                                                  
    4
    _loadSchemasCatalogsChk.setSelected(props.getLoadSchemasCatalogs());
    4
    _httpProxyPort.setText(proxySettings.getHttpProxyPort());
                                                                                                                            
                                                                                                                                        
    5
    _catalogFilterInclude.setText(props.getCatalogFilterInclude());
    5
    _httpNonProxyHosts.setText(proxySettings.getHttpNonProxyHosts());
                                                                                                                                            
                                                                                                                                    
    6
    _schemaFilterInclude.setText(props.getSchemaFilterInclude());
    6
    _httpProxyUser.setText(proxySettings.getHttpProxyUser());
                                                                                                                            
                                                                                                                                    
    7
    _objectFilterInclude.setText(props.getObjectFilterInclude());
    7
    _httpProxyPassword.setText(proxySettings.getHttpProxyPassword());
                                                                                                                                            
                                                                                                                                        
    8
    _catalogFilterExclude.setText(props.getCatalogFilterExclude());
    8
    _socksUseProxyChk.setSelected(proxySettings.getSocksUseProxy());
                                                                                                                                          
                                                                                                                                    
    9
    _schemaFilterExclude.setText(props.getSchemaFilterExclude());
    9
    _socksProxyServer.setText(proxySettings.getSocksProxyServer());
                                                                                                                                        
                                                                                                                                      
    10
    _objectFilterExclude.setText(props.getObjectFilterExclude());
    10
    _socksProxyPort.setText(proxySettings.getSocksProxyPort());
                                                                                                                                  
    11
    updateControlStatus();
    11
    updateControlStatus();
    Precondition Violations (0)
    Row Violation