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

KAFKA-7613: Enable -Xlint:rawtypes in clients, fixing warnings #8450

Open
wants to merge 7 commits into
base: trunk
Choose a base branch
from

Conversation

tombentley
Copy link
Contributor

Fix all existing javac warnings about use of raw types in clients add -Xlint:rawtypes to the clients the javac options in build.gradle. This addresses part of KAFKA-7613, but further work will be needed for the other warnings.

@tombentley
Copy link
Contributor Author

@ijuma would you be able to review this? Note that AbstractOptions is part of the public API, so maybe that needs a KIP and it would be better just to suppress that warning for now?

@tombentley
Copy link
Contributor Author

@ijuma would you be able to take a look at this, since you opened the original issue?

@ijuma
Copy link
Contributor

ijuma commented Apr 20, 2020

Yes, I should be able to review this tomorrow.

build.gradle Outdated

compileTestJava.dependsOn 'processTestMessages'
compileTestJava {
options.compilerArgs << "-Xlint:rawtypes"
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be better to keep this in the central place where we set the javac configs, but check the project name? It will be easier to maintain that way, I think.

@tombentley tombentley force-pushed the KAFKA-7613-Xlint-rawtypes-client branch from 02c4318 to 89104e7 Compare April 27, 2020 14:13
@tombentley
Copy link
Contributor Author

@ijuma done & rebased for conflict.

@tombentley
Copy link
Contributor Author

@ijuma did you have any further feed back about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants