Skip to content

Conversation

@swallez
Copy link
Contributor

@swallez swallez commented Jun 18, 2021

Follow-up to #73910

Removes the use of Optional.isEmpty() that was added in Java 11. HLRC targets Java 8 where we only have Optional.isPresent()

This was caught by the 7.x build in the #74272 backport, but this check apparently isn't enforced in master. I opened #74289 to track this discrepancy.

Optional.isEmpty() was added in Java 11. In Java 8 we only have
Optional.isPresent()
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

@elasticsearchmachine elasticsearchmachine added the external-contributor Pull request authored by a developer outside the Elasticsearch team label Jun 18, 2021
Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

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

LGTM

@swallez swallez merged commit 32c196f into elastic:master Jun 28, 2021
@swallez swallez deleted the hlrc-optional-java8 branch June 28, 2021 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug external-contributor Pull request authored by a developer outside the Elasticsearch team Team:Data Management Meta label for data/management team v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants