cosmetics

This commit is contained in:
Xavier Léauté 2014-03-04 13:25:02 -08:00
parent 5b4c04510f
commit 427014d0a0
1 changed files with 3 additions and 3 deletions

View File

@ -128,7 +128,7 @@ public class CachingClusteredClient<T> implements QueryRunner<T>
final boolean isBySegment = Boolean.parseBoolean(query.getContextValue("bySegment", "false"));
ImmutableMap.Builder<String, String> contextBuilder = new ImmutableMap.Builder<String, String>();
ImmutableMap.Builder<String, String> contextBuilder = new ImmutableMap.Builder<>();
final String priority = query.getContextValue("priority", "0");
contextBuilder.put("priority", priority);
@ -234,7 +234,7 @@ public class CachingClusteredClient<T> implements QueryRunner<T>
}
}
return new LazySequence<T>(
return new LazySequence<>(
new Supplier<Sequence<T>>()
{
@Override
@ -270,7 +270,7 @@ public class CachingClusteredClient<T> implements QueryRunner<T>
final TypeReference<Object> cacheObjectClazz = strategy.getCacheObjectClazz();
for (Pair<DateTime, byte[]> cachedResultPair : cachedResults) {
final byte[] cachedResult = cachedResultPair.rhs;
Sequence<Object> cachedSequence = new BaseSequence<Object, Iterator<Object>>(
Sequence<Object> cachedSequence = new BaseSequence<>(
new BaseSequence.IteratorMaker<Object, Iterator<Object>>()
{
@Override