Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 6 | 0.965 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 20 | 59 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/monitors/JavaOwnedMonitor.java |
2 | 20 | 56 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/monitors/JavaWaitingThread.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; |
| ||||
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; |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b9287c00]] | fWaitingThreads |
1 | 2 | [[#b9287c00]] | fOwnedMonitors |
2 | 1 | [[#b9287b40]] | waitingThreads |
2 | 2 | [[#b9287b40]] | ownedMonitors |
3 | 1 | [[#55c64580]] | JavaWaitingThread |
3 | 2 | [[#55c64580]] | JavaOwnedMonitor |
4 | 1 | [[#b9287a80]] | JavaMonitorThread |
4 | 2 | [[#b9287a80]] | JavaMonitor |
5 | 1 | [[#bdad0c80]] | waitingThread |
5 | 2 | [[#bdad0c80]] | ownedMonitor |
6 | 1 | [[#b5622220]] | getThread |
6 | 2 | [[#b5622220]] | getMonitor |