Make SQLEntry's overridden methods null and overflow proof

Modify equals() method to handle null and class validation.
Avoid integer overflow in compareTo() method.
Remove unnecessary multiplication by 1 in hashCode() method.
Add unit tests to validate changes.

Change-Id: Id9a72f73f06972246ca38b27e661c566662f45bb
2 files changed
tree: bf0147078402dbd1b3fa1bbddce846d27aa55265
  1. lib/
  2. src/
  3. .buckconfig
  4. .gitignore
  5. BUCK