-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-29155 Use Java 8-compatible instanceOf syntax in ReplicaKey #6729
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
Conversation
The website build failed with the following error: ``` [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.12.0:site (default-site) on project hbase: Error generating maven-checkstyle-plugin:3.1.0:checkstyle-aggregate report: Failed during checkstyle configuration: Exception was thrown while processing hbase-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/replicas/ReplicaKey.java: IllegalStateException occurred while parsing file hbase-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/replicas/ReplicaKey.java. hbase-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/replicas/ReplicaKey.java:43:35: expecting RPAREN, found 'other' -> [Help 1] ``` Checkstyle is not able to parse ReplicaKey.java (because of instanceOf pattern match syntax). We have a rule to not use Java11+ grammar on branch-3 as long as we still need to support Java 8 on branch-2.x.
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
rmdmattingly
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies here, thank you for the fix @PDavid
|
In case it helps, I had a similar thought in https://github.com/apache/hbase/pull/6722/files#diff-bfb1a20f8f7f716aaaf4eb55d2450ad337bb2ce157f51f13c135b3eab3175463L43 and I anticipate shipping that change today |
Nice, thanks @rmdmattingly. Please feel free to ship it. Then I'll close this PR. 😄 |
|
https://github.com/apache/hbase/pull/6722/files#diff-bfb1a20f8f7f716aaaf4eb55d2450ad337bb2ce157f51f13c135b3eab3175463L43 fixed the issue, so closing this PR. |
The website build failed with the following error:
Checkstyle is not able to parse ReplicaKey.java (because of instanceOf pattern match syntax).
We have a rule to not use Java11+ grammar on branch-3 as long as we still need to support Java 8 on branch-2.x.