CloneSet342


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25220.985class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12526
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaNoTypeCompletionProposalComputer.java
22542
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaTypeCompletionProposalComputer.java
Clone Instance
1
Line Count
25
Source Line
26
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaNoTypeCompletionProposalComputer.java

        /*
         * @see org.eclipse.jdt.internal.ui.text.java.JavaCompletionProposalComputer#createCollector(org.eclipse.jdt.ui.text.java.JavaContentAssistInvocationContext)
         */
        protected CompletionProposalCollector createCollector(JavaContentAssistInvocationContext context) {
                CompletionProposalCollector collector = super.createCollector(context);
                collector.setIgnored(CompletionProposal.ANNOTATION_ATTRIBUTE_REF, false);
                collector.setIgnored(CompletionProposal.ANONYMOUS_CLASS_DECLARATION, false);
                collector.setIgnored(CompletionProposal.FIELD_REF, false);
                collector.setIgnored(CompletionProposal.KEYWORD, false);
                collector.setIgnored(CompletionProposal.LABEL_REF, false);
                collector.setIgnored(CompletionProposal.LOCAL_VARIABLE_REF, false);
                collector.setIgnored(CompletionProposal.METHOD_DECLARATION, false);
                collector.setIgnored(CompletionProposal.METHOD_NAME_REFERENCE, false);
                collector.setIgnored(CompletionProposal.METHOD_REF, false);
                collector.setIgnored(CompletionProposal.PACKAGE_REF, false);
                collector.setIgnored(CompletionProposal.POTENTIAL_METHOD_DECLARATION, false);
                collector.setIgnored(CompletionProposal.VARIABLE_DECLARATION, false);

                collector.setIgnored(CompletionProposal.JAVADOC_BLOCK_TAG, true);
                collector.setIgnored(CompletionProposal.JAVADOC_FIELD_REF, true);
                collector.setIgnored(CompletionProposal.JAVADOC_INLINE_TAG, true);
                collector.setIgnored(CompletionProposal.JAVADOC_METHOD_REF, true);
                collector.setIgnored(CompletionProposal.JAVADOC_PARAM_REF, true);
                collector.setIgnored(CompletionProposal.JAVADOC_TYPE_REF, true);
                collector.setIgnored(CompletionProposal.JAVADOC_VALUE_REF, true);

                collector.setIgnored(CompletionProposal.TYPE_REF, true);
                return collector;
        }


Clone Instance
2
Line Count
25
Source Line
42
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaTypeCompletionProposalComputer.java

        /*
         * @see org.eclipse.jdt.internal.ui.text.java.JavaCompletionProposalComputer#createCollector(org.eclipse.jdt.ui.text.java.JavaContentAssistInvocationContext)
         */
        protected CompletionProposalCollector createCollector(JavaContentAssistInvocationContext context) {
                CompletionProposalCollector collector = super.createCollector(context);
                collector.setIgnored(CompletionProposal.ANNOTATION_ATTRIBUTE_REF, true);
                collector.setIgnored(CompletionProposal.ANONYMOUS_CLASS_DECLARATION, true);
                collector.setIgnored(CompletionProposal.FIELD_REF, true);
                collector.setIgnored(CompletionProposal.KEYWORD, true);
                collector.setIgnored(CompletionProposal.LABEL_REF, true);
                collector.setIgnored(CompletionProposal.LOCAL_VARIABLE_REF, true);
                collector.setIgnored(CompletionProposal.METHOD_DECLARATION, true);
                collector.setIgnored(CompletionProposal.METHOD_NAME_REFERENCE, true);
                collector.setIgnored(CompletionProposal.METHOD_REF, true);
                collector.setIgnored(CompletionProposal.PACKAGE_REF, true);
                collector.setIgnored(CompletionProposal.POTENTIAL_METHOD_DECLARATION, true);
                collector.setIgnored(CompletionProposal.VARIABLE_DECLARATION, true);

                collector.setIgnored(CompletionProposal.JAVADOC_BLOCK_TAG, true);
                collector.setIgnored(CompletionProposal.JAVADOC_FIELD_REF, true);
                collector.setIgnored(CompletionProposal.JAVADOC_INLINE_TAG, true);
                collector.setIgnored(CompletionProposal.JAVADOC_METHOD_REF, true);
                collector.setIgnored(CompletionProposal.JAVADOC_PARAM_REF, true);
                collector.setIgnored(CompletionProposal.JAVADOC_TYPE_REF, true);
                collector.setIgnored(CompletionProposal.JAVADOC_VALUE_REF, true);

                collector.setIgnored(CompletionProposal.TYPE_REF, false);
                return collector;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/*
         * @see org.eclipse.jdt.internal.ui.text.java.JavaCompletionProposalComputer#createCollector(org.eclipse.jdt.ui.text.java.JavaContentAssistInvocationContext)
         */
protected CompletionProposalCollector createCollector(JavaContentAssistInvocationContext context) {
  CompletionProposalCollector collector = super.createCollector(context);
  collector.setIgnored(CompletionProposal.ANNOTATION_ATTRIBUTE_REF,  [[#variableb7113de0]]);
  collector.setIgnored(CompletionProposal.ANONYMOUS_CLASS_DECLARATION,  [[#variableb7113de0]]);
  collector.setIgnored(CompletionProposal.FIELD_REF,  [[#variableb7113de0]]);
  collector.setIgnored(CompletionProposal.KEYWORD,  [[#variableb7113de0]]);
  collector.setIgnored(CompletionProposal.LABEL_REF,  [[#variableb7113de0]]);
  collector.setIgnored(CompletionProposal.LOCAL_VARIABLE_REF,  [[#variableb7113de0]]);
  collector.setIgnored(CompletionProposal.METHOD_DECLARATION,  [[#variableb7113de0]]);
  collector.setIgnored(CompletionProposal.METHOD_NAME_REFERENCE,  [[#variableb7113de0]]);
  collector.setIgnored(CompletionProposal.METHOD_REF,  [[#variableb7113de0]]);
  collector.setIgnored(CompletionProposal.PACKAGE_REF,  [[#variableb7113de0]]);
  collector.setIgnored(CompletionProposal.POTENTIAL_METHOD_DECLARATION,  [[#variableb7113de0]]);
  collector.setIgnored(CompletionProposal.VARIABLE_DECLARATION,  [[#variableb7113de0]]);
  collector.setIgnored(CompletionProposal.JAVADOC_BLOCK_TAG, true);
  collector.setIgnored(CompletionProposal.JAVADOC_FIELD_REF, true);
  collector.setIgnored(CompletionProposal.JAVADOC_INLINE_TAG, true);
  collector.setIgnored(CompletionProposal.JAVADOC_METHOD_REF, true);
  collector.setIgnored(CompletionProposal.JAVADOC_PARAM_REF, true);
  collector.setIgnored(CompletionProposal.JAVADOC_TYPE_REF, true);
  collector.setIgnored(CompletionProposal.JAVADOC_VALUE_REF, true);
  collector.setIgnored(CompletionProposal.TYPE_REF,  [[#variableb7113dc0]]);
  return collector;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b7113de0]]
true 
12[[#b7113de0]]
false 
21[[#b7113dc0]]
false 
22[[#b7113dc0]]
true