Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

19.x Backport PR 3539 #3543

Merged
merged 5 commits into from Mar 26, 2024
Merged

19.x Backport PR 3539 #3543

merged 5 commits into from Mar 26, 2024

Conversation

dondonz
Copy link
Member

@dondonz dondonz commented Mar 25, 2024

Backport #3539 and bring a number of related files up to date with v21.x, so that we minimise API changes between files connected to ExecutableNormalizedOperationFactory across v19/20/21

Note: introspection node count is 1 less in v19 because the new @oneOf directive is only included in v21 onwards

@dondonz dondonz changed the title Backport PR 3539 and bring more files up to v21 for API compatibility 19.x Backport PR 3539 and bring more files up to v21 for API compatibility Mar 25, 2024
@dondonz dondonz changed the title 19.x Backport PR 3539 and bring more files up to v21 for API compatibility 19.x Backport PR 3539 Mar 25, 2024
byte[] bytes;
try (InputStream inputStream = resource.openStream()) {
// In GraphQL Java version 21 and above, this Guava helper is replaced with Java 9's readAllBytes()
bytes = ByteStreams.toByteArray(inputStream);
Copy link
Member Author

Choose a reason for hiding this comment

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

Fun one: readAllBytes is only in Java 9 onwards so here's the Guava equivalent. We selectively shade in Guava files (e.g. Immutable objects already in use) so we're alright to use Guava here.

@dondonz dondonz added this to the 19.11 milestone Mar 25, 2024
@dondonz dondonz merged commit 16c1591 into 19.x Mar 26, 2024
1 check passed
@dondonz dondonz deleted the 19.x-backport-enf-introspection branch March 26, 2024 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants