Making DataLoaderOptions immutable by bbakerman · Pull Request #176 · 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

DataLoaderOptions was not immutable and this can lead to bugs now that we have DataLoader + builders + transformation

statisticsCollector = NOOP_COLLECTOR;
environmentProvider = NULL_PROVIDER;
valueCacheOptions = ValueCacheOptions.newOptions();
valueCacheOptions = DEFAULT_VALUE_CACHE_OPTIONS;
Copy link

Member

Choose a reason for hiding this comment

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

Nice

@bbakerman bbakerman merged commit cf79290 into master

Feb 21, 2025

1 check passed

@dondonz dondonz added this to the 4.0.0 milestone

Mar 1, 2025

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

Reviewers

@andimarek andimarek andimarek approved these changes

@dondonz dondonz dondonz approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.0.0

Development

Successfully merging this pull request may close these issues.

3 participants

@bbakerman @andimarek @dondonz