Skip to content

Commit 2d324e0

Browse files
committed
Remove the only NHibernate use of ImmutableSet, to prepare for .Net 4 which doesn't have this type of set. It was only class private anyway.
1 parent 2b1c9ba commit 2d324e0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/NHibernate/Hql/Ast/ANTLR/Tree/AssignmentSpecification.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class AssignmentSpecification
2020
{
2121
private readonly IASTNode _eq;
2222
private readonly ISessionFactoryImplementor _factory;
23-
private readonly ISet<string> _tableNames;
23+
private readonly HashSet<string> _tableNames;
2424
private readonly IParameterSpecification[] _hqlParameters;
2525
private SqlString _sqlAssignmentString;
2626

@@ -56,15 +56,15 @@ public AssignmentSpecification(IASTNode eq, IQueryable persister)
5656
var temp = new HashedSet<string>();
5757
// yuck!
5858
var usep = persister as UnionSubclassEntityPersister;
59-
if (usep!=null)
59+
if (usep != null)
6060
{
6161
temp.AddAll(persister.ConstraintOrderedTableNameClosure);
6262
}
6363
else
6464
{
6565
temp.Add(persister.GetSubclassTableName(persister.GetSubclassPropertyTableNumber(propertyPath)));
6666
}
67-
_tableNames = new ImmutableSet<string>(temp);
67+
_tableNames = new HashSet<string>(temp);
6868

6969
if (rhs == null)
7070
{
@@ -85,6 +85,7 @@ public AssignmentSpecification(IASTNode eq, IQueryable persister)
8585
}
8686
}
8787
}
88+
8889
public bool AffectsTable(string tableName)
8990
{
9091
return _tableNames.Contains(tableName);
@@ -125,7 +126,7 @@ private static void ValidateLhs(FromReferenceNode lhs)
125126

126127
public IParameterSpecification[] Parameters
127128
{
128-
get{return _hqlParameters;}
129+
get { return _hqlParameters; }
129130
}
130131

131132
public SqlString SqlAssignmentFragment

0 commit comments

Comments
 (0)