CloneSet913


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14250.976statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114415
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoringProcessor.java
214430
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoringProcessor.java
Clone Instance
1
Line Count
14
Source Line
415
Source File
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();
                          }


Clone Instance
2
Line Count
14
Source Line
430
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/PullUpRefactoringProcessor.java

                        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();
                          }


Clone AbstractionParameter Count: 5Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bc6ac0c0]]
IType 
12[[#bc6ac0c0]]
IField 
21[[#b3b0d640]]
requiredTypes 
22[[#b3b0d640]]
requiredFields 
31[[#bc6ac100]]
getTypesReferencedIn 
32[[#bc6ac100]]
getFieldsReferencedIn 
41[[#b9fc8a40]]
requiredMethods 
42[[#b9fc8a40]]
requiredFields 
51[[#b9fc8a80]]
requiredType 
52[[#b9fc8a80]]
requiredField