Polishing.

Add nullable annotations. Add tests.

See #2279
Original pull request: #2280.
This commit is contained in:
Mark Paluch
2022-03-31 10:07:00 +02:00
parent 5ce30f0df4
commit 84820c4e17
2 changed files with 27 additions and 1 deletions

View File

@@ -387,7 +387,8 @@ abstract class AbstractOperations<K, V> {
* @return converted or {@literal null}.
* @since 1.8
*/
GeoResults<GeoLocation<V>> deserializeGeoResults(GeoResults<GeoLocation<byte[]>> source) {
@Nullable
GeoResults<GeoLocation<V>> deserializeGeoResults(@Nullable GeoResults<GeoLocation<byte[]>> source) {
if (source == null) {
return null;