Clean up Validator code * Use more efficient ArrayList instead of LinkedList. * Remove redundant parentheses. * Move overloaded makeCommit functions next to each other. Change-Id: I445c190cab48a34f2f7d6fdb0d6d539389acbaf7