CloneSet2665


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
29230.978class_body_declarations[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12934
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/JavaElementTransfer.java
23035
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/TypedSourceTransfer.java
Clone Instance
1
Line Count
29
Source Line
34
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/JavaElementTransfer.java

        // Create a unique ID to make sure that different Eclipse
        // applications use different "types" of <code>JavaElementTransfer</code>
        private static final String TYPE_NAME = "java-element-transfer-format:" + System.currentTimeMillis() + ":" + fInstance.hashCode(); //$NON-NLS-2$//$NON-NLS-1$

        private static final int TYPEID = registerType(TYPE_NAME);

        private JavaElementTransfer() {
        }

        /**
         * Returns the singleton instance.
         *
         * @return the singleton instance
         */
        public static JavaElementTransfer getInstance() {
                return fInstance;
        }

        /* (non-Javadoc)
         * Method declared on Transfer.
         */
        protected int[] getTypeIds() {
                return new int[] {
                                   TYPEID
                                 };
        }

        /* (non-Javadoc)
         * Returns the type names.
         *
         * @return the list of type names
         */
        protected String[] getTypeNames() {
                return new String[] {
                                      TYPE_NAME
                                    };
        }


Clone Instance
2
Line Count
30
Source Line
35
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/reorg/TypedSourceTransfer.java

        // Create a unique ID to make sure that different Eclipse
        // applications use different "types" of <code>TypedSourceTransfer</code>
        private static final String TYPE_NAME = "typed-source-transfer-format:" + System.currentTimeMillis() + ":" + fgInstance.hashCode(); //$NON-NLS-2$//$NON-NLS-1$

        private static final int TYPEID = registerType(TYPE_NAME);

        private TypedSourceTransfer() {
        }

        /**
         * Returns the singleton instance.
        *
        * @return the singleton instance
        */
        public static TypedSourceTransfer getInstance() {
                return fgInstance;
        }

        /* (non-Javadoc)
         * Method declared on Transfer.
         */
        protected int[] getTypeIds() {
                return new int[] {
                                  TYPEID
                                 };
        }

        /* (non-Javadoc)
         * Returns the type names.
         *
         * @return the list of type names
         */
        protected String[] getTypeNames() {
                return new String[] {
                                     TYPE_NAME
                                    };
        }


Clone AbstractionParameter Count: 3Parameter Bindings

// Create a unique ID to make sure that different Eclipse
// applications use different "types" of <code>JavaElementTransfer</code>
// applications use different "types" of <code>TypedSourceTransfer</code>
private static final String TYPE_NAME = [[#variable9eef2440]] + System.currentTimeMillis() + ":" +  [[#variable9eef2420]].hashCode(); //$NON-NLS-2$//$NON-NLS-1$

private static final int TYPEID = registerType(TYPE_NAME);

private [[#variable9eef23a0]]() {
}

/**
         * Returns the singleton instance.
         *
         * @return the singleton instance
         */
/**
         * Returns the singleton instance.
        *
        * @return the singleton instance
        */
public static [[#variable9eef23a0]] getInstance() {
  return [[#variable9eef2420]];
}

/* (non-Javadoc)
         * Method declared on Transfer.
         */
protected int[] getTypeIds() {
  return new int[] {
                     TYPEID
                   };
}

/* (non-Javadoc)
         * Returns the type names.
         *
         * @return the list of type names
         */
protected String[] getTypeNames() {
  return new String[] {
                        TYPE_NAME
                      };
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9eef2440]]
"java-element-transfer-format:" 
12[[#9eef2440]]
"typed-source-transfer-format:" 
21[[#9eef2420]]
fInstance 
22[[#9eef2420]]
fgInstance 
31[[#9eef23a0]]
JavaElementTransfer 
32[[#9eef23a0]]
TypedSourceTransfer