Yes, indeed! We have also discussed it here:
https://github.com/jclouds/jclouds/pull/338

Using MediaType in BlobStore is just a first step, since it has to deal
with content types quite a bit. IMHO, all String representations of MIME
types should use this class. Tests, annotations, you name it.

I thought we had a coding best practices doc somewhere, but I can¹t seem
to locate it. Any pointers? It would be good to capture any best practices
like this for community members to reference.

/jd

On 4/22/14, 12:45 AM, "Andrew Phillips" <[email protected]> wrote:

>> How do others feel about using the Guava MediaType [1] class for
>> MIME types instead of the (less robust) JAX-RS MediaType [2]
>> throughout the codebase going forward?  We have discussed leveraging
>>  more of the Guava libraries, and I figured I would throw it out
>> there. :)
>
>See https://github.com/jclouds/jclouds/pull/44 - I believe gaul was
>thinking along your lines. Yes, definitely all for using MediaType in
>future, if we can figure out how to sensibly handle places where it's
>optional...
>
>ap

Reply via email to