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

Fix compiler warnings in :server - part 4 #76302

Merged
merged 17 commits into from
Aug 11, 2021

Conversation

pugnascotia
Copy link
Contributor

Closes #40366.

Fix the last remaining javac issues when linting is enforced in server/.

@elasticmachine elasticmachine added the Team:Delivery Meta label for Delivery team label Aug 10, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

Copy link
Contributor

@mark-vieira mark-vieira left a 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 {
Copy link
Contributor

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() {
Copy link
Contributor

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.

@breskeby breskeby self-requested a review August 11, 2021 08:04
Copy link
Contributor

@breskeby breskeby left a comment

Choose a reason for hiding this comment

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

lgtm

@pugnascotia
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/part-1

1 similar comment
@pugnascotia
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/part-1

@pugnascotia pugnascotia merged commit 4137d11 into elastic:master Aug 11, 2021
@pugnascotia pugnascotia deleted the 40366-lint-warnings-server-pt4 branch August 11, 2021 15:15
nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Aug 11, 2021
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.
elasticsearchmachine pushed a commit that referenced this pull request Aug 11, 2021
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.
pugnascotia added a commit to pugnascotia/elasticsearch that referenced this pull request Aug 11, 2021
Closes elastic#40366.

Fix the last remaining javac issues when linting is enforced in `server/`.
nik9000 added a commit to nik9000/elasticsearch that referenced this pull request Aug 11, 2021
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.
nik9000 added a commit that referenced this pull request Aug 11, 2021
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.
elasticsearchmachine pushed a commit that referenced this pull request Aug 16, 2021
* Fix compiler warnings in :server - part 4 (#76302)

Closes #40366.

Fix the last remaining javac issues when linting is enforced in `server/`.

* Further fixes after backport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure >refactoring Team:Delivery Meta label for Delivery team v7.15.0 v8.0.0-alpha2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove disable Xlint warning from gradle files.
5 participants