CloneSet361


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13401.000executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1131099
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ConvertAnonymousToNestedRefactoring.java
213900
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/InlineConstantRefactoring.java
313370
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/InlineTempRefactoring.java
4131276
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/IntroduceFactoryRefactoring.java
Clone Instance
1
Line Count
13
Source Line
1099
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ConvertAnonymousToNestedRefactoring.java

                                               {
                                int offset = -1;
                                int length = -1;
                                final StringTokenizer tokenizer = new StringTokenizer(selection);
                                if (tokenizer.hasMoreTokens())
                                        offset = Integer.valueOf(tokenizer.nextToken()).intValue();
                                if (tokenizer.hasMoreTokens())
                                        length = Integer.valueOf(tokenizer.nextToken()).intValue();
                                if (offset >= 0 && length >= 0) {
                                        fSelectionStart = offset;
                                        fSelectionLength = length;
                                }
                                else    return RefactoringStatus.createFatalErrorStatus(Messages.format(RefactoringCoreMessages.InitializableRefactoring_illegal_argument, new Object[] {
                                                                                                                                                                                          selection, JavaRefactoringDescriptor.ATTRIBUTE_SELECTION
                                                                                                                                                                                        } ));
                                               }


Clone Instance
2
Line Count
13
Source Line
900
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/InlineConstantRefactoring.java

                                               {
                                int offset = -1;
                                int length = -1;
                                final StringTokenizer tokenizer = new StringTokenizer(selection);
                                if (tokenizer.hasMoreTokens())
                                        offset = Integer.valueOf(tokenizer.nextToken()).intValue();
                                if (tokenizer.hasMoreTokens())
                                        length = Integer.valueOf(tokenizer.nextToken()).intValue();
                                if (offset >= 0 && length >= 0) {
                                        fSelectionStart = offset;
                                        fSelectionLength = length;
                                }
                                else    return RefactoringStatus.createFatalErrorStatus(Messages.format(RefactoringCoreMessages.InitializableRefactoring_illegal_argument, new Object[] {
                                                                                                                                                                                          selection, JavaRefactoringDescriptor.ATTRIBUTE_SELECTION
                                                                                                                                                                                        } ));
                                               }


Clone Instance
3
Line Count
13
Source Line
370
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/InlineTempRefactoring.java

                                               {
                                int offset = -1;
                                int length = -1;
                                final StringTokenizer tokenizer = new StringTokenizer(selection);
                                if (tokenizer.hasMoreTokens())
                                        offset = Integer.valueOf(tokenizer.nextToken()).intValue();
                                if (tokenizer.hasMoreTokens())
                                        length = Integer.valueOf(tokenizer.nextToken()).intValue();
                                if (offset >= 0 && length >= 0) {
                                        fSelectionStart = offset;
                                        fSelectionLength = length;
                                }
                                else    return RefactoringStatus.createFatalErrorStatus(Messages.format(RefactoringCoreMessages.InitializableRefactoring_illegal_argument, new Object[] {
                                                                                                                                                                                          selection, JavaRefactoringDescriptor.ATTRIBUTE_SELECTION
                                                                                                                                                                                        } ));
                                               }


Clone Instance
4
Line Count
13
Source Line
1276
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/IntroduceFactoryRefactoring.java

                                               {
                                int offset = -1;
                                int length = -1;
                                final StringTokenizer tokenizer = new StringTokenizer(selection);
                                if (tokenizer.hasMoreTokens())
                                        offset = Integer.valueOf(tokenizer.nextToken()).intValue();
                                if (tokenizer.hasMoreTokens())
                                        length = Integer.valueOf(tokenizer.nextToken()).intValue();
                                if (offset >= 0 && length >= 0) {
                                        fSelectionStart = offset;
                                        fSelectionLength = length;
                                }
                                else    return RefactoringStatus.createFatalErrorStatus(Messages.format(RefactoringCoreMessages.InitializableRefactoring_illegal_argument, new Object[] {
                                                                                                                                                                                          selection, JavaRefactoringDescriptor.ATTRIBUTE_SELECTION
                                                                                                                                                                                        } ));
                                               }


Clone AbstractionParameter Count: 0Parameter Bindings

{
  int offset = -1;
  int length = -1;
  final StringTokenizer tokenizer = new StringTokenizer(selection);
  if (tokenizer.hasMoreTokens())
    offset = Integer.valueOf(tokenizer.nextToken()).intValue();
  if (tokenizer.hasMoreTokens())
    length = Integer.valueOf(tokenizer.nextToken()).intValue();
  if (offset >= 0 && length >= 0) {
    fSelectionStart = offset;
    fSelectionLength = length;
  }
  else
    return RefactoringStatus.createFatalErrorStatus(Messages.format(RefactoringCoreMessages.InitializableRefactoring_illegal_argument, new Object[] {
                                                                                                                                                      selection,
                                                                                                                                                      JavaRefactoringDescriptor.ATTRIBUTE_SELECTION
                                                                                                                                                    } ));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None