Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public abstract class StepContext implements FutureCallback<Object>, Serializabl
* @see BodyInvoker#withContext
* @see DynamicContext
*/
public abstract @Nullable <T> T get(Class<T> key) throws IOException, InterruptedException;
public abstract <T> T get(Class<T> key) throws IOException, InterruptedException;

@Override public abstract void onSuccess(@Nullable Object result);
Copy link
Member

Choose a reason for hiding this comment

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

What about this one?

Copy link
Member Author

Choose a reason for hiding this comment

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

This one has not caused me any issues so far in the handful of tests I ran with the new version of SpotBugs.

Copy link
Member

Choose a reason for hiding this comment

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

OK, let us leave it for now, but it seems that SpotBugs devs have picked an interpretation of @Nullable which basically makes it a confusing synonym for @CheckForNull which should probably just be avoided generally.


Expand Down