Formatting tidying.

This commit is contained in:
Michael Bayne
2009-08-21 01:50:21 +00:00
parent 157d339906
commit f9eb364c7f
@@ -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));
} }
} }