Fixed compiler Bug for Violations (Issue 8992)

Equals doesn't work on different propertyPath's, when all other
properties are the same (in js-mode only). Refactoring to many single if
statements fixed the problem for this class.

https://code.google.com/p/google-web-toolkit/issues/detail?id=8992