setLayout(new BorderLayout()); _sessionInfo = new AutoWidthResizeTable(new DefaultTableModel()); _sessionInfo.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); add(new JScrollPane(_sessionInfo)); populateSessionInfo();
setLayout(new BorderLayout()); _sgaTrace = new AutoWidthResizeTable(new DefaultTableModel()); _sgaTrace.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); add(new JScrollPane(_sgaTrace)); populateSGATrace();
Clone fragments detected by clone detection tool
File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/sessioninfo/SessionInfoPanel.java File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/SGAtrace/SGATracePanel.java
Method name: void createGUI() Method name: void createGUI()
Number of AST nodes: 5 Number of AST nodes: 5
1
setLayout(new BorderLayout());
1
setLayout(new BorderLayout());
2
      _sessionInfo = new AutoWidthResizeTable(new DefaultTableModel());
2
      _sgaTrace = new AutoWidthResizeTable(new DefaultTableModel());
3
      _sessionInfo.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
3
      _sgaTrace.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
4
      add(new JScrollPane(_sessionInfo));
4
      add(new JScrollPane(_sgaTrace));
5
      populateSessionInfo();
5
      populateSGATrace();
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
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 comparisons17
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    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.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    setLayout(new BorderLayout());
    1
    setLayout(new BorderLayout());
    2
    _sessionInfo = new AutoWidthResizeTable(new DefaultTableModel());
    2
    _sessionInfo = new AutoWidthResizeTable(new DefaultTableModel());
    2
    _sgaTrace = new AutoWidthResizeTable(new DefaultTableModel());
    Differences
    Expression1Expression2Difference
    _sessionInfo_sgaTraceVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression _sessionInfo is a field being modified, and thus it cannot be parameterized
    Expression _sgaTrace is a field being modified, and thus it cannot be parameterized
    2
    _sgaTrace = new AutoWidthResizeTable(new DefaultTableModel());
    3
    _sessionInfo.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    3
    _sessionInfo.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    3
    _sgaTrace.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    Differences
    Expression1Expression2Difference
    _sessionInfo_sgaTraceVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression _sessionInfo cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _sgaTrace cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3
    _sgaTrace.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    4
    add(new JScrollPane(_sessionInfo));
    4
    add(new JScrollPane(_sessionInfo));
    4
    add(new JScrollPane(_sgaTrace));
    Differences
    Expression1Expression2Difference
    _sessionInfo_sgaTraceVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression _sessionInfo cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression _sgaTrace cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4
    add(new JScrollPane(_sgaTrace));
    5
    populateSessionInfo();
    5
    populateSessionInfo();
    5
    populateSGATrace();
    Differences
    Expression1Expression2Difference
    populateSessionInfopopulateSGATraceMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression populateSessionInfo() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression populateSGATrace() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression populateSessionInfo() is a void method call, and thus it cannot be parameterized
    Expression populateSGATrace() is a void method call, and thus it cannot be parameterized
    5
    populateSGATrace();
    Precondition Violations (10)
    Row Violation
    1Expression _sessionInfo is a field being modified, and thus it cannot be parameterized
    2Expression _sgaTrace is a field being modified, and thus it cannot be parameterized
    3Expression _sessionInfo cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression _sgaTrace cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression _sessionInfo cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression _sgaTrace cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression populateSessionInfo() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8Expression populateSGATrace() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    9Expression populateSessionInfo() is a void method call, and thus it cannot be parameterized
    10Expression populateSGATrace() is a void method call, and thus it cannot be parameterized