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 createStartTimePanel()
|
Method name: JPanel createDurationPanel()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | JPanel panel = new JPanel(new BorderLayout(5, 0));↵ | 1 | JPanel panel = new JPanel(new BorderLayout(5, 0));↵ | |
2 | JLabel label = new JLabel(JMeterUtils.getResString("starttime")); //$NON-NLS-1$↵ | 2 | JLabel label = new JLabel(JMeterUtils.getResString("duration")); // $NON-NLS-1$↵ | |
3 | panel.add(label, BorderLayout.WEST);↵ | 3 | panel.add(label, BorderLayout.WEST);↵ | |
4 | start = new JDateField();↵ | 4 | duration = new JTextField();↵ | |
5 | panel.add(start, BorderLayout.CENTER);↵ | 5 | panel.add(duration, BorderLayout.CENTER);↵ | |
6 | return panel; | 6 |
| |
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 | 19 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | JPanel panel = new JPanel(new BorderLayout(5, 0)); | 1 | JPanel panel = new JPanel(new BorderLayout(5, 0)); | |||||||||||||||||||
2 | JLabel label = new JLabel(JMeterUtils.getResString("starttime")); |
| 2 | JLabel label = new JLabel(JMeterUtils.getResString("duration")); | ||||||||||||||||||
3 | panel.add(label, BorderLayout.WEST); | 3 | panel.add(label, BorderLayout.WEST); | |||||||||||||||||||
4 | start = new JDateField(); |
| 4 | duration = new JTextField(); | ||||||||||||||||||
5 | panel.add(start, BorderLayout.CENTER); |
| 5 | panel.add(duration, BorderLayout.CENTER); | ||||||||||||||||||
6 | return panel; | 6 | return panel; |
Row | Violation |
---|---|
1 | Expression start is a field being modified, and thus it cannot be parameterized |
2 | Expression duration is a field being modified, and thus it cannot be parameterized |
3 | Expression start cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression duration cannot be parameterized, because it has dependencies to/from statements that will be extracted |