Exemple #1
0
 @GwtIncompatible("weakKeys")
 public void testKeyStrengthSetTwice() {
   CacheBuilder<Object, Object> builder1 = new CacheBuilder<Object, Object>().weakKeys();
   try {
     builder1.weakKeys();
     fail();
   } catch (IllegalStateException expected) {
   }
 }
 public com.google.common.cache.CacheBuilder<Object, Object> weakKeys() {
   return builder.weakKeys();
 }