Formatting tidying.
This commit is contained in:
@@ -369,21 +369,22 @@ public abstract class DepotRepository
|
|||||||
"Cannot use " + cache + " strategy because " + reason);
|
"Cannot use " + cache + " strategy because " + reason);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NONE: case CONTENTS:
|
case NONE: case CONTENTS:
|
||||||
break;// NONE and CONTENTS can always be used.
|
break; // NONE and CONTENTS can always be used.
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_ctx.isUsingCache()) {
|
if (!_ctx.isUsingCache()) {
|
||||||
cache = CacheStrategy.NONE;
|
cache = CacheStrategy.NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(cache) {
|
switch (cache) {
|
||||||
case SHORT_KEYS: case LONG_KEYS: case RECORDS:
|
case SHORT_KEYS: case LONG_KEYS: case RECORDS:
|
||||||
return _ctx.invoke(new FindAllQuery.WithCache<T>(_ctx, type, clauses, cache));
|
return _ctx.invoke(new FindAllQuery.WithCache<T>(_ctx, type, clauses, cache));
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return _ctx.invoke(new FindAllQuery.Explicitly<T>(
|
return _ctx.invoke(new FindAllQuery.Explicitly<T>(
|
||||||
_ctx, type, clauses, cache == CacheStrategy.CONTENTS));
|
_ctx, type, clauses, cache == CacheStrategy.CONTENTS));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user