bivas / protobuf-java-format

Provide serialization and de-serialization of different formats based on Google’s protobuf Message. Enables overriding the default (byte array) output to text based formats such as XML, JSON and HTML.
BSD 3-Clause "New" or "Revised" License
153 stars 97 forks source link

Addresses issue #42 #16

Closed mglezer closed 8 years ago

mglezer commented 8 years ago

Avoids parsing errors when an unknown number field with a decimal is encountered. See https://code.google.com/p/protobuf-java-format/issues/detail?id=42

bivas commented 8 years ago

This patch seems strange... You check that you're looking at an Integer but then parse a Double. I think a better switch should be in place.