netty/netty — pull request #42 by CruzBishop (2011-11-05 22:12:28+00:00)
Title: Small fix for LocalAddress.compareTo

Previously, if both the local address ("this") and the other local address ("o") were both ephermal but were not exactly equal, an error was always generated.

This is because the hash code of "this" was being compared with "this", not with "o"; Therefore, the addresses were different but the hash codes being checked were always the same. This is checked a few lines down, and generated an error if the hash codes were the same.

This pull request fixes that by comparing the hash code of "this" with "o", not with itself.