> + * limitations under the License.
> + */
> +package org.jclouds.azurecompute.arm.functions;
> +import com.google.common.base.Function;
> +import org.jclouds.http.HttpResponse;
> +
> +import javax.inject.Singleton;
> +
> +import java.net.URI;
> +/**
> + * Parses job status from http response
> + */
> +@Singleton
> +public class URIParser implements Function<HttpResponse, URI> {
> +   public URI apply(final HttpResponse from) {
> +      final String statusCode = Integer.toString(from.getStatusCode());

Response status is a primitive int, so it will never be `null`. There is also 
no need to convert it to a String.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/250/files/8d7d68bf33361d7f5df68c7e7232b03116ed6977#r58623603

Reply via email to