Skip to content

refactor: make NativeCall.requireNative return void#15

Merged
dfa1 merged 1 commit into
mainfrom
refactor/requirenative-void
Jun 26, 2026
Merged

refactor: make NativeCall.requireNative return void#15
dfa1 merged 1 commit into
mainfrom
refactor/requirenative-void

Conversation

@dfa1

@dfa1 dfa1 commented Jun 26, 2026

Copy link
Copy Markdown
Owner

requireNative returned the segment for fluent use, but all 13 callers invoke it as a plain guard statement and discard the result. Make it void.

Package-private, no behaviour change.

Test

./mvnw -pl zstd -am test — green, checkstyle + javadoc clean.

🤖 Generated with Claude Code

Every caller uses it as a guard statement and discards the returned
segment, so the fluent return was dead. Drop it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dfa1 dfa1 merged commit 08c194f into main Jun 26, 2026
1 check passed
@dfa1 dfa1 deleted the refactor/requirenative-void branch June 26, 2026 18:54
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.

1 participant