Skip to content

Commit aeb74f2

Browse files
committed
Fix indents
1 parent bb7773d commit aeb74f2

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

src/NHibernate/Engine/Query/QueryPlanCache.cs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -70,32 +70,32 @@ public IQueryPlan GetHQLQueryPlan(string queryString, bool shallow, IDictionary<
7070
return plan;
7171
}
7272

73-
public IQueryExpressionPlan GetHQLQueryPlan(IQueryExpression queryExpression, bool shallow, IDictionary<string, IFilter> enabledFilters)
74-
{
75-
string expressionStr = queryExpression.Key;
76-
77-
var key = new HQLQueryPlanKey(expressionStr, shallow, enabledFilters);
78-
var plan = (IQueryExpressionPlan)planCache[key];
79-
80-
if (plan == null)
81-
{
82-
if (log.IsDebugEnabled)
83-
{
84-
log.Debug("unable to locate HQL query plan in cache; generating (" + expressionStr + ")");
85-
}
86-
plan = new HQLExpressionQueryPlan(expressionStr, queryExpression, shallow, enabledFilters, factory);
87-
planCache.Put(key, plan);
88-
}
89-
else
90-
{
91-
if (log.IsDebugEnabled)
92-
{
93-
log.Debug("located HQL query plan in cache (" + expressionStr + ")");
94-
}
95-
}
96-
97-
return plan;
98-
}
73+
public IQueryExpressionPlan GetHQLQueryPlan(IQueryExpression queryExpression, bool shallow, IDictionary<string, IFilter> enabledFilters)
74+
{
75+
string expressionStr = queryExpression.Key;
76+
77+
var key = new HQLQueryPlanKey(expressionStr, shallow, enabledFilters);
78+
var plan = (IQueryExpressionPlan)planCache[key];
79+
80+
if (plan == null)
81+
{
82+
if (log.IsDebugEnabled)
83+
{
84+
log.Debug("unable to locate HQL query plan in cache; generating (" + expressionStr + ")");
85+
}
86+
plan = new HQLExpressionQueryPlan(expressionStr, queryExpression, shallow, enabledFilters, factory);
87+
planCache.Put(key, plan);
88+
}
89+
else
90+
{
91+
if (log.IsDebugEnabled)
92+
{
93+
log.Debug("located HQL query plan in cache (" + expressionStr + ")");
94+
}
95+
}
96+
97+
return plan;
98+
}
9999

100100

101101
public FilterQueryPlan GetFilterQueryPlan(string filterString, string collectionRole, bool shallow, IDictionary<string, IFilter> enabledFilters)
@@ -108,7 +108,7 @@ public FilterQueryPlan GetFilterQueryPlan(string filterString, string collection
108108
if (log.IsDebugEnabled)
109109
{
110110
log.Debug("unable to locate collection-filter query plan in cache; generating (" + collectionRole + " : "
111-
+ filterString + ")");
111+
+ filterString + ")");
112112
}
113113
plan = new FilterQueryPlan(filterString, collectionRole, shallow, enabledFilters, factory);
114114
planCache.Put(key, plan);

0 commit comments

Comments
 (0)