Skip to content

Conversation

@prdoyle
Copy link
Contributor

@prdoyle prdoyle commented Jan 31, 2025

Backports the following commits to 8.18:

* 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
@elasticsearchmachine elasticsearchmachine merged commit 772b9e6 into elastic:8.18 Jan 31, 2025
15 checks passed
@prdoyle prdoyle deleted the backport/8.18/pr-121409 branch January 31, 2025 19:24
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 v8.18.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants