> +public class ListOfKeyValuesDelimitedByBlankLinesToStandardDriveSet 
> implements Function<HttpResponse, Set<StandardDrive>> {
> +   private final ReturnStringIf2xx returnStringIf200;
> +   private final ListOfKeyValuesDelimitedByBlankLinesToListOfMaps 
> mapConverter;
> +   private final MapToStandardDrive mapToStandardDrive;
> +
> +   @Inject
> +   ListOfKeyValuesDelimitedByBlankLinesToStandardDriveSet(ReturnStringIf2xx 
> returnStringIf200,
> +         ListOfKeyValuesDelimitedByBlankLinesToListOfMaps mapConverter, 
> MapToStandardDrive mapToStandardDrive) {
> +      this.returnStringIf200 = checkNotNull(returnStringIf200, 
> "returnStringIf200");
> +      this.mapConverter = checkNotNull(mapConverter, "mapConverter");
> +      this.mapToStandardDrive = checkNotNull(mapToStandardDrive, 
> "mapToStandardDrive");
> +   }
> +
> +   @Override
> +   public Set<StandardDrive> apply(HttpResponse response) {
> +      String text = returnStringIf200.apply(response);

If we add a `nullToEmpty` here, we can skip the `null` check below.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/362/files#r13033917

Reply via email to