CloneSet1823


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14201.000statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11498
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/AddProjectAction.java
21394
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/sourcelookup/JavaProjectSourceContainerBrowser.java
Clone Instance
1
Line Count
14
Source Line
98
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/AddProjectAction.java

                        Object[] selections = dialog.getResult();

                        List additions = new ArrayList(selections.length);
                        try {
                                for (int i = 0; i < selections.length; i++) {
                                        IJavaProject jp = (IJavaProject) selections[i];
                                        if (dialog.isAddRequiredProjects()) {
                                                collectRequiredProjects(jp, additions);
                                        }
                                        else   {
                                                additions.add(jp);
                                        }
                                }
                        } catch (JavaModelException e) {
                                status.add(e.getStatus());
                          }


Clone Instance
2
Line Count
13
Source Line
94
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/sourcelookup/JavaProjectSourceContainerBrowser.java

                        Object[] selections = dialog.getResult();
                        List additions = new ArrayList(selections.length);
                        try {
                                for (int i = 0; i < selections.length; i++) {
                                        IJavaProject jp = (IJavaProject) selections[i];
                                        if (dialog.isAddRequiredProjects()) {
                                                collectRequiredProjects(jp, additions);
                                        }
                                        else   {
                                                additions.add(jp);
                                        }
                                }
                        } catch (JavaModelException e) {
                                status.add(e.getStatus());
                          }


Clone AbstractionParameter Count: 0Parameter Bindings

Object[] selections = dialog.getResult();
List additions = new ArrayList(selections.length);
try {
  for (int i = 0; i < selections.length; i++) {
    IJavaProject jp = (IJavaProject) selections[i];
    if (dialog.isAddRequiredProjects()) {
      collectRequiredProjects(jp, additions);
    }
    else {
      additions.add(jp);
    }
  }
}
catch (JavaModelException e) {
  status.add(e.getStatus());
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None