ReportCheckDirty() {
previousGuiItems = new HashMap();
ReportActionRouter.getInstance().addPreActionListener(ReportExitCommand.class, this);
}
public void actionPerformed(ActionEvent e) {
if (e.getActionCommand().equals(ReportExitCommand.EXIT)) {
doAction(e);
}
CheckDirty() {
previousGuiItems = new HashMap();
ActionRouter.getInstance().addPreActionListener(ExitCommand.class, this);
}
public void actionPerformed(ActionEvent e) {
if (e.getActionCommand().equals(ActionNames.EXIT)) {
doAction(e);
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportCheckDirty.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/action/CheckDirty.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | ReportCheckDirty() {↵ | | 1 | CheckDirty() {↵
|
2 | previousGuiItems = new HashMap();↵ | | 2 | previousGuiItems = new HashMap();↵
|
3 | ReportActionRouter.getInstance().addPreActionListener(ReportExitCommand.class, this);↵ | | 3 | ActionRouter.getInstance().addPreActionListener(ExitCommand.class, this);↵
|
4 | }↵ | | 4 | }↵
|
|
5 | public void actionPerformed(ActionEvent e) {↵ | | 5 | public void actionPerformed(ActionEvent e) {↵
|
6 | if (e.getActionCommand().equals(ReportExitCommand.EXIT)) {↵ | | 6 | if (e.getActionCommand().equals(ActionNames.EXIT)) {↵
|
7 | doAction(e);↵ | | 7 | doAction(e);↵
|
8 | }↵ | | 8 | }↵
|
9 | | | 9 |
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |