Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 5 | 0.976 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 415 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoringProcessor.java |
2 | 14 | 430 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoringProcessor.java |
| ||||
final IField[] requiredFields = ReferenceFinderUtil.getFieldsReferencedIn(new IJavaElement[] { member }, fOwner, new SubProgressMonitor(monitor, 1)); sub = new SubProgressMonitor(monitor, 1); try { sub.beginTask(RefactoringCoreMessages.PullUpRefactoring_calculating_required, requiredFields.length); isStatic = JdtFlags.isStatic(member); for (int index = 0; index < requiredFields.length; index++) { final IField requiredField = requiredFields[index]; if (isStatic && !JdtFlags.isStatic(requiredField)) continue ; if (isRequiredPullableMember(queue, requiredField)) queue.add(requiredField); } } finally { sub.done(); } |
| ||||
final IType[] requiredTypes = ReferenceFinderUtil.getTypesReferencedIn(new IJavaElement[] { member }, fOwner, new SubProgressMonitor(monitor, 1)); sub = new SubProgressMonitor(monitor, 1); try { sub.beginTask(RefactoringCoreMessages.PullUpRefactoring_calculating_required, requiredMethods.length); isStatic = JdtFlags.isStatic(member); for (int index = 0; index < requiredTypes.length; index++) { final IType requiredType = requiredTypes[index]; if (isStatic && !JdtFlags.isStatic(requiredType)) continue ; if (isRequiredPullableMember(queue, requiredType)) queue.add(requiredType); } } finally { sub.done(); } |
| |||
final [[#variablebc6ac0c0]][] [[#variableb3b0d640]]= ReferenceFinderUtil. [[#variablebc6ac100]](new IJavaElement[] { member }, fOwner, new SubProgressMonitor(monitor, 1)); sub = new SubProgressMonitor(monitor, 1); try { sub.beginTask(RefactoringCoreMessages.PullUpRefactoring_calculating_required, [[#variableb9fc8a40]].length); isStatic = JdtFlags.isStatic(member); for (int index = 0; index < [[#variableb3b0d640]].length; index++) { final [[#variablebc6ac0c0]] [[#variableb9fc8a80]]= [[#variableb3b0d640]][index]; if (isStatic && !JdtFlags.isStatic( [[#variableb9fc8a80]])) continue ; if (isRequiredPullableMember(queue, [[#variableb9fc8a80]])) queue.add( [[#variableb9fc8a80]]); } } finally { sub.done(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bc6ac0c0]] | IType |
1 | 2 | [[#bc6ac0c0]] | IField |
2 | 1 | [[#b3b0d640]] | requiredTypes |
2 | 2 | [[#b3b0d640]] | requiredFields |
3 | 1 | [[#bc6ac100]] | getTypesReferencedIn |
3 | 2 | [[#bc6ac100]] | getFieldsReferencedIn |
4 | 1 | [[#b9fc8a40]] | requiredMethods |
4 | 2 | [[#b9fc8a40]] | requiredFields |
5 | 1 | [[#b9fc8a80]] | requiredType |
5 | 2 | [[#b9fc8a80]] | requiredField |