Skip to content

Commit

Permalink
temporarily disable checkerframework.org javadoc due to expired certi…
Browse files Browse the repository at this point in the history
…ficate
  • Loading branch information
ben-manes committed Dec 13, 2022
1 parent 68fbff8 commit 62e180f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,17 @@ public final class BoundedLocalCacheTest {
@Test(dataProvider = "caches")
@CacheSpec(population = Population.FULL, removalListener = Listener.MOCKITO)
public void clear_pendingWrites(BoundedLocalCache<Int, Int> cache, CacheContext context) {
var insert = new boolean[] { true };
Mockito.doAnswer(invocation -> {
if (insert[0]) {
while (cache.writeBuffer.offer(() -> {})) {
// ignored
}
insert[0] = false;
var populate = new boolean[] { true };
Answer<?> fillWriteBuffer = invocation -> {
while (populate[0] && cache.writeBuffer.offer(() -> {})) {
// ignored
}
populate[0] = false;
return null;
}).when(context.removalListener()).onRemoval(any(), any(), any());
};
doAnswer(fillWriteBuffer)
.when(context.removalListener())
.onRemoval(any(), any(), any());

cache.clear();
assertThat(cache).isExhaustivelyEmpty();
Expand Down
2 changes: 1 addition & 1 deletion gradle/codeQuality.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ tasks.register('downloadCaffeineLocal') {

tasks.named('javadoc').configure {
options.links(
'https://checkerframework.org/api/',
// 'https://checkerframework.org/api/',
'https://lightbend.github.io/config/latest/api/',
"https://guava.dev/releases/${versions.guava}/api/docs/",
"https://docs.oracle.com/en/java/javase/${JavaVersion.current().majorVersion}/docs/api/")
Expand Down

0 comments on commit 62e180f

Please sign in to comment.