new LruCache<String, Long>(DataModule.DISK_CACHE_SIZE) {
@Override protected int sizeOf(String key, Long value) {
return (int) Math.min(value.longValue(), Integer.MAX_VALUE);
}
};
<BUG>public MockRequestHandler(MockRestAdapter mockRestAdapter, AssetManager assetManager) {

this.mockRestAdapter = mockRestAdapter;
this.assetManager = assetManager;</BUG>
}

new LruCache<String, Long>(DataModule.DISK_CACHE_SIZE) {
@Override protected int sizeOf(String key, Long value) {
return (int) Math.min(value.longValue(), Integer.MAX_VALUE);
}
};
public MockRequestHandler(NetworkBehavior behavior, AssetManager assetManager) {
this.behavior = behavior;
this.assetManager = assetManager;
}
