This increases memory overhead of the cache for not good reason, fix
that.
Change-Id: Ib55a7eb2e0a2066a70fe9a7eefa90771e028e8da
Signed-off-by: Robert Varga <rovarga@cisco.com>
}
};
private static final LoadingCache<Class<?>, ConcreteType> TYPE_CACHE =
- CacheBuilder.newBuilder().weakKeys().softValues().build(TYPE_LOADER);
+ CacheBuilder.newBuilder().weakKeys().build(TYPE_LOADER);
private static final Type SET_TYPE = typeForClass(Set.class);
private static final Type LIST_TYPE = typeForClass(List.class);
protected abstract Map<Class<? extends Augmentation<?>>, Augmentation<?>> getAugmentations(final Object input);
private static final LoadingCache<Class<?>, AugmentationFieldGetter> AUGMENTATION_GETTERS = CacheBuilder
- .newBuilder().weakKeys().softValues().build(new AugmentationGetterLoader());
+ .newBuilder().weakKeys().build(new AugmentationGetterLoader());
public static AugmentationFieldGetter getGetter(final Class<? extends Object> clz) {
if(AugmentationHolder.class.isAssignableFrom(clz)) {