guava cleanup
This commit is contained in:
parent
0e3a17b611
commit
184feb8e2b
|
@ -158,7 +158,6 @@ public class GuavaCacheTest {
|
|||
final LoadingCache<String, String> cache = CacheBuilder.newBuilder().refreshAfterWrite(1, TimeUnit.MINUTES).build(loader);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void whenPreloadCache_thenUsePutAll() {
|
||||
final CacheLoader<String, String> loader = new CacheLoader<String, String>() {
|
||||
|
@ -200,6 +199,8 @@ public class GuavaCacheTest {
|
|||
assertEquals(3, cache.size());
|
||||
}
|
||||
|
||||
// UTIL
|
||||
|
||||
private String getSuffix(final String str) {
|
||||
final int lastIndex = str.lastIndexOf('.');
|
||||
if (lastIndex == -1)
|
||||
|
|
Loading…
Reference in New Issue