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