I stumbled across this:

 private void incrementIllegalIndexUpdateDetector(int typeCode) {
   this.detectIllegalIndexUpdates[typeCode] =
(this.detectIllegalIndexUpdates[typeCode] == Integer.MAX_VALUE) ?
Integer.MIN_VALUE
           : this.detectIllegalIndexUpdates[typeCode] + 1;
 }


I think this is just a really long way of writing:

this.detectIllegalIndexUpdates[typeCode]++;


Because Integer.MAX_VALUE + 1 == Integer.MIN_VALUE

Any objects to my shortening this while I'm in this code?

-Adam

Reply via email to