File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
src/NHibernate/Hql/Ast/ANTLR Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
1
using System . Collections . Generic ;
2
- using System . Linq ;
3
2
using NHibernate . Engine ;
4
3
using NHibernate . Hql . Ast . ANTLR . Tree ;
5
4
using NHibernate . Util ;
@@ -35,16 +34,16 @@ private IASTNode[] Process()
35
34
36
35
var parsers = DuplicateTree ( ) ;
37
36
38
- if ( parsers . Length == 0 )
39
- {
40
- var entityNames = _nodeMapping . Keys . ToArray ( x => PolymorphicQuerySourceDetector . GetClassName ( x ) ) ;
41
- throw new QuerySyntaxException (
42
- entityNames . Length == 1
43
- ? entityNames [ 0 ] + " is not mapped"
44
- : string . Join ( ", " , entityNames ) + " are not mapped" ) ;
45
- }
37
+ if ( parsers . Length == 0 )
38
+ {
39
+ var entityNames = _nodeMapping . Keys . ToArray ( x => PolymorphicQuerySourceDetector . GetClassName ( x ) ) ;
40
+ throw new QuerySyntaxException (
41
+ entityNames . Length == 1
42
+ ? entityNames [ 0 ] + " is not mapped"
43
+ : string . Join ( ", " , entityNames ) + " are not mapped" ) ;
44
+ }
46
45
47
- return parsers ;
46
+ return parsers ;
48
47
}
49
48
50
49
private IASTNode [ ] DuplicateTree ( )
You can’t perform that action at this time.
0 commit comments