File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/ReportFileDialoger.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/save/OldSaveService.java | |||
Method name: void clearFileFilters()
|
Method name: Configuration getConfiguration(SampleResult, SampleSaveConfiguration)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | FileFilter[] filters = jfc.getChoosableFileFilters();↵ | 1 | if (subResults != null) {↵ | |
2 | for (int x = 0; x < filters.length; x++) {↵ | 2 | for (int i = 0; i < subResults.length; i++) {↵ | |
3 | jfc.removeChoosableFileFilter(filters[x]);↵ | 3 | config.addChild(getConfiguration(subResults[i], saveConfig));↵ | |
4 | }↵ | |||
4 | } | 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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 4 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.5 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | FileFilter[] filters = jfc.getChoosableFileFilters(); | | |||||||||||||||||||||||||
2 | for (int x = 0; x < filters.length; x++) |
| 23 | for (int i = 0; i < subResults.length; i++) | |||||||||||||||||||||||
3 | jfc.removeChoosableFileFilter(filters[x]); |
| | ||||||||||||||||||||||||
|
| 24 | config.addChild(getConfiguration(subResults[i], saveConfig)); |
Row | Violation |
---|---|
1 | Type javax.swing.filechooser.FileFilter[] of variable filters does not match with type org.apache.jmeter.samplers.SampleResult[] of variable subResults |
2 | Unmatched statement jfc.removeChoosableFileFilter(filters[x]); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Unmatched statement config.addChild(getConfiguration(subResults[i],saveConfig)); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |