Skip to content

KAFKA-7389: Enable spotBugs with Java 11 and disable false positive warnings#5943

Merged
ijuma merged 1 commit intoapache:trunkfrom
ijuma:kafka-7389-spotbugs-java11
Nov 27, 2018
Merged

KAFKA-7389: Enable spotBugs with Java 11 and disable false positive warnings#5943
ijuma merged 1 commit intoapache:trunkfrom
ijuma:kafka-7389-spotbugs-java11

Conversation

@ijuma
Copy link
Copy Markdown
Member

@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
Copy Markdown
Member 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 force-pushed the kafka-7389-spotbugs-java11 branch from 042c78b to 04db4b6 Compare November 24, 2018 17:46
@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
Copy Markdown
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
Copy Markdown
Member 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

Development

Successfully merging this pull request may close these issues.

2 participants