CloneSet849


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20260.965statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12059
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/monitors/JavaOwnedMonitor.java
22056
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/monitors/JavaWaitingThread.java
Clone Instance
1
Line Count
20
Source Line
59
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/monitors/JavaOwnedMonitor.java

                if (fWaitingThreads == null) {
                        // the list was empty, creating new objects
                        for (int i = 0; i < waitingThreads.length; i++) {
                                tmp[i] = new JavaWaitingThread(waitingThreads[i], this );
                        }
                }
                else   {
                        // trying to reuse the objects from the previous list
        outer:  for (int i = 0; i < waitingThreads.length; i++) {
                                JavaMonitorThread waitingThread = waitingThreads[i];
                                for (int j = 0; j < fWaitingThreads.length; j++) {
                                        if (fWaitingThreads[j].getThread() == waitingThread) {
                                                tmp[i] = fWaitingThreads[j];
                                                continue outer;
                                        }
                                }
                                tmp[i] = new JavaWaitingThread(waitingThread, this );
                }
                }
                fWaitingThreads = tmp;
                return fWaitingThreads;


Clone Instance
2
Line Count
20
Source Line
56
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/monitors/JavaWaitingThread.java

                if (fOwnedMonitors == null) {
                        // the list was empty, creating new objects
                        for (int i = 0; i < ownedMonitors.length; i++) {
                                tmp[i] = new JavaOwnedMonitor(ownedMonitors[i], this );
                        }
                }
                else   {
                        // trying to reuse the objects from the previous list
        outer:  for (int i = 0; i < ownedMonitors.length; i++) {
                                JavaMonitor ownedMonitor = ownedMonitors[i];
                                for (int j = 0; j < fOwnedMonitors.length; j++) {
                                        if (fOwnedMonitors[j].getMonitor() == ownedMonitor) {
                                                tmp[i] = fOwnedMonitors[j];
                                                continue outer;
                                        }
                                }
                                tmp[i] = new JavaOwnedMonitor(ownedMonitor, this );
                }
                }
                fOwnedMonitors = tmp;
                return fOwnedMonitors;


Clone AbstractionParameter Count: 6Parameter Bindings

if ( [[#variableb9287c00]]== null) {
  // the list was empty, creating new objects
  for (int i = 0; i <  [[#variableb9287b40]].length; i++) {
    tmp[i] = new [[#variable55c64580]]( [[#variableb9287b40]][i], this );
  }
}
else {
  // trying to reuse the objects from the previous list
  outer:
    for (int i = 0; i <  [[#variableb9287b40]].length; i++) {
       [[#variableb9287a80]]  [[#variablebdad0c80]]= [[#variableb9287b40]][i];
      for (int j = 0; j <  [[#variableb9287c00]].length; j++) {
        if ( [[#variableb9287c00]][j]. [[#variableb5622220]]() == [[#variablebdad0c80]]) {
          tmp[i] = [[#variableb9287c00]][j];
          continue outer;
        }
      }
      tmp[i] = new [[#variable55c64580]]( [[#variablebdad0c80]], this );
    }
}
 [[#variableb9287c00]]= tmp;
return [[#variableb9287c00]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b9287c00]]
fWaitingThreads 
12[[#b9287c00]]
fOwnedMonitors 
21[[#b9287b40]]
waitingThreads 
22[[#b9287b40]]
ownedMonitors 
31[[#55c64580]]
JavaWaitingThread 
32[[#55c64580]]
JavaOwnedMonitor 
41[[#b9287a80]]
JavaMonitorThread 
42[[#b9287a80]]
JavaMonitor 
51[[#bdad0c80]]
waitingThread 
52[[#bdad0c80]]
ownedMonitor 
61[[#b5622220]]
getThread 
62[[#b5622220]]
getMonitor