Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 1 | 0.961 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 100 | E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/ObjectCache.java |
2 | 3 | 114 | 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); } |
| |||||
/** * 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); } |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1c923540]] | addChangesListener |
1 | 2 | [[#1c923540]] | removeChangesListener |