File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.java | |||
Method name: int getClassEntry(String)
|
Method name: int getFieldRefEntry(String, String, String)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | int index = -1;↵ | 1 | int index = -1;↵ | |
2 | for (int i = 0; i < entries.size() && index == -1; ++i) {↵ | 2 | for (int i = 0; i < entries.size() && index == -1; ++i) {↵ | |
3 | Object element = entries.elementAt(i);↵ | 3 | Object element = entries.elementAt(i);↵ | |
4 | if (element instanceof ClassCPInfo) {↵ | 4 | if (element instanceof FieldRefCPInfo) {↵ | |
5 | ClassCPInfo classinfo = (ClassCPInfo) element;↵ | 5 | FieldRefCPInfo fieldRefEntry = (FieldRefCPInfo) element;↵ | |
6 | if (classinfo.getClassName().equals(className)↵ | 6 | if (fieldRefEntry.getFieldClassName().equals(fieldClassName)↵ | |
7 | && fieldRefEntry.getFieldName().equals(fieldName)↵ | |||
7 | ) {↵ | 8 | && fieldRefEntry.getFieldType().equals(fieldType)) {↵ | |
8 | index = i;↵ | 9 | index = i;↵ | |
9 | }↵ | 10 | }↵ | |
10 | }↵ | 11 | }↵ | |
11 | }↵ | 12 | }↵ | |
12 | return index; | 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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 1 |