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-7389: Enable spotBugs with Java 11 and disable false positive warnings #5943

Merged
merged 1 commit into from Nov 27, 2018

Conversation

ijuma
Copy link
Contributor

@ijuma ijuma commented Nov 24, 2018

See spotbugs/spotbugs#756 for details on
the false positives affecting try with resources. An example is:

RCN | Nullcheck of fc at line 629 of value previously dereferenced in
org.apache.kafka.common.utils.Utils.readFileAsString(String, Charset)

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@ijuma
Copy link
Contributor Author

ijuma commented Nov 24, 2018

@omkreddy can you please review this?

…arnings

See spotbugs/spotbugs#756 for details on
the false positives affecting try with resources. An example is:

RCN | Nullcheck of fc at line 629 of value previously dereferenced in
org.apache.kafka.common.utils.Utils.readFileAsString(String, Charset)
@ijuma ijuma changed the title KAFKA-7389: Enable spotBugs with Java 11 and disable false positive warning KAFKA-7389: Enable spotBugs with Java 11 and disable false positive warnings Nov 24, 2018
Copy link
Contributor

@omkreddy omkreddy left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. LGTM

@ijuma ijuma merged commit 0ee1635 into apache:trunk Nov 27, 2018
@ijuma ijuma deleted the kafka-7389-spotbugs-java11 branch November 27, 2018 22:40
@ijuma
Copy link
Contributor Author

ijuma commented Nov 30, 2018

Cherry-picked to the 2.1 branch so that the Java 11 PR build can include spotbugs (the same PR build is used for both 2.1 and trunk).

ijuma added a commit that referenced this pull request Nov 30, 2018
…arnings (#5943)

See spotbugs/spotbugs#756 for details on
the false positives affecting try with resources. An example is:

> RCN | Nullcheck of fc at line 629 of value previously dereferenced in
> org.apache.kafka.common.utils.Utils.readFileAsString(String, Charset)

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
Pengxiaolong pushed a commit to Pengxiaolong/kafka that referenced this pull request Jun 14, 2019
…arnings (apache#5943)

See spotbugs/spotbugs#756 for details on
the false positives affecting try with resources. An example is:

> RCN | Nullcheck of fc at line 629 of value previously dereferenced in
> org.apache.kafka.common.utils.Utils.readFileAsString(String, Charset)

Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
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