Skip to content

Conversation

prdoyle
Copy link
Contributor

@prdoyle prdoyle commented Jan 31, 2025

Backports the following commits to 9.0:

* Refactor: remove duplicate canWrite methods.

This serves as a good example of how Path and File handling could be
specialized in the future, but as long as they are identical, the duplication
causes more harm than good.

* Refactor: just one neverEntitled.

The original motivation was to avoid allocating a lambda object on each call,
but since that's a highly optimized operation in the JVM, it's unlikely to make
a difference in practice, and this smacks of premature optimization.

We're pretty liberal about lambdas elsewhere, so let's not sweat it here until
we have some evidence that it matters.

* Remove dead code
@prdoyle prdoyle added :Core/Infra/Core Core issues without another label >non-issue auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Core/Infra Meta label for core/infra team test-entitlements labels Jan 31, 2025
@prdoyle prdoyle merged commit 53e8731 into elastic:9.0 Jan 31, 2025
21 checks passed
@prdoyle prdoyle deleted the backport/9.0/pr-121409 branch January 31, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Core/Infra/Core Core issues without another label >non-issue Team:Core/Infra Meta label for core/infra team v9.0.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants