File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportLookAndFeelCommand.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/action/LookAndFeelCommand.java | |||
Method name: void doAction(ActionEvent)
|
Method name: void doAction(ActionEvent)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | try {↵ | 1 | try {↵ | |
2 | String className = ev.getActionCommand().substring(4).replace('/', '.');↵ | 2 | String className = ev.getActionCommand().substring(4).replace('/', '.');↵ | |
3 | UIManager.setLookAndFeel(className);↵ | 3 | UIManager.setLookAndFeel(className);↵ | |
4 | SwingUtilities.updateComponentTreeUI(ReportGuiPackage.getInstance().getMainFrame());↵ | 4 | SwingUtilities.updateComponentTreeUI(GuiPackage.getInstance().getMainFrame());↵ | |
5 | } catch (javax.swing.UnsupportedLookAndFeelException e) {↵ | 5 | } catch (javax.swing.UnsupportedLookAndFeelException e) {↵ | |
6 | JMeterUtils.reportErrorToUser("Look and Feel unavailable:" + e.toString());↵ | 6 | JMeterUtils.reportErrorToUser("Look and Feel unavailable:" + e.toString());↵ | |
7 | } catch (InstantiationException e) {↵ | 7 | } catch (InstantiationException e) {↵ | |
8 | JMeterUtils.reportErrorToUser("Look and Feel unavailable:" + e.toString());↵ | 8 | JMeterUtils.reportErrorToUser("Look and Feel unavailable:" + e.toString());↵ | |
9 | } catch (ClassNotFoundException e) {↵ | 9 | } catch (ClassNotFoundException e) {↵ | |
10 | JMeterUtils.reportErrorToUser("Look and Feel unavailable:" + e.toString());↵ | 10 | JMeterUtils.reportErrorToUser("Look and Feel unavailable:" + e.toString());↵ | |
11 | } catch (IllegalAccessException e) {↵ | 11 | } catch (IllegalAccessException e) {↵ | |
12 | JMeterUtils.reportErrorToUser("Look and Feel unavailable:" + e.toString());↵ | 12 | JMeterUtils.reportErrorToUser("Look and Feel unavailable:" + e.toString());↵ | |
13 | } | 13 |
| |
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) | 1.7 |
Clones location | Clones are in different classes |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
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) | 1.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | try | 1 | try | ||||||||||||||||
2 | String className = ev.getActionCommand().substring(4).replace('/', '.'); | 2 | String className = ev.getActionCommand().substring(4).replace('/', '.'); | ||||||||||||||||
3 | UIManager.setLookAndFeel(className); | 3 | UIManager.setLookAndFeel(className); | ||||||||||||||||
4 | SwingUtilities.updateComponentTreeUI(ReportGuiPackage.getInstance().getMainFrame()); |
| 4 | SwingUtilities.updateComponentTreeUI(GuiPackage.getInstance().getMainFrame()); |
Row | Violation |
---|---|
1 | Type org.apache.jmeter.gui.ReportGuiPackage of variable ReportGuiPackage.getInstance() does not match with type org.apache.jmeter.gui.GuiPackage of variable GuiPackage.getInstance() |
2 | Type org.apache.jmeter.gui.ReportGuiPackage of variable ReportGuiPackage does not match with type org.apache.jmeter.gui.GuiPackage of variable GuiPackage |