CloneSet1317


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14220.995class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114892
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java
214908
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java
Clone Instance
1
Line Count
14
Source Line
892
Source File
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();
        }


Clone Instance
2
Line Count
14
Source Line
908
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java

        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();
        }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9d6d5f60]]
getMethodThrows 
12[[#9d6d5f60]]
getOldMethodThrows 
21[[#9d6d5f00]]
isDeleted 
22[[#9d6d5f00]]
isAdded