Skip to content

Conversation

@amogh-jahagirdar
Copy link
Contributor

Reverts to using stephenc findbugs dependency for Nullable based on @rdblue comment here: https://github.com/apache/iceberg/pull/6598/files#r1103888557

cc @danielcweeks since there is a differing view based off of #6598 (comment) . In the current PR, we're reverting back to using the stephenc dependency, because it appears the javax one from com.google.code.findbugs:jsr305 is banned. Let me know your thoughts on reverting this!

To add a third option: It seems like the stephenc findbugs dependency has Nullable marked as deprecated, and based off https://stackoverflow.com/questions/19030954/cant-find-nullable-inside-javax-annotation spotbugs is the newer reccomended library to get the javax.annotation but this still just has a dependency on com.google.code.findbugs:jsr305.

CC: @jackye1995 who is managing the release for 1.2.0.

Copy link
Contributor

@jackye1995 jackye1995 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 fix!

@jackye1995 jackye1995 merged commit e5a93e8 into apache:master Feb 13, 2023
@rdblue
Copy link
Contributor

rdblue commented Feb 13, 2023

Thanks for the fix and the quick reviews!


import edu.umd.cs.findbugs.annotations.Nullable;
import java.util.List;
import javax.annotation.Nullable;
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't the stephenc library define this annotation? Or is it just the edu.umd one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It just defines the edu.umd one. https://github.com/stephenc/findbugs-annotations/blob/master/src/main/java/edu/umd/cs/findbugs/annotations/Nullable.java#L39 actually it seems like its deprecated and recommends using javax which as far as I can tell can only come from com.google.code.findbugs

@ajantha-bhat
Copy link
Member

@amogh-jahagirdar, @rdblue:

we have the below compile warning because of the findbugs dependency removal.

image

> Task :iceberg-api:compileJava
warning: unknown enum constant When.UNKNOWN
  reason: class file for javax.annotation.meta.When not found
unknown enum constant When.UNKNOWN

warning: unknown enum constant When.UNKNOWN
  reason: class file for javax.annotation.meta.When not found
warning: unknown enum constant When.UNKNOWN
  reason: class file for javax.annotation.meta.When not found
warning: unknown enum constant When.UNKNOWN
  reason: class file for javax.annotation.meta.When not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants