CloneSet2052


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5320.978class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15602
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java
25813
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java
351111
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java
Clone Instance
1
Line Count
5
Source Line
602
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java

        public static boolean isInlineTempAvailable( final JavaTextSelection selection) throws JavaModelException {
                final IJavaElement[] elements = selection.resolveElementAtOffset();
                if (elements.length != 1)
                        return false;
                return (elements[0] instanceof ILocalVariable) && isInlineTempAvailable((ILocalVariable) elements[0]);
        }


Clone Instance
2
Line Count
5
Source Line
813
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java

        public static boolean isPromoteTempAvailable( final JavaTextSelection selection) throws JavaModelException {
                final IJavaElement[] elements = selection.resolveElementAtOffset();
                if (elements.length != 1)
                        return false;
                return (elements[0] instanceof ILocalVariable) && isPromoteTempAvailable((ILocalVariable) elements[0]);
        }


Clone Instance
3
Line Count
5
Source Line
1111
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/RefactoringAvailabilityTester.java

        public static boolean isSelfEncapsulateAvailable( final JavaTextSelection selection) throws JavaModelException {
                final IJavaElement[] elements = selection.resolveElementAtOffset();
                if (elements.length != 1)
                        return false;
                return (elements[0] instanceof IField) && isSelfEncapsulateAvailable((IField) elements[0]);
        }


Clone AbstractionParameter Count: 2Parameter Bindings

public static boolean  [[#variableb562b6c0]]( final JavaTextSelection selection) throws JavaModelException {
  final IJavaElement[] elements = selection.resolveElementAtOffset();
  if (elements.length != 1)
    return false;
  return (elements[0] instanceof [[#variableb562b720]]) && [[#variableb562b6c0]](( [[#variableb562b720]]) elements[0]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b562b6c0]]
isInlineTempAvailable 
12[[#b562b6c0]]
isPromoteTempAvailable 
13[[#b562b6c0]]
isSelfEncapsulateAvailable 
21[[#b562b720]]
ILocalVariable 
22[[#b562b720]]
ILocalVariable 
23[[#b562b720]]
IField