File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/tree/ReportTreeListener.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/tree/JMeterTreeListener.java | |||
Method name: void changeSelectionIfDragging(MouseEvent)
|
Method name: void changeSelectionIfDragging(MouseEvent)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (dragging) {↵ | 1 | if (dragging) {↵ | |
2 | ReportGuiPackage.getInstance().getMainFrame().drawDraggedComponent(dragIcon, e.getX(), e.getY());↵ | 2 | GuiPackage.getInstance().getMainFrame().drawDraggedComponent(dragIcon, e.getX(), e.getY());↵ | |
3 | if (tree.getPathForLocation(e.getX(), e.getY()) != null) {↵ | 3 | if (tree.getPathForLocation(e.getX(), e.getY()) != null) {↵ | |
4 | currentPath = tree.getPathForLocation(e.getX(), e.getY());↵ | 4 | currentPath = tree.getPathForLocation(e.getX(), e.getY());↵ | |
5 | if (!contains(draggedNodes, getCurrentNode())) {↵ | 5 | if (!contains(draggedNodes, getCurrentNode())) {↵ | |
6 | tree.setSelectionPath(currentPath);↵ | 6 | tree.setSelectionPath(currentPath);↵ | |
7 | }↵ | 7 | }↵ | |
8 | }↵ | 8 | }↵ | |
9 | } | 9 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.6 |
Clones location | Clones are in different classes |
Number of node comparisons | 12 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 3.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (dragging) | 1 | if (dragging) | ||||||||||||
2 | ReportGuiPackage.getInstance().getMainFrame().drawDraggedComponent(dragIcon, e.getX(), e.getY()); |
| 2 | GuiPackage.getInstance().getMainFrame().drawDraggedComponent(dragIcon, e.getX(), e.getY()); | |||||||||||
3 | if (tree.getPathForLocation(e.getX(), e.getY()) != null) | 3 | if (tree.getPathForLocation(e.getX(), e.getY()) != null) | ||||||||||||
4 | currentPath = tree.getPathForLocation(e.getX(), e.getY()); | 4 | currentPath = tree.getPathForLocation(e.getX(), e.getY()); | ||||||||||||
5 | if (!contains(draggedNodes, getCurrentNode())) |
| 5 | if (!contains(draggedNodes, getCurrentNode())) | |||||||||||
6 | tree.setSelectionPath(currentPath); | 6 | tree.setSelectionPath(currentPath); |
Row | Violation |
---|---|
1 | Expression ReportGuiPackage cannot be unified with expression GuiPackage , because common superclass org.apache.jmeter.util.LocaleChangeListener does not declare member(s) public static org.apache.jmeter.gui.ReportGuiPackage getInstance() , public static org.apache.jmeter.gui.GuiPackage getInstance() , public org.apache.jmeter.gui.ReportMainFrame getMainFrame() , public org.apache.jmeter.gui.MainFrame getMainFrame() |
2 | Type org.apache.jmeter.report.gui.tree.ReportTreeNode[] of variable draggedNodes does not match with type org.apache.jmeter.gui.tree.JMeterTreeNode[] of variable draggedNodes |