Skip to content

Fix Java 8 compatibility in sequenced-collections old code example#148

Merged
brunoborges merged 2 commits intomainfrom
copilot/fix-java-compilation-issue
Apr 7, 2026
Merged

Fix Java 8 compatibility in sequenced-collections old code example#148
brunoborges merged 2 commits intomainfrom
copilot/fix-java-compilation-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 7, 2026

The oldCode block in sequenced-collections.yaml uses var (Java 10+) despite being labeled "Java 8".

  • Replace var with Object in the old code example to match the declared Java 8 compatibility
# Before
oldCode: |-
  var last = list.get(list.size() - 1);
  var first = list.get(0);

# After
oldCode: |-
  Object last = list.get(list.size() - 1);
  Object first = list.get(0);

Copilot AI linked an issue Apr 7, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix Java compilation issue in sequenced collections Fix Java 8 compatibility in sequenced-collections old code example Apr 7, 2026
Copilot AI requested a review from brunoborges April 7, 2026 23:23
@brunoborges brunoborges marked this pull request as ready for review April 7, 2026 23:38
@brunoborges brunoborges merged commit 1f6fc9f into main Apr 7, 2026
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.

[Code Issue] Collections séquencées

2 participants