Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
25 | 2 | 4 | 0.972 | class_body_declarations[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 25 | 28 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/monitors/JavaContendedMonitor.java |
2 | 26 | 28 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/monitors/JavaOwnedMonitor.java |
| ||||
/** * The monitor object in the threads and monitors model. */ private JavaMonitor fMonitor; /** * The thread which owns this monitor. */ private JavaOwningThread fOwningThread; /** * The parent, in the debug view tree. */ private JavaOwningThread fParent; public JavaContendedMonitor(JavaMonitor monitor, JavaOwningThread parent) { fMonitor = monitor; monitor.addElement(this ); fParent = parent; } public JavaMonitor getMonitor() { return fMonitor; } public Object getParent() { if (fParent.getParent() == null) { return fParent.getThread().getOriginalThread(); } return fParent; } |
| ||||
/** * The monitor object in the thread and monitor model. */ private JavaMonitor fMonitor; /** * The threads waiting for this monitor. */ private JavaWaitingThread[] fWaitingThreads; /** * The parent, in the debug view tree. */ private JavaWaitingThread fParent; public JavaOwnedMonitor(JavaMonitor monitor, JavaWaitingThread parent) { fMonitor = monitor; monitor.addElement(this ); fParent = parent; } public JavaMonitor getMonitor() { return fMonitor; } public Object getParent() { if (fParent.getParent() == null) { return fParent.getThread().getOriginalThread(); } return fParent; } |
| |||
/** * The monitor object in the threads and monitors model. */ /** * The monitor object in the thread and monitor model. */ private JavaMonitor fMonitor; /** * The thread which owns this monitor. */ /** * The threads waiting for this monitor. */ private [[#variableb5eeee80]] [[#variableb5eeee00]] [[#variableb5eeed00]]; /** * The parent, in the debug view tree. */ private [[#variableb5eeee80]] fParent; public [[#variable9ae1b7e0]](JavaMonitor monitor, [[#variableb5eeee80]] parent) { fMonitor = monitor; monitor.addElement(this ); fParent = parent; } public JavaMonitor getMonitor() { return fMonitor; } public Object getParent() { if (fParent.getParent() == null) { return fParent.getThread().getOriginalThread(); } return fParent; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b5eeee80]] | JavaOwningThread |
1 | 2 | [[#b5eeee80]] | JavaWaitingThread |
2 | 1 | [[#b5eeee00]] | |
2 | 2 | [[#b5eeee00]] | [] |
3 | 1 | [[#b5eeed00]] | fOwningThread |
3 | 2 | [[#b5eeed00]] | fWaitingThreads |
4 | 1 | [[#9ae1b7e0]] | JavaContendedMonitor |
4 | 2 | [[#9ae1b7e0]] | JavaOwnedMonitor |