CloneSet2030


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12201.000class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112100
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaFormatter.java
212591
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
Clone Instance
1
Line Count
12
Source Line
100
Source File
plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaFormatter.java

                /**
                 * Installs a java partitioner with <code>document</code>.
                 *
                 * @param document the document
                 */
                private static void installJavaStuff(Document document) {
                        String[] types = new String[] {
                                                                                   IJavaPartitions.JAVA_DOC,
                                                                                   IJavaPartitions.JAVA_MULTI_LINE_COMMENT,
                                                                                   IJavaPartitions.JAVA_SINGLE_LINE_COMMENT,
                                                                                   IJavaPartitions.JAVA_STRING,
                                                                                   IJavaPartitions.JAVA_CHARACTER,
                                                                                   IDocument.DEFAULT_CONTENT_TYPE
                                                      };
                        FastPartitioner partitioner = new FastPartitioner(new FastJavaPartitionScanner(), types);
                        partitioner.connect(document);
                        document.setDocumentPartitioner(IJavaPartitions.JAVA_PARTITIONING, partitioner);
                }


Clone Instance
2
Line Count
12
Source Line
591
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java

        /**
         * Installs a java partitioner with <code>document</code>.
         *
         * @param document the document
         */
        private static void installJavaStuff(Document document) {
                String[] types = new String[] {
                                                                           IJavaPartitions.JAVA_DOC,
                                                                           IJavaPartitions.JAVA_MULTI_LINE_COMMENT,
                                                                           IJavaPartitions.JAVA_SINGLE_LINE_COMMENT,
                                                                           IJavaPartitions.JAVA_STRING,
                                                                           IJavaPartitions.JAVA_CHARACTER,
                                                                           IDocument.DEFAULT_CONTENT_TYPE
                                              };
                FastPartitioner partitioner = new FastPartitioner(new FastJavaPartitionScanner(), types);
                partitioner.connect(document);
                document.setDocumentPartitioner(IJavaPartitions.JAVA_PARTITIONING, partitioner);
        }


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Installs a java partitioner with <code>document</code>.
         *
         * @param document the document
         */
/**
                 * Installs a java partitioner with <code>document</code>.
                 *
                 * @param document the document
                 */
private static void installJavaStuff(Document document) {
  String[] types = new String[] {
                                  IJavaPartitions.JAVA_DOC,
                                  IJavaPartitions.JAVA_MULTI_LINE_COMMENT,
                                  IJavaPartitions.JAVA_SINGLE_LINE_COMMENT,
                                  IJavaPartitions.JAVA_STRING,
                                  IJavaPartitions.JAVA_CHARACTER,
                                  IDocument.DEFAULT_CONTENT_TYPE
                                };
  FastPartitioner partitioner = new FastPartitioner(new FastJavaPartitionScanner(), types);
  partitioner.connect(document);
  document.setDocumentPartitioner(IJavaPartitions.JAVA_PARTITIONING, partitioner);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None