File path: /jakarta-jmeter-2.3.2/src/junit/org/apache/jmeter/protocol/java/control/gui/JUnitTestSamplerGui.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/JMeter.java | |||
Method name: void stateChanged(ChangeEvent)
|
Method name: void start(String[])
|
|||
Number of AST nodes: 6 | Number of AST nodes: 7 | |||
1 | if ( event.getSource() == filterpkg) {↵ | 1 | if (↵ | |
2 | FILTER.setPackges(JOrphanUtils.split(filterpkg.getText(),",")); ↵ | 2 | log.isDebugEnabled())↵ | |
3 | {↵ | |||
3 | //$NON-NLS-1$↵ | 4 | String jcp=System.getProperty("java.class.path");// $NON-NLS-1$↵ | |
4 | classnameCombo.removeAllItems();↵ | 5 | ↵ | |
5 | // change the classname drop down↵ | |||
6 | Object[] clist = FILTER.filterArray(CLASSLIST);↵ | |||
6 | String bits[] =jcp.split(File.pathSeparator);↵ | |||
7 | log.debug("ClassPath");↵ | |||
7 | for (int idx=0; idx < clist.length; idx++) {↵ | 8 | for(int i = 0; i<bits.length ;i++){↵ | |
8 | classnameCombo.addItem(clist[idx]);↵ | 9 | ↵ | |
9 | }↵ | |||
10 | log.debug(bits[i]);↵ | |||
11 | }↵ | |||
12 | log.debug(jcp);↵ | |||
10 | } | 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) | 0.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 14 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 4 |
Time elapsed for statement mapping (ms) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | FILTER.setPackges(JOrphanUtils.split(filterpkg.getText(), ",")); | | |||||||||||||||||||||||||
3 | classnameCombo.removeAllItems(); | | |||||||||||||||||||||||||
4 | Object[] clist = FILTER.filterArray(CLASSLIST); | | |||||||||||||||||||||||||
| 34 | String jcp = System.getProperty("java.class.path"); | |||||||||||||||||||||||||
| 35 | String bits[] = jcp.split(File.pathSeparator); | |||||||||||||||||||||||||
| 36 | log.debug("ClassPath"); | |||||||||||||||||||||||||
5 | for (int idx = 0; idx < clist.length; idx++) |
| 37 | for (int i = 0; i < bits.length; i++) | |||||||||||||||||||||||
6 | classnameCombo.addItem(clist[idx]); |
| | ||||||||||||||||||||||||
|
| 38 | log.debug(bits[i]); |
Row | Violation |
---|---|
1 | Type java.lang.Object[] of variable clist does not match with type java.lang.String[] of variable bits |
2 | Unmatched statement classnameCombo.addItem(clist[idx]); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Unmatched statement log.debug(bits[i]); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |