Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 2 | 0.987 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 106 | src/NHibernate.DomainModel/Fum.cs |
2 | 15 | 129 | src/NHibernate.DomainModel/Fum.cs |
| ||||
public LifecycleVeto OnDelete(ISession s) { if (_friends == null) return LifecycleVeto.NoVeto; try { foreach (object obj in _friends) { s.Delete(obj); } } catch (Exception e) { throw new CallbackException(e); } return LifecycleVeto.NoVeto; } |
| ||||
public LifecycleVeto OnSave(ISession s) { if (_friends == null) return LifecycleVeto.NoVeto; try { foreach (object obj in _friends) { s.Save(obj); } } catch (Exception e) { throw new CallbackException(e); } return LifecycleVeto.NoVeto; } |
| |||
public LifecycleVeto [[#variable6633c360]](ISession s) { if (_friends == null) return LifecycleVeto.NoVeto; try { foreach (object obj in _friends) { s. [[#variable6633c1e0]](obj); } } catch (Exception e) { throw new CallbackException(e); } return LifecycleVeto.NoVeto; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6633c360]] | OnSave |
1 | 2 | [[#6633c360]] | OnDelete |
2 | 1 | [[#6633c1e0]] | Save |
2 | 2 | [[#6633c1e0]] | Delete |