Skip to content

fix: expose missing public modifiers in Imperial units#213

Open
devhebert wants to merge 2 commits intounitsofmeasurement:masterfrom
devhebert:fix/imperial-units-visibility
Open

fix: expose missing public modifiers in Imperial units#213
devhebert wants to merge 2 commits intounitsofmeasurement:masterfrom
devhebert:fix/imperial-units-visibility

Conversation

@devhebert
Copy link

@devhebert devhebert commented Mar 19, 2026

Some Imperial unit constants were declared with package-private
visibility, preventing external consumers from accessing them.

This change adds the missing public modifier to the following units:

  • RANKINE
  • FAHRENHEIT
  • MINUTE
  • HOUR
  • FLUID_OUNCE_UK

These units are already fully defined and registered in the
SystemOfUnits, so exposing them does not change behavior,
only makes them accessible through the public API.


This change is Reviewable

Copy link
Member

@keilw keilw left a comment

Choose a reason for hiding this comment

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

This likely affects unit tests, could you please check, they pass and add the necessary tests to this PR?

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