> +/**
> + * Transforms an {@link Status} to the jclouds portable model.
> + * 
> + * @author Sergi Castro
> + * @author Ignasi Barrera
> + */
> +@Singleton
> +public class DropletStatusToStatus implements Function<Droplet.Status, 
> Status> {
> +
> +   private static final Function<Droplet.Status, Status> toPortableStatus = 
> Functions.forMap(//
> +         ImmutableMap.<Droplet.Status, Status> builder() //
> +               .put(Droplet.Status.NEW, Status.PENDING) //
> +               .put(Droplet.Status.ACTIVE, Status.RUNNING) //
> +               .put(Droplet.Status.ARCHIVE, Status.TERMINATED) //
> +               .put(Droplet.Status.OFF, Status.SUSPENDED) //
> +               .build(), //

Remove the "stop IDE from reformatting comments"? I don't find them too bad, 
but I know @everett-toews for one doesn't like them...

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

Reply via email to