super(view,jEdit.getProperty("files-changed.title"),false); this.view = view; JPanel content = new JPanel(new BorderLayout(12,12)); content.setBorder(new EmptyBorder(12,12,12,12)); setContentPane(content); Box iconBox = new Box(BoxLayout.Y_AXIS); iconBox.add(new JLabel(UIManager.getIcon("OptionPane.warningIcon"))); iconBox.add(Box.createGlue()); content.add(BorderLayout.WEST,iconBox); JPanel centerPanel = new JPanel(new BorderLayout()); JLabel label = new JLabel(jEdit.getProperty("files-changed.caption")); label.setBorder(new EmptyBorder(0,0,6,0)); centerPanel.add(BorderLayout.NORTH,label);
super(view,jEdit.getProperty("close.title"),true); this.view = view; JPanel content = new JPanel(new BorderLayout(12,12)); content.setBorder(new EmptyBorder(12,12,12,12)); setContentPane(content); Box iconBox = new Box(BoxLayout.Y_AXIS); iconBox.add(new JLabel(UIManager.getIcon("OptionPane.warningIcon"))); iconBox.add(Box.createGlue()); content.add(BorderLayout.WEST,iconBox); JPanel centerPanel = new JPanel(new BorderLayout()); JLabel label = new JLabel(jEdit.getProperty("close.caption")); label.setBorder(new EmptyBorder(0,0,6,0)); centerPanel.add(BorderLayout.NORTH,label);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/FilesChangedDialog.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/CloseDialog.java
Method name: void FilesChangedDialog(View, int[], boolean) Method name: void CloseDialog(View)
Number of AST nodes: 13 Number of AST nodes: 13
1
super(view,jEdit.getProperty("files-changed.title"),false);
1
super(view,jEdit.getProperty("close.title"),true);
2
		this.view = view;
2
		this.view = view;
3
		JPanel content = new JPanel(new BorderLayout(12,12));
3
		JPanel content = new JPanel(new BorderLayout(12,12));
4
		content.setBorder(new EmptyBorder(12,12,12,12));
4
		content.setBorder(new EmptyBorder(12,12,12,12));
5
		setContentPane(content);
5
		setContentPane(content);
6
		Box iconBox = new Box(BoxLayout.Y_AXIS);
6
		Box iconBox = new Box(BoxLayout.Y_AXIS);
7
		iconBox.add(new JLabel(UIManager.getIcon("OptionPane.warningIcon")));
7
		iconBox.add(new JLabel(UIManager.getIcon("OptionPane.warningIcon")));
8
		iconBox.add(Box.createGlue());
8
		iconBox.add(Box.createGlue());
9
		content.add(BorderLayout.WEST,iconBox);
9
		content.add(BorderLayout.WEST,iconBox);
10
		JPanel centerPanel = new JPanel(new BorderLayout());
10
		JPanel centerPanel = new JPanel(new BorderLayout());
11
		JLabel label = new JLabel(jEdit.getProperty("files-changed.caption"));
11
		JLabel label = new JLabel(jEdit.getProperty("close.caption"));
12
		label.setBorder(new EmptyBorder(0,0,6,0));
12
		label.setBorder(new EmptyBorder(0,0,6,0));
13
		centerPanel.add(BorderLayout.NORTH,label);
13
		centerPanel.add(BorderLayout.NORTH,label);
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 comparisons66
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements13
    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
    super(view, jEdit.getProperty("files-changed.title"), false);
    1
    super(view, jEdit.getProperty("files-changed.title"), false);
    1
    super(view, jEdit.getProperty("close.title"), true);
    Differences
    Expression1Expression2Difference
    "files-changed.title""close.title"LITERAL_VALUE_MISMATCH
    falsetrueLITERAL_VALUE_MISMATCH
    1
    super(view, jEdit.getProperty("close.title"), true);
    2
    this.view = view;
    2
    this.view = view;
    3
    JPanel content = new JPanel(new BorderLayout(12, 12));
    3
    JPanel content = new JPanel(new BorderLayout(12, 12));
    4
    content.setBorder(new EmptyBorder(12, 12, 12, 12));
    4
    content.setBorder(new EmptyBorder(12, 12, 12, 12));
    5
    setContentPane(content);
    5
    setContentPane(content);
    6
    Box iconBox = new Box(BoxLayout.Y_AXIS);
    6
    Box iconBox = new Box(BoxLayout.Y_AXIS);
    7
    iconBox.add(new JLabel(UIManager.getIcon("OptionPane.warningIcon")));
    7
    iconBox.add(new JLabel(UIManager.getIcon("OptionPane.warningIcon")));
    8
    iconBox.add(Box.createGlue());
    8
    iconBox.add(Box.createGlue());
    9
    content.add(BorderLayout.WEST, iconBox);
    9
    content.add(BorderLayout.WEST, iconBox);
    10
    JPanel centerPanel = new JPanel(new BorderLayout());
    10
    JPanel centerPanel = new JPanel(new BorderLayout());
    11
    JLabel label = new JLabel(jEdit.getProperty("files-changed.caption"));
    11
    JLabel label = new JLabel(jEdit.getProperty("files-changed.caption"));
    11
    JLabel label = new JLabel(jEdit.getProperty("close.caption"));
    Differences
    Expression1Expression2Difference
    "files-changed.caption""close.caption"LITERAL_VALUE_MISMATCH
    11
    JLabel label = new JLabel(jEdit.getProperty("close.caption"));
    12
    label.setBorder(new EmptyBorder(0, 0, 6, 0));
    12
    label.setBorder(new EmptyBorder(0, 0, 6, 0));
    13
    centerPanel.add(BorderLayout.NORTH, label);
    13
    centerPanel.add(BorderLayout.NORTH, label);
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables centerPanel, content , while Clone fragment #2 returns variables centerPanel, content