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 committed by Colin Goodheart-Smithe
parent 2518fefa37
commit 721ee4c22a
No known key found for this signature in database
GPG Key ID: F975E7BDD739B3C7
1 changed files with 2 additions and 1 deletions

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++) {