CloneSet214


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
47210.999class_body_declarations[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14769
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/GenericXMLWriter.java
24768
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/XMLWriter.java
Clone Instance
1
Line Count
47
Source Line
69
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/GenericXMLWriter.java

        public void endTag(String name, boolean insertTab, boolean insertNewLine) {
                this.tab--;
                printTag('/' + name, null
                                         /*no parameters*/
                                         ,                  insertTab, insertNewLine, false
                                                                                           /*don't close tag*/
                                                                                           );
        }

        private void printTabulation() {
                for (int i = 0; i < tab; i++)
                        super.print('\t');
        }

        public void printTag(String name, HashMap parameters, boolean insertTab, boolean insertNewLine, boolean closeTag) {
                StringBuffer sb = new StringBuffer();
                sb.append("<"); //$NON-NLS-1$
                sb.append(name);
                if (parameters != null) {
                        int length = parameters.size();
                        String[] keys = new String[length];
                        parameters.keySet().toArray(keys);
                        Arrays.sort(keys);
                        for (int i = 0; i < length; i++) {
                                sb.append(" "); //$NON-NLS-1$
                                sb.append(keys[i]);
                                sb.append("=\""); //$NON-NLS-1$
                                sb.append(getEscaped(String.valueOf(parameters.get(keys[i]))));
                                sb.append("\""); //$NON-NLS-1$
                        }
                }
                if (closeTag) {
                        sb.append("/>"); //$NON-NLS-1$
                }
                else   {
                        sb.append(">"); //$NON-NLS-1$
                }
                printString(sb.toString(), insertTab, insertNewLine);
                if (parameters != null && !closeTag)
                        this.tab++;
        }

        public void printString(String string, boolean insertTab, boolean insertNewLine) {
                if (insertTab) {
                        printTabulation();
                }
                print(string);
                if (insertNewLine) {
                        print(this.lineSeparator);
                }
        }

        public void startTag(String name, boolean insertTab) {
                printTag(name, null
                                   /*no parameters*/
                                   ,                  insertTab, true
                                                                     /*insert new line*/
                                                                     ,                    false
                                                                                               /*don't close tag*/
                                                                                               );
                this.tab++;
        }


Clone Instance
2
Line Count
47
Source Line
68
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/XMLWriter.java

        public void endTag(String name, boolean insertTab, boolean insertNewLine) {
                this.tab--;
                printTag('/' + name, null
                                         /*no parameters*/
                                         ,                  insertTab, insertNewLine, false
                                                                                           /*don't close tag*/
                                                                                           );
        }

        private void printTabulation() {
                for (int i = 0; i < tab; i++)
                        super.print('\t');
        }

        public void printTag(String name, HashMap parameters, boolean insertTab, boolean insertNewLine, boolean closeTag) {
                StringBuffer sb = new StringBuffer();
                sb.append("<"); //$NON-NLS-1$
                sb.append(name);
                if (parameters != null) {
                        int length = parameters.size();
                        String[] keys = new String[length];
                        parameters.keySet().toArray(keys);
                        Util.sort(keys);
                        for (int i = 0; i < length; i++) {
                                sb.append(" "); //$NON-NLS-1$
                                sb.append(keys[i]);
                                sb.append("=\""); //$NON-NLS-1$
                                sb.append(getEscaped(String.valueOf(parameters.get(keys[i]))));
                                sb.append("\""); //$NON-NLS-1$
                        }
                }
                if (closeTag) {
                        sb.append("/>"); //$NON-NLS-1$
                }
                else   {
                        sb.append(">"); //$NON-NLS-1$
                }
                printString(sb.toString(), insertTab, insertNewLine);
                if (parameters != null && !closeTag)
                        this.tab++;
        }

        public void printString(String string, boolean insertTab, boolean insertNewLine) {
                if (insertTab) {
                        printTabulation();
                }
                print(string);
                if (insertNewLine) {
                        print(this.lineSeparator);
                }
        }

        public void startTag(String name, boolean insertTab) {
                printTag(name, null
                                   /*no parameters*/
                                   ,                  insertTab, true
                                                                     /*insert new line*/
                                                                     ,                    false
                                                                                               /*don't close tag*/
                                                                                               );
                this.tab++;
        }


Clone AbstractionParameter Count: 1Parameter Bindings

public void endTag(String name, boolean insertTab, boolean insertNewLine) {
  this.tab--;
  printTag('/' + name, null
                           /*no parameters*/
                           , insertTab, insertNewLine, false
                                                            /*don't close tag*/
                                                            );
}

private void printTabulation() {
  for (int i = 0; i < tab; i++)
    super.print('\t');
}

public void printTag(String name, HashMap parameters, boolean insertTab, boolean insertNewLine, boolean closeTag) {
  StringBuffer sb = new StringBuffer();
  sb.append("<"); //$NON-NLS-1$
  sb.append(name);
  if (parameters != null) {
    int length = parameters.size();
    String[] keys = new String[length];
    parameters.keySet().toArray(keys);
     [[#variable76295560]].sort(keys);
    for (int i = 0; i < length; i++) {
      sb.append(" "); //$NON-NLS-1$
      sb.append(keys[i]);
      sb.append("=\""); //$NON-NLS-1$
      sb.append(getEscaped(String.valueOf(parameters.get(keys[i]))));
      sb.append("\""); //$NON-NLS-1$
    }
  }
  if (closeTag) {
    sb.append("/>"); //$NON-NLS-1$
  }
  else {
    sb.append(">"); //$NON-NLS-1$
  }
  printString(sb.toString(), insertTab, insertNewLine);
  if (parameters != null && !closeTag)
    this.tab++;
}

public void printString(String string, boolean insertTab, boolean insertNewLine) {
  if (insertTab) {
    printTabulation();
  }
  print(string);
  if (insertNewLine) {
    print(this.lineSeparator);
  }
}

public void startTag(String name, boolean insertTab) {
  printTag(name, null
                     /*no parameters*/
                     , insertTab, true
                                      /*insert new line*/
                                      , false
                                             /*don't close tag*/
                                             );
  this.tab++;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#76295560]]
Arrays 
12[[#76295560]]
Util