File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/threads/gui/ThreadGroupGui.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/threads/gui/ThreadGroupGui.java | |||
Method name: JPanel createDurationPanel()
|
Method name: JPanel createDelayPanel()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | JLabel label = new JLabel(JMeterUtils.getResString("duration")); // $NON-NLS-1$↵ | 1 | JLabel label = new JLabel(JMeterUtils.getResString("delay")); // $NON-NLS-1$↵ | |
2 | panel.add(label, BorderLayout.WEST);↵ | 2 | panel.add(label, BorderLayout.WEST);↵ | |
3 | duration = new JTextField();↵ | 3 | delay = new JTextField();↵ | |
4 | panel.add(duration, BorderLayout.CENTER);↵ | 4 | panel.add(delay, BorderLayout.CENTER);↵ | |
5 | return panel; | 5 |
| |
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 12 |
Number of mapped statements | 5 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | JLabel label = new JLabel(JMeterUtils.getResString("duration")); |
| 2 | JLabel label = new JLabel(JMeterUtils.getResString("delay")); | ||||||||||||
3 | panel.add(label, BorderLayout.WEST); | 3 | panel.add(label, BorderLayout.WEST); | |||||||||||||
4 | duration = new JTextField(); |
| 4 | delay = new JTextField(); | ||||||||||||
5 | panel.add(duration, BorderLayout.CENTER); |
| 5 | panel.add(delay, BorderLayout.CENTER); | ||||||||||||
6 | return panel; | 6 | return panel; |
Row | Violation |
---|---|
1 | Expression duration is a field being modified, and thus it cannot be parameterized |
2 | Expression delay is a field being modified, and thus it cannot be parameterized |
3 | Expression duration cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression delay cannot be parameterized, because it has dependencies to/from statements that will be extracted |