styleBox.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (((String) styleBox.getSelectedItem()).equals(BYNUMBER_LABEL)) {
style = ThroughputController.BYNUMBER;
} else {
style = ThroughputController.BYPERCENT;
targetBox.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (((String) targetBox.getSelectedItem()).equals(threadTarget)) {
target = TestAction.THREAD;
} else {
target = TestAction.TEST;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/ThroughputControllerGui.java
|
|
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/sampler/gui/TestActionGui.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | styleBox.addActionListener(new ActionListener() {↵ | | 1 | targetBox.addActionListener(new ActionListener() {↵
|
2 | public void actionPerformed(ActionEvent e) {↵ | | 2 | public void actionPerformed(ActionEvent e) {↵
|
3 | if (((String) styleBox.getSelectedItem()).equals(BYNUMBER_LABEL)) {↵ | | 3 | if (((String) targetBox.getSelectedItem()).equals(↵
|
4 | style = ThroughputController.BYNUMBER;↵ | | |
|
5 | } else {↵ | | |
|
6 | style = ThroughputController.BYPERCEN↵ | | 4 | threadTarget)) {↵
|
| | | 5 | target = TestAction.THREAD;↵
|
| | | 6 | } else {↵
|
7 | T;↵ | | 7 | target = TestAction.TEST;↵
|
8 | | | 8 |
|
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 |