CloneSet2547


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25240.972class_body_declarations[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12528
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/monitors/JavaContendedMonitor.java
22628
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/monitors/JavaOwnedMonitor.java
Clone Instance
1
Line Count
25
Source Line
28
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/monitors/JavaContendedMonitor.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;
        }


Clone Instance
2
Line Count
26
Source Line
28
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/monitors/JavaOwnedMonitor.java

        /**
         * 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;
        }


Clone AbstractionParameter Count: 4Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b5eeee80]]
JavaOwningThread 
12[[#b5eeee80]]
JavaWaitingThread 
21[[#b5eeee00]]
22[[#b5eeee00]]
[] 
31[[#b5eeed00]]
fOwningThread 
32[[#b5eeed00]]
fWaitingThreads 
41[[#9ae1b7e0]]
JavaContendedMonitor 
42[[#9ae1b7e0]]
JavaOwnedMonitor