Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
47 | 2 | 1 | 0.999 | class_body_declarations[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 47 | 69 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/GenericXMLWriter.java |
2 | 47 | 68 | 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); 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++; } |
| ||||
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++; } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#76295560]] | Arrays |
1 | 2 | [[#76295560]] | Util |