CloneSet3060


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18102
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ExperimentalResultCollector.java
28137
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaTypeCompletionProposalComputer.java
Clone Instance
1
Line Count
8
Source Line
102
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ExperimentalResultCollector.java

        /**
         * Returns <code>true</code> if generic proposals should be allowed,
         * <code>false</code> if not. Note that even though code (in a library)
         * may be referenced that uses generics, it is still possible that the
         * current source does not allow generics.
         *
         * @return <code>true</code> if the generic proposals should be allowed,
         *         <code>false</code> if not
         */
        private final boolean shouldProposeGenerics(IJavaProject project) {
                String sourceVersion;
                if (project != null)
                        sourceVersion = project.getOption(JavaCore.COMPILER_SOURCE, true);
                else
                        sourceVersion = JavaCore.getOption(JavaCore.COMPILER_SOURCE);

                return sourceVersion != null && JavaCore.VERSION_1_5.compareTo(sourceVersion) <= 0;
        }


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

        /**
         * Returns <code>true</code> if generic proposals should be allowed,
         * <code>false</code> if not. Note that even though code (in a library)
         * may be referenced that uses generics, it is still possible that the
         * current source does not allow generics.
         *
         * @return <code>true</code> if the generic proposals should be allowed,
         *         <code>false</code> if not
         */
        private final boolean shouldProposeGenerics(IJavaProject project) {
                String sourceVersion;
                if (project != null)
                        sourceVersion = project.getOption(JavaCore.COMPILER_SOURCE, true);
                else
                        sourceVersion = JavaCore.getOption(JavaCore.COMPILER_SOURCE);

                return sourceVersion != null && JavaCore.VERSION_1_5.compareTo(sourceVersion) <= 0;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Returns <code>true</code> if generic proposals should be allowed,
         * <code>false</code> if not. Note that even though code (in a library)
         * may be referenced that uses generics, it is still possible that the
         * current source does not allow generics.
         *
         * @return <code>true</code> if the generic proposals should be allowed,
         *         <code>false</code> if not
         */
private final boolean shouldProposeGenerics(IJavaProject project) {
  String sourceVersion;
  if (project != null)
    sourceVersion = project.getOption(JavaCore.COMPILER_SOURCE, true);
  else
    sourceVersion = JavaCore.getOption(JavaCore.COMPILER_SOURCE);
  return sourceVersion != null && JavaCore.VERSION_1_5.compareTo(sourceVersion) <= 0;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None