CloneSet1599


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

/**
 * Adds a listener for changes to the cache entry for the passed class.
 *
 * @param       lis                     a IObjectCacheChangeListener that will be notified
 *                                              when objects are added or removed from this cache
 *                                              entry.
 * @param       objClass        The class of objects whose cache we want to listen
 *                                              to.
 */
public void addChangesListener(IObjectCacheChangeListener lis, Class<E> objClass) {
  getCacheEntry(objClass).addChangesListener(lis);
}


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

/**
 * Removes a listener for changes to the cache entry for the passed class.
 *
 * @param       lis                     a IObjectCacheChangeListener that will be notified
 *                                              when objects are added or removed from this cache
 *                                              entry.
 * @param       objClass        The class of objects whose cache we want to listen
 *                                              to.
 */
public void removeChangesListener(IObjectCacheChangeListener lis, Class<E> objClass) {
  getCacheEntry(objClass).removeChangesListener(lis);
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Removes a listener for changes to the cache entry for the passed class.
         *
         * @param       lis                     a IObjectCacheChangeListener that will be notified
         *                                              when objects are added or removed from this cache
         *                                              entry.
         * @param       objClass        The class of objects whose cache we want to listen
         *                                              to.
         */
/**
         * Adds a listener for changes to the cache entry for the passed class.
         *
         * @param       lis                     a IObjectCacheChangeListener that will be notified
         *                                              when objects are added or removed from this cache
         *                                              entry.
         * @param       objClass        The class of objects whose cache we want to listen
         *                                              to.
         */
public void [[#variable1c923540]](IObjectCacheChangeListener lis, Class<E> objClass) {
  getCacheEntry(objClass). [[#variable1c923540]](lis);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1c923540]]
addChangesListener 
12[[#1c923540]]
removeChangesListener