CloneSet2507


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12230.983statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112395
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SetClasspathOperation.java
212536
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SetClasspathOperation.java
Clone Instance
1
Line Count
12
Source Line
395
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SetClasspathOperation.java

                                                        final char[][] inclusionPatterns = ((ClasspathEntry) oldEntry).fullInclusionPatternChars();
                                                        final char[][] exclusionPatterns = ((ClasspathEntry) oldEntry).fullExclusionPatternChars();
                                                        postAction(new IPostAction() {
                                                                public String getID() {
                                                                        return path.toString();
                                                                }

                                                                public void run()
                                                                                  /* throws JavaModelException */
                                                                                                                  {
                                                                        indexManager.removeSourceFolderFromIndex(project, path, inclusionPatterns, exclusionPatterns);
                                                                }
                                                                   }, REMOVEALL_APPEND);
                                                        break;


Clone Instance
2
Line Count
12
Source Line
536
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SetClasspathOperation.java

                                                        final char[][] inclusionPatterns = ((ClasspathEntry) entry).fullInclusionPatternChars();
                                                        final char[][] exclusionPatterns = ((ClasspathEntry) entry).fullExclusionPatternChars();
                                                        postAction(new IPostAction() {
                                                                public String getID() {
                                                                        return path.toString();
                                                                }

                                                                public void run()
                                                                                  /* throws JavaModelException */
                                                                                                                  {
                                                                        indexManager.indexSourceFolder(project, path, inclusionPatterns, exclusionPatterns);
                                                                }
                                                                   }, APPEND); // append so that a removeSourceFolder action is not removed
                                                        break;


Clone AbstractionParameter Count: 3Parameter Bindings

final char[][] inclusionPatterns = ((ClasspathEntry)  [[#variable99bf0980]]).fullInclusionPatternChars();
final char[][] exclusionPatterns = ((ClasspathEntry)  [[#variable99bf0980]]).fullExclusionPatternChars();
postAction(new IPostAction() {
             public String getID() {
               return path.toString();
             }

             public void run()
                              /* throws JavaModelException */
                              {
               indexManager. [[#variable99bf0920]](project, path, inclusionPatterns, exclusionPatterns);
             }
           },  [[#variable9d981940]]); // append so that a removeSourceFolder action is not removed
break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#99bf0980]]
entry 
12[[#99bf0980]]
oldEntry 
21[[#99bf0920]]
indexSourceFolder 
22[[#99bf0920]]
removeSourceFolderFromIndex 
31[[#9d981940]]
APPEND 
32[[#9d981940]]
REMOVEALL_APPEND