Chaoren Lin
Chaoren Lin
Let `( )` denote the cursor position and `[ ]` denote visual selection. Consider this behavior of word objects: ``` f(o)o bar -> viw -> [fo(o)] bar -> iw ->...
Let `( )` denote the cursor position and `[ ]` denote visual selection. Consider this behavior of word objects: ``` foo [(b)ar baz] -> aw -> [(f)oo bar baz] ```...
It usually shouldn't matter, but I wanted to play around with `trimIndent()`, which doesn't work very well when the string contains mixed tabs and spaces for indentation.
Here's a failing test case: ```java @Test public void ticker() { FakeTicker ticker = new FakeTicker(); AsyncCache cache = Caffeine.newBuilder().weakKeys().recordStats().ticker(ticker::read).buildAsync(); var unused = cache.get( "key", (key, executor) -> { ticker.advance(5);...
The `expireAfterWrite` timestamp for an async load should be computed when the `CompletableFuture` is `complete` and not when it is put into the cache, right? It looks like there's an...
Here's a test case: ```java @Test public void weigher() { AsyncCache cache = Caffeine.newBuilder() .maximumWeight(0) .weigher( ((key, value) -> { throw new RuntimeException(); })) .buildAsync(); // case 1 assertThrows( RuntimeException.class,...
Also: - Added badges for the latest and snapshot versions of Javadocs. - Fixed the whitespaces in the generated HTML files. - Fixed the config so that the website works...