CloneSet1224


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12201.000statement_sequence[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112128
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java
212191
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaDocContext.java
Clone Instance
1
Line Count
12
Source Line
128
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java

                TemplateBuffer buffer = translator.translate(template);

                getContextType().resolve(buffer, this );

                IPreferenceStore prefs = JavaPlugin.getDefault().getPreferenceStore();
                boolean useCodeFormatter = prefs.getBoolean(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER);

                IJavaProject project = getCompilationUnit() != null ? getCompilationUnit().getJavaProject():  null;
                JavaFormatter formatter = new JavaFormatter(TextUtilities.getDefaultLineDelimiter(getDocument()), getIndentation(), useCodeFormatter, project);
                formatter.format(buffer, this );

                return buffer;


Clone Instance
2
Line Count
12
Source Line
191
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaDocContext.java

                TemplateBuffer buffer = translator.translate(template);

                getContextType().resolve(buffer, this );

                IPreferenceStore prefs = JavaPlugin.getDefault().getPreferenceStore();
                boolean useCodeFormatter = prefs.getBoolean(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER);

                IJavaProject project = getCompilationUnit() != null ? getCompilationUnit().getJavaProject():  null;
                JavaFormatter formatter = new JavaFormatter(TextUtilities.getDefaultLineDelimiter(getDocument()), getIndentation(), useCodeFormatter, project);
                formatter.format(buffer, this );

                return buffer;


Clone AbstractionParameter Count: 0Parameter Bindings

TemplateBuffer buffer = translator.translate(template);
getContextType().resolve(buffer, this );
IPreferenceStore prefs = JavaPlugin.getDefault().getPreferenceStore();
boolean useCodeFormatter = prefs.getBoolean(PreferenceConstants.TEMPLATES_USE_CODEFORMATTER);
IJavaProject project = getCompilationUnit() != null ? getCompilationUnit().getJavaProject(): null;
JavaFormatter formatter = new JavaFormatter(TextUtilities.getDefaultLineDelimiter(getDocument()), getIndentation(), useCodeFormatter, project);
formatter.format(buffer, this );
return buffer;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None