You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor callpublicstatic <Eextends@NullableObject> HashSet<E> newHashSet(E... elements) {
HashSet<E> set = newHashSetWithExpectedSize(elements.length);
Collections.addAll(set, elements);
returnset;
}
Error:
/var/home/user/workspace/nullaway-test/WebsiteProvider.java:50: error: [NullAway] passing @Nullable parameter 'website' where @NonNull is required
final Set<String> params = Sets.newHashSet(website, company);
^
(see http://t.uber.com/nullaway )
This got flagged only after recently bumping NullAway and Guava versions. It used to work before.