diff --git a/src/java/com/samskivert/depot/DepotRepository.java b/src/java/com/samskivert/depot/DepotRepository.java index 8b252c0..e110c30 100644 --- a/src/java/com/samskivert/depot/DepotRepository.java +++ b/src/java/com/samskivert/depot/DepotRepository.java @@ -369,21 +369,22 @@ public abstract class DepotRepository "Cannot use " + cache + " strategy because " + reason); } break; + case NONE: case CONTENTS: - break;// NONE and CONTENTS can always be used. + break; // NONE and CONTENTS can always be used. } if (!_ctx.isUsingCache()) { cache = CacheStrategy.NONE; } - switch(cache) { + switch (cache) { case SHORT_KEYS: case LONG_KEYS: case RECORDS: return _ctx.invoke(new FindAllQuery.WithCache(_ctx, type, clauses, cache)); default: return _ctx.invoke(new FindAllQuery.Explicitly( - _ctx, type, clauses, cache == CacheStrategy.CONTENTS)); + _ctx, type, clauses, cache == CacheStrategy.CONTENTS)); } }