+
Skip to content

Potential copy-paste issue in PersistentClientSessionEntity.java #40663

@leeriorio

Description

@leeriorio

Description

I have identified a potential issue in the equals() method in the following code:

if (this.externalClientId != null ? !this.externalClientId.equals(key.clientId) : key.externalClientId != null) return false;
if (this.clientStorageProvider != null ? !this.clientStorageProvider.equals(key.clientId) : key.clientStorageProvider != null) return false;

It appears that the instance's fields should be compared to the corresponding fields of passed object, rather than comparing them to key.clientId

Discussion

No response

Motivation

No response

Details

No response

Found by Linux Verification Center with SVACE

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载