-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Fix compiler warnings in :server - part 4 #76302
Fix compiler warnings in :server - part 4 #76302
Conversation
Pinging @elastic/es-delivery (Team:Delivery) |
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.
LGTM
@@ -85,10 +85,6 @@ dependencies { | |||
|
|||
} | |||
|
|||
tasks.withType(JavaCompile).configureEach { |
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.
🥳
@@ -352,4 +352,9 @@ private ClusterState executeClusterStateUpdateTask(ClusterState state, Runnable | |||
assertThat(result[0], notNullValue()); | |||
return result[0]; | |||
} | |||
|
|||
@SuppressWarnings("unchecked") | |||
private static <T, R, E extends Exception> CheckedFunction<T, R, E> anyCheckedFunction() { |
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.
I feel like we've duplicated this enough times it might make sense to add it to ESTestCase
or some other test utility.
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.
lgtm
@elasticmachine run elasticsearch-ci/part-1 |
1 similar comment
@elasticmachine run elasticsearch-ci/part-1 |
In elastic#76302 we removed a few warnings in a way that javac was happy with but confused Eclipse. This makes eclipse happy by dropping our overly strict bounds in `AggregationInspectionHelper`. We really weren't using any of the type bounds we'd declared there at all.
In #76302 we removed a few warnings in a way that javac was happy with but confused Eclipse. This makes eclipse happy by dropping our overly strict bounds in `AggregationInspectionHelper`. We really weren't using any of the type bounds we'd declared there at all.
Closes elastic#40366. Fix the last remaining javac issues when linting is enforced in `server/`.
In elastic#76302 we removed a few warnings in a way that javac was happy with but confused Eclipse. This makes eclipse happy by dropping our overly strict bounds in `AggregationInspectionHelper`. We really weren't using any of the type bounds we'd declared there at all.
In #76302 we removed a few warnings in a way that javac was happy with but confused Eclipse. This makes eclipse happy by dropping our overly strict bounds in `AggregationInspectionHelper`. We really weren't using any of the type bounds we'd declared there at all.
Closes #40366.
Fix the last remaining javac issues when linting is enforced in
server/
.