Skip to content

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
@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.

4 participants