CloneSet1893


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25350.955compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12511
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/scripting/ConvertAnonymousRefactoringContribution.java
22511
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/scripting/InlineConstantRefactoringContribution.java
32511
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/scripting/PromoteTempToFieldRefactoringContribution.java
Clone Instance
1
Line Count
25
Source Line
11
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/scripting/ConvertAnonymousRefactoringContribution.java

/*******************************************************************************
 * Copyright (c) 2005, 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.corext.refactoring.scripting;

import org.eclipse.core.runtime.CoreException;

import org.eclipse.ltk.core.refactoring.Refactoring;
import org.eclipse.ltk.core.refactoring.RefactoringDescriptor;

import org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringContribution;
import org.eclipse.jdt.internal.corext.refactoring.code.ConvertAnonymousToNestedRefactoring;

/**
 * Refactoring contribution for the convert anonymous refactoring.
 * 
 * @since 3.2
 */
public final class ConvertAnonymousRefactoringContribution extends JavaRefactoringContribution {

        /**
         * {@inheritDoc}
         */
        public Refactoring createRefactoring( final RefactoringDescriptor descriptor) throws CoreException {
                return new ConvertAnonymousToNestedRefactoring(null, null, 0, 0);
        }
}




Clone Instance
2
Line Count
25
Source Line
11
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/scripting/InlineConstantRefactoringContribution.java

/*******************************************************************************
 * Copyright (c) 2005, 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.corext.refactoring.scripting;

import org.eclipse.core.runtime.CoreException;

import org.eclipse.ltk.core.refactoring.Refactoring;
import org.eclipse.ltk.core.refactoring.RefactoringDescriptor;

import org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringContribution;
import org.eclipse.jdt.internal.corext.refactoring.code.InlineConstantRefactoring;

/**
 * Refactoring contribution for the inline constant refactoring.
 * 
 * @since 3.2
 */
public final class InlineConstantRefactoringContribution extends JavaRefactoringContribution {

        /**
         * {@inheritDoc}
         */
        public final Refactoring createRefactoring( final RefactoringDescriptor descriptor) throws CoreException {
                return new InlineConstantRefactoring(null, null, 0, 0);
        }
}




Clone Instance
3
Line Count
25
Source Line
11
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/scripting/PromoteTempToFieldRefactoringContribution.java

/*******************************************************************************
 * Copyright (c) 2005, 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.corext.refactoring.scripting;

import org.eclipse.core.runtime.CoreException;

import org.eclipse.ltk.core.refactoring.Refactoring;
import org.eclipse.ltk.core.refactoring.RefactoringDescriptor;

import org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringContribution;
import org.eclipse.jdt.internal.corext.refactoring.code.PromoteTempToFieldRefactoring;

/**
 * Refactoring contribution for the extract interface refactoring.
 * 
 * @since 3.2
 */
public final class PromoteTempToFieldRefactoringContribution extends JavaRefactoringContribution {

        /**
         * {@inheritDoc}
         */
        public final Refactoring createRefactoring( final RefactoringDescriptor descriptor) throws CoreException {
                return new PromoteTempToFieldRefactoring(null, 0, 0, null);
        }
}




Clone AbstractionParameter Count: 5Parameter Bindings

/*******************************************************************************
 * Copyright (c) 2005, 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.corext.refactoring.scripting;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.ltk.core.refactoring.Refactoring;
import org.eclipse.ltk.core.refactoring.RefactoringDescriptor;
import org.eclipse.jdt.internal.corext.refactoring.JavaRefactoringContribution;
import org.eclipse.jdt.internal.corext.refactoring.code. [[#variable56348080]];

/**
 * Refactoring contribution for the convert anonymous refactoring.
 * 
 * @since 3.2
 */
/**
 * Refactoring contribution for the inline constant refactoring.
 * 
 * @since 3.2
 */
/**
 * Refactoring contribution for the extract interface refactoring.
 * 
 * @since 3.2
 */
public final class [[#variable9330f440]]extends JavaRefactoringContribution {
   [[#variable968052e0]]Refactoring createRefactoring( final RefactoringDescriptor descriptor) throws CoreException {
    return new [[#variable56348080]](null,  [[#variable9330f3a0]], 0,  [[#variable59829fe0]]);
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#56348080]]
ConvertAnonymousToNestedRefactoring 
12[[#56348080]]
InlineConstantRefactoring 
13[[#56348080]]
PromoteTempToFieldRefactoring 
21[[#9330f440]]
ConvertAnonymousRefactoringContribution 
22[[#9330f440]]
InlineConstantRefactoringContribution 
23[[#9330f440]]
PromoteTempToFieldRefactoringContribution 
31[[#968052e0]]
/**
 * {@inheritDoc}
 */
public 
32[[#968052e0]]
/**
 * {@inheritDoc}
 */
public final 
33[[#968052e0]]
/**
 * {@inheritDoc}
 */
public final 
41[[#9330f3a0]]
null 
42[[#9330f3a0]]
null 
43[[#9330f3a0]]
0 
51[[#59829fe0]]
0 
52[[#59829fe0]]
0 
53[[#59829fe0]]
null