commit | f979012c9b5891254177dae965b2b64d70b8c283 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Sat Feb 20 16:17:50 2016 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Sat Feb 20 23:24:25 2016 +0900 |
tree | c01ade3db01e710194b8b760f1c12e0298f4235f | |
parent | 70fc1623301ab5268c54bb203329893893ed35cb [diff] |
Add a unit test for MessageUtils. Also fix a couple of issues in the code: 1. Check that fields are static before attempting to read them. Currently, if a non-static field's name starts with one of the specified constant prefixes (by default, "CMD_" and "EVENT_") we'd get an NPE. 2. Only read final fields. Change-Id: I0e07c4c27a66180cbaf7f2b1c235daafc080863b