Affects Version/s: 1.0, 1.1
Fix Version/s: 2.0
When you create a list of variants, you are required to call add to generate an intermediate list prior to calling build to generate the actual returned list. This can be confusing and easily missed and also seems unnecessary.
List<Variant> vs = Variant.mediaTypes("a/xml", "a/json").languages("en", "fr").build();
results in an empty list, whereas
List<Variant> vs = Variant.mediaTypes("a/xml", "a/json").languages("en", "fr").add().build();
actually builds the list. All other similar structure with the spec simply use build to generate the result.