cfaed1219f
Motivation: When object-references are both same, the method should return 0 directly with no necessary go loop&compare the content of the ByteBuf. Modification: Added short circuit when both object-references are the same for equals and compare methods. Result: Added short circuit code.