Skip to content

Conversation

@mjwebblue
Copy link
Collaborator

  • ContractLoader: replace Optional.isEmpty() with !isPresent().
  • DocumentProcessingResult:
    • replace List.copyOf(...) with new ArrayList<>(...) defensive copy.
    • replace List.of() with Collections.emptyList().
    • keep immutability via Collections.unmodifiableList(new ArrayList<>(...)).
  • No behavioral changes; only API substitutions for JDK 8.

- ContractLoader: replace Optional.isEmpty() with !isPresent().
- DocumentProcessingResult:
  - replace List.copyOf(...) with new ArrayList<>(...) defensive copy.
  - replace List.of() with Collections.emptyList().
  - keep immutability via Collections.unmodifiableList(new ArrayList<>(...)).
- No behavioral changes; only API substitutions for JDK 8.
- Use Paths.get and Files.readAllBytes + StandardCharsets.UTF_8 in ContractMappingIntegrationTest.
- Removes Java 11 APIs to restore test compilation on JDK 8.
- No behavioral changes.
@piotr-blue piotr-blue merged commit 348333d into master Oct 24, 2025
1 check passed
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.

3 participants