File path: /jakarta-jmeter-2.3.2/src/org/apache/commons/cli/avalon/CLOption.java | File path: /jakarta-jmeter-2.3.2/src/junit/org/apache/jmeter/protocol/java/control/gui/ClassFilter.java | |||
Method name: void addArgument(String)
|
Method name: void addPackage(String)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | final String[] arguments = new String[m_arguments.length + 1];↵ | 1 | String[] newpkg = new String[pkgs.length + 1];↵ | |
2 | System.arraycopy(m_arguments, 0, arguments, 0, m_arguments.length);↵ | 2 | System.arraycopy(pkgs,0,↵ | |
3 | arguments[m_arguments.length] = argument;↵ | |||
4 | m_arguments = arguments↵ | 3 | newpkg,0,pkgs.length);↵ | |
4 | newpkg[pkgs.length] = pkg;↵ | |||
5 | ; | 5 | pkgs = newpkg; | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 10 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | String[] newpkg = new String[pkgs.length + 1]; | ||||||||||||||||||
3 | final String[] arguments = new String[m_arguments.length + 1]; | | ||||||||||||||||||
4 | System.arraycopy(m_arguments, 0, arguments, 0, m_arguments.length); |
| 2 | System.arraycopy(pkgs, 0, newpkg, 0, pkgs.length); | ||||||||||||||||
5 | arguments[m_arguments.length] = argument; |
| 3 | newpkg[pkgs.length] = pkg; | ||||||||||||||||
6 | m_arguments = arguments; |
| 4 | pkgs = newpkg; |
Row | Violation |
---|