Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 2 | 0.995 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 892 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java |
2 | 14 | 908 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java |
| ||||
private String getMethodThrows() { final String throwsString = " throws "; //$NON-NLS-1$ StringBuffer buff = new StringBuffer(throwsString); for (Iterator iter = fExceptionInfos.iterator(); iter.hasNext();) { ExceptionInfo info = (ExceptionInfo) iter.next(); if ( ! info.isDeleted()) { buff.append(info.getType().getElementName()); buff.append(", "); //$NON-NLS-1$ } } if (buff.length() == throwsString.length()) return ""; //$NON-NLS-1$ buff.delete(buff.length() - 2, buff.length()); return buff.toString(); } |
| ||||
private String getOldMethodThrows() { final String throwsString = " throws "; //$NON-NLS-1$ StringBuffer buff = new StringBuffer(throwsString); for (Iterator iter = fExceptionInfos.iterator(); iter.hasNext();) { ExceptionInfo info = (ExceptionInfo) iter.next(); if ( ! info.isAdded()) { buff.append(info.getType().getElementName()); buff.append(", "); //$NON-NLS-1$ } } if (buff.length() == throwsString.length()) return ""; //$NON-NLS-1$ buff.delete(buff.length() - 2, buff.length()); return buff.toString(); } |
| |||
private String [[#variable9d6d5f60]]() { final String throwsString = " throws "; //$NON-NLS-1$ StringBuffer buff = new StringBuffer(throwsString); for (Iterator iter = fExceptionInfos.iterator(); iter.hasNext();) { ExceptionInfo info = (ExceptionInfo) iter.next(); if ( !info. [[#variable9d6d5f00]]()) { buff.append(info.getType().getElementName()); buff.append(", "); //$NON-NLS-1$ } } if (buff.length() == throwsString.length()) return ""; //$NON-NLS-1$ buff.delete(buff.length() - 2, buff.length()); return buff.toString(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9d6d5f60]] | getMethodThrows |
1 | 2 | [[#9d6d5f60]] | getOldMethodThrows |
2 | 1 | [[#9d6d5f00]] | isDeleted |
2 | 2 | [[#9d6d5f00]] | isAdded |