CloneSet497


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17220.986method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117291
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/ObjectCache.java
217317
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/ObjectCache.java
Next
Last
Clone Instance
1
Line Count
17
Source Line
291
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/ObjectCache.java

/**
 * Fire an "Object Added" event to all listeners.
 *
 * @param   obj  The object added.
 */
private void fireObjectAdded(IHasIdentifier obj) {
  // Guaranteed to be non-null.
  Object[] listeners = _listenerList.getListenerList();
  // Process the listeners last to first, notifying
  // those that are interested in this event.
  ObjectCacheChangeEvent evt = null;
  for (int i = listeners.length - 2; i >= 0; i -= 2) {
    if (listeners[i] == IObjectCacheChangeListener.class ) {
      // Lazily create the event.
      if (evt == null) {
        evt = new ObjectCacheChangeEvent(ObjectCache.this, obj);
      }
      ((IObjectCacheChangeListener) listeners[i + 1]).objectAdded(evt);
    }
  }
}


First
Previous
Clone Instance
2
Line Count
17
Source Line
317
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/ObjectCache.java

/**
 * Fire an "Object Removed" event to all listeners.
 *
 * @param   obj  The object added.
 */
private void fireObjectRemoved(IHasIdentifier obj) {
  // Guaranteed to be non-null.
  Object[] listeners = _listenerList.getListenerList();
  // Process the listeners last to first, notifying
  // those that are interested in this event.
  ObjectCacheChangeEvent evt = null;
  for (int i = listeners.length - 2; i >= 0; i -= 2) {
    if (listeners[i] == IObjectCacheChangeListener.class ) {
      // Lazily create the event:
      if (evt == null) {
        evt = new ObjectCacheChangeEvent(ObjectCache.this, obj);
      }
      ((IObjectCacheChangeListener) listeners[i + 1]).objectRemoved(evt);
    }
  }
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
                 * Fire an "Object Removed" event to all listeners.
                 *
                 * @param   obj  The object added.
                 */
/**
                 * Fire an "Object Added" event to all listeners.
                 *
                 * @param   obj  The object added.
                 */
private void [[#variable1ce9c3c0]](IHasIdentifier obj) {
  // Guaranteed to be non-null.
  Object[] listeners = _listenerList.getListenerList();
  // Process the listeners last to first, notifying
  // those that are interested in this event.
  ObjectCacheChangeEvent evt = null;
  for (int i = listeners.length - 2; i >= 0; i -= 2) {
    if (listeners[i] == IObjectCacheChangeListener.class ) {
      // Lazily create the event:
      // Lazily create the event.
      if (evt == null) {
        evt = new ObjectCacheChangeEvent(ObjectCache.this, obj);
      }
      ((IObjectCacheChangeListener) listeners[i + 1]). [[#variable1ce9c380]](evt);
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1ce9c3c0]]
fireObjectAdded 
12[[#1ce9c3c0]]
fireObjectRemoved 
21[[#1ce9c380]]
objectAdded 
22[[#1ce9c380]]
objectRemoved