File tree Expand file tree Collapse file tree 3 files changed +0
-14
lines changed Expand file tree Collapse file tree 3 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ public override int GetHashCode()
50
50
{
51
51
var result = 13 ;
52
52
result = 37 * result + _filterName . GetHashCode ( ) ;
53
-
54
53
result = 37 * result + CollectionHelper . GetHashCode ( _filterParameters , NamedParameterComparer . Instance ) ;
55
54
return result ;
56
55
}
Original file line number Diff line number Diff line change @@ -110,14 +110,5 @@ public override string ToString()
110
110
{
111
111
return "EntityKey" + MessageHelper . InfoString ( factory . GetEntityPersister ( EntityName ) , Identifier , factory ) ;
112
112
}
113
-
114
- /// <summary>
115
- /// To use in deserialization callback
116
- /// </summary>
117
- /// <param name="sessionFactory"></param>
118
- internal void SetSessionFactory ( ISessionFactoryImplementor sessionFactory )
119
- {
120
- factory = sessionFactory ;
121
- }
122
113
}
123
114
}
Original file line number Diff line number Diff line change @@ -121,10 +121,6 @@ public bool Equals(LockMode other)
121
121
122
122
public override int GetHashCode ( )
123
123
{
124
- // If the object is put in a set or dictionary during deserialization, the hashcode will not yet be
125
- // computed. Compute the hashcode on the fly. So long as this happens only during deserialization, there
126
- // will be no thread safety issues. For the hashcode to be always defined after deserialization, the
127
- // deserialization callback is used.
128
124
unchecked
129
125
{
130
126
return ( level * 37 ) ^ ( name ? . GetHashCode ( ) ?? 0 ) ;
You can’t perform that action at this time.
0 commit comments