Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
29 | 2 | 3 | 0.978 | class_body_declarations[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 29 | 34 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/JavaElementTransfer.java |
2 | 30 | 35 | 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>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 }; } |
| ||||
// 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 }; } |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9eef2440]] | "java-element-transfer-format:" |
1 | 2 | [[#9eef2440]] | "typed-source-transfer-format:" |
2 | 1 | [[#9eef2420]] | fInstance |
2 | 2 | [[#9eef2420]] | fgInstance |
3 | 1 | [[#9eef23a0]] | JavaElementTransfer |
3 | 2 | [[#9eef23a0]] | TypedSourceTransfer |