CloneSet3810


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
4230.972class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14345
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java
24364
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java
Clone Instance
1
Line Count
4
Source Line
345
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java

        /**
         * Creates a new rename support for the given {@link ITypeParameter}.
         * 
         * @param parameter the {@link ITypeParameter} to be renamed.
         * @param newName the parameter's new name. <code>null</code> is a valid value
         * indicating that no new name is provided.
         * @param flags flags controlling additional parameters. Valid flags are
         * <code>UPDATE_REFERENCES</code>, or <code>NONE</code>.
         * @return the {@link RenameSupport}.
         * @throws CoreException if an unexpected error occurred while creating
         * the {@link RenameSupport}.
         * @since 3.1
         */
        public static RenameSupport create(ITypeParameter parameter, String newName, int flags) throws CoreException {
                RenameTypeParameterProcessor processor = new RenameTypeParameterProcessor(parameter);
                processor.setUpdateReferences(updateReferences(flags));
                return new RenameSupport(processor, newName, flags);
        }


Clone Instance
2
Line Count
4
Source Line
364
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/refactoring/RenameSupport.java

        /**
         * Creates a new rename support for the given {@link ILocalVariable}.
         * 
         * @param variable the {@link ILocalVariable} to be renamed.
         * @param newName the variable's new name. <code>null</code> is a valid value
         * indicating that no new name is provided.
         * @param flags flags controlling additional parameters. Valid flags are
         * <code>UPDATE_REFERENCES</code>, or <code>NONE</code>.
         * @return the {@link RenameSupport}.
         * @throws CoreException if an unexpected error occurred while creating
         * the {@link RenameSupport}.
         * @since 3.1
         */
        public static RenameSupport create(ILocalVariable variable, String newName, int flags) throws CoreException {
                RenameLocalVariableProcessor processor = new RenameLocalVariableProcessor(variable);
                processor.setUpdateReferences(updateReferences(flags));
                return new RenameSupport(processor, newName, flags);
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * Creates a new rename support for the given {@link ITypeParameter}.
         * 
         * @param parameter the {@link ITypeParameter} to be renamed.
         * @param newName the parameter's new name. <code>null</code> is a valid value
         * indicating that no new name is provided.
         * @param flags flags controlling additional parameters. Valid flags are
         * <code>UPDATE_REFERENCES</code>, or <code>NONE</code>.
         * @return the {@link RenameSupport}.
         * @throws CoreException if an unexpected error occurred while creating
         * the {@link RenameSupport}.
         * @since 3.1
         */
/**
         * Creates a new rename support for the given {@link ILocalVariable}.
         * 
         * @param variable the {@link ILocalVariable} to be renamed.
         * @param newName the variable's new name. <code>null</code> is a valid value
         * indicating that no new name is provided.
         * @param flags flags controlling additional parameters. Valid flags are
         * <code>UPDATE_REFERENCES</code>, or <code>NONE</code>.
         * @return the {@link RenameSupport}.
         * @throws CoreException if an unexpected error occurred while creating
         * the {@link RenameSupport}.
         * @since 3.1
         */
public static RenameSupport create( [[#variable9d174240]]  [[#variable9cef26a0]], String newName, int flags) throws CoreException {
   [[#variable9cef27a0]] processor = new [[#variable9cef27a0]]( [[#variable9cef26a0]]);
  processor.setUpdateReferences(updateReferences(flags));
  return new RenameSupport(processor, newName, flags);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9d174240]]
ITypeParameter 
12[[#9d174240]]
ILocalVariable 
21[[#9cef26a0]]
parameter 
22[[#9cef26a0]]
variable 
31[[#9cef27a0]]
RenameTypeParameterProcessor 
32[[#9cef27a0]]
RenameLocalVariableProcessor