Fix line length violation in cache tests

This commit fixes a line-length violation in the cache tests that was
hidden by the IDE folding the generics.
This commit is contained in:
Jason Tedor 2018-05-07 14:12:04 -04:00
parent 6fb189ce47
commit ec939dc012

View File

@ -347,7 +347,8 @@ public class CacheTests extends ESTestCase {
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/30428")
public void testComputeIfAbsentDeadlock() throws BrokenBarrierException, InterruptedException {
final int numberOfThreads = randomIntBetween(2, 32);
final Cache<Integer, String> cache = CacheBuilder.<Integer, String>builder().setExpireAfterAccess(TimeValue.timeValueNanos(1)).build();
final Cache<Integer, String> cache =
CacheBuilder.<Integer, String>builder().setExpireAfterAccess(TimeValue.timeValueNanos(1)).build();
final CyclicBarrier barrier = new CyclicBarrier(1 + numberOfThreads);
for (int i = 0; i < numberOfThreads; i++) {