Analyzing two equal Long

Directly Long l1 == Long l2 will be abnormal situation 

The underlying source when the value is out of the normal range within -127-128 a new re-Long object when the judgment result in false

So you should use Long.longValue == or equals comparison

Guess you like

Origin www.cnblogs.com/pengxupx/p/12143477.html