File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/Rpm.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.java | |||
Method name: String guessRpmBuildCommand()
|
Method name: int getInterfaceMethodRefEntry(String, String, String)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | for (Enumeration e = env.elements(); e.hasMoreElements();) {↵ | |||
2 | String var = (String) e.nextElement();↵ | |||
3 | if (var.startsWith(PATH1) || var.startsWith(PATH2) || var.startsWith(PATH3)) {↵ | |||
4 | path = var.substring(PATH_LEN);↵ | |||
5 | break;↵ | |||
1 | Object element = entries.elementAt(i);↵ | |||
2 | if (element instanceof InterfaceMethodRefCPInfo) {↵ | |||
3 | InterfaceMethodRefCPInfo interfaceMethodRefEntry↵ | |||
4 | = (InterfaceMethodRefCPInfo) element;↵ | |||
5 | if (interfaceMethodRefEntry.getInterfaceMethodClassName().equals(↵ | |||
6 | interfaceMethodClassName)↵ | |||
7 | && interfaceMethodRefEntry.getInterfaceMethodName().equals(↵ | |||
8 | interfaceMethodName)↵ | |||
9 | && interfaceMethodRefEntry.getInterfaceMethodType().equals(↵ | |||
10 | interfaceMethodType)) {↵ | |||
11 | index = i;↵ | |||
6 | }↵ | 12 | }↵ | |
7 | } | 13 | } | |
See real code fragment | See real code fragment |
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.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |