fix a bunch of java deprecation warnings
Merge pull request #754 from Medium/nick-patch-deprecation

fix a bunch of java deprecation warnings