Skip to content

java-21-fixes-20260911 - #251

Merged
trautmane merged 2 commits into
newsolverfrom
java-21-fixes-20260911
Sep 12, 2026
Merged

java-21-fixes-20260911#251
trautmane merged 2 commits into
newsolverfrom
java-21-fixes-20260911

Conversation

@trautmane

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

It changes production-facing GCS read/write behavior via external N5 APIs and should be validated with integration/runtime testing before approval.

Pull request overview

This PR updates the Java clients to align with the repository’s Java 21 target and modern N5 Google Cloud Storage APIs, while also correcting GCS key derivation by consistently using full gs://... URIs instead of uri.getPath().

Changes:

  • Replace list.get(0) with Java 21 getFirst() calls in several single-element list access sites.
  • Update GCS image writing in RenderTilesClient to use KeyValueAccess.write(fullUri, ReadData) instead of LockedChannel + uri.getPath().
  • Update GCS JSON reading in PeakScanData to use createReadData(fullUri) + UTF-8 InputStreamReader instead of LockedChannel + uri.getPath().
File summaries
File Description
render-ws-java-client/src/main/java/org/janelia/render/client/tile/RenderTilesClient.java Uses Java 21 getFirst() and switches cloud writes to KeyValueAccess.write with full gs:// URIs to avoid incorrect object key derivation.
render-ws-java-client/src/main/java/org/janelia/render/client/multisem/PeakScanData.java Switches cloud reads to createReadData(fullUri) and explicitly reads JSON as UTF-8 to avoid incorrect key derivation and charset ambiguity.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@trautmane
trautmane merged commit 2ed5548 into newsolver Sep 12, 2026
3 checks passed
@trautmane
trautmane deleted the java-21-fixes-20260911 branch September 12, 2026 15: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.

2 participants