Azure / azure-cosmosdb-java

Java Async SDK for SQL API of Azure Cosmos DB
MIT License
54 stars 61 forks source link

[V3] JsonSerializable should avoid returning concrete types in some cases #155

Closed christopheranderson closed 5 years ago

christopheranderson commented 5 years ago

JsonSerializable has a few interesting return types. getHashMap() returns a HashMap, when one would expect it to be Map, and the getCollection(...) methods return Collection, when one might expect a List or Set.

(Collection should actually be fine as it is an interface)

Let's go with renaming the methods and fixing return types

christopheranderson commented 5 years ago

done