Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ThreadContext.stashWithOrigin package-private #14987

Closed
wants to merge 2 commits into from

Conversation

cwperks
Copy link
Member

@cwperks cwperks commented Jul 26, 2024

Description

The ThreadContext class overly exposes many methods as public. Currently, stashWithOrigin is publicly exposed. This PR changes the access modifier on this method to package-private to prevent this internally used method from being exposed publicly.

Related Issues

Related to #14931

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Craig Perkins <[email protected]>
@cwperks cwperks added the backport 2.x Backport to 2.x branch label Jul 26, 2024
Copy link
Contributor

✅ Gradle check result for 657527e: SUCCESS

Copy link
Contributor

✅ Gradle check result for ca222ee: SUCCESS

Copy link

codecov bot commented Jul 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.94%. Comparing base (1fe58b5) to head (ca222ee).
Report is 6 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #14987      +/-   ##
============================================
+ Coverage     71.78%   71.94%   +0.15%     
- Complexity    62694    62821     +127     
============================================
  Files          5160     5161       +1     
  Lines        294211   294361     +150     
  Branches      42553    42577      +24     
============================================
+ Hits         211212   211784     +572     
+ Misses        65599    65148     -451     
- Partials      17400    17429      +29     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kotwanikunal
Copy link
Member

I noticed that there is a backport label. Wouldn't this be breaking for 2.x?

@cwperks
Copy link
Member Author

cwperks commented Jul 30, 2024

@kotwanikunal I'm planning to close this PR and open a separate one which introduces a permission for this method similar to #15016

IMO I'd ultimately like to change the access modifiers for these methods to make these inaccessible outside of the package and I think its possible to do safely, but there are concerns around changing the access modifier.

@cwperks
Copy link
Member Author

cwperks commented Jul 31, 2024

Closing in favor of #15039

@cwperks cwperks closed this Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants