".equals()" should not be used to test the values of "Atomic" classes

This commit is contained in:
Binary Wang 2016-12-15 16:00:02 +08:00
parent 242ccc2a01
commit 84a79a9760

View File

@ -305,7 +305,7 @@ public class StandardSession implements WxSession, InternalSession {
if (this.isValid != session.isValid) return false;
if (this.maxInactiveInterval != session.maxInactiveInterval) return false;
if (this.thisAccessedTime != session.thisAccessedTime) return false;
if (!this.accessCount.equals(session.accessCount)) return false;
if (this.accessCount.get() != session.accessCount.get()) return false;
if (!this.attributes.equals(session.attributes)) return false;
if (!this.facade.equals(session.facade)) return false;
if (!this.id.equals(session.id)) return false;