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

Java 17 instanceof pattern matching for test and x-pack/qa #82683

Merged
merged 1 commit into from
Jan 17, 2022

Conversation

astefan
Copy link
Contributor

@astefan astefan commented Jan 17, 2022

Switch to Java 17 instanceof pattern matching for folders test and x-pack/qa.

@astefan astefan added :Core/Infra/Core Core issues without another label auto-backport-and-merge labels Jan 17, 2022
@astefan astefan requested a review from ywelsch January 17, 2022 16:44
@astefan astefan marked this pull request as ready for review January 17, 2022 16:44
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Jan 17, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

Copy link
Contributor

@ywelsch ywelsch left a comment

Choose a reason for hiding this comment

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

One ask, o.w. LGTM

@@ -206,8 +206,8 @@ public synchronized LoginContext login() throws PrivilegedActionException {
try {
return AccessController.doPrivileged((PrivilegedExceptionAction<T>) () -> Subject.doAsPrivileged(subject, action, acc));
} catch (PrivilegedActionException pae) {
if (pae.getCause() instanceof PrivilegedActionException) {
throw (PrivilegedActionException) pae.getCause();
if (pae.getCause()instanceof PrivilegedActionException privilegedActionException) {
Copy link
Contributor

Choose a reason for hiding this comment

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

reinstate space before instanceof

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ywelsch unfortunately, that whitespace missing there is the result of spotless, because of a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=574437. We are waiting for Spotless to fix it on their side: diffplug/spotless#1046.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok 😞

@astefan astefan merged commit c018c2c into elastic:master Jan 17, 2022
@astefan astefan deleted the java17/instanceof/test branch January 17, 2022 17:37
astefan added a commit to astefan/elasticsearch that referenced this pull request Jan 17, 2022
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Core/Infra/Core Core issues without another label >non-issue >refactoring Team:Core/Infra Meta label for core/infra team v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants