Skip to content

feat: expose Zstd.versionNumber()#16

Merged
dfa1 merged 2 commits into
mainfrom
feat/version-number
Jun 26, 2026
Merged

feat: expose Zstd.versionNumber()#16
dfa1 merged 2 commits into
mainfrom
feat/version-number

Conversation

@dfa1

@dfa1 dfa1 commented Jun 26, 2026

Copy link
Copy Markdown
Owner

The VERSION_NUMBER binding (ZSTD_versionNumber) was defined but unused. Expose it as a public int Zstd.versionNumber() — encoded MAJOR*10000 + MINOR*100 + PATCH (e.g. 10507 for 1.5.7) — paralleling version() for programmatic version comparisons.

Test asserts versionNumber() stays consistent with the parsed version() string (no hardcoded number).

Test

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

🤖 Generated with Claude Code

dfa1 and others added 2 commits June 26, 2026 20:51
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>
Wire up the previously-unused VERSION_NUMBER binding as a public
int Zstd.versionNumber() (MAJOR*10000 + MINOR*100 + PATCH, e.g. 10507
for 1.5.7), paralleling version() for programmatic version checks. Test
asserts it stays consistent with the version() string.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dfa1 dfa1 merged commit e6a3537 into main Jun 26, 2026
1 check passed
@dfa1 dfa1 deleted the feat/version-number branch June 26, 2026 19:00
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