Should FullTextIndex.setLanguage() be @Nullable?

The code for FullTextIndex.setLanguage(@NonNull String language) specifies a @NonNull parameter. But the doc comment mentions:

A null or empty ("") value will disable the language features.

implying it should accept a @Nullable parameter.

The similar function in FullTextIndexConfiguration with similar doc comment accepts a @Nullable parameter in comparison.

Yes! Good catch. I’ve opened CBL-3301 to track a fix for this.

1 Like