Updated the documentation of the CacheMap and also some refactoring by bbakerman · Pull Request #244 · graphql-java/java-dataloader

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@bbakerman

Copy link

Member

Just to explain the CAS atomic load requirement more

@bbakerman bbakerman added this to the 6.0.0 milestone

Oct 26, 2025
ctx.onDispatched();
cachedFuture.whenComplete(ctx::onCompleted);
return cachedFuture;
}
Copy link

Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code was common in 3 spots

assertThat(cacheMap.containsKey(1), equalTo(false));
assertThat(cacheMap.containsKey(2), equalTo(false));
assertThat(cacheMap.containsKey(3), equalTo(false));
assertThat(cacheMap.containsKey(4), equalTo(false));
Copy link

Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some more tests for coverage reasons

@dondonz dondonz merged commit 4ade908 into master

Nov 5, 2025

1 check passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

6.0.0

Development

Successfully merging this pull request may close these issues.

2 participants

@bbakerman @dondonz