googlemaps/google-maps-services-java — pull request #38 by broady (2014-10-03 03:53:33+00:00)
Title: Add extra safety to unmarshaling to enums.

Removes existing TravelModeAdapter, AddressTypeAdapter and AddressComponentTypeAdapter, replaces them with generic SafeEnumAdapter.

Add tests that check converting UNKNOWN to a UrlValue throws an exception.