Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

override of equals method to delegate this functionality to the equal… #4401

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion impl/src/main/java/javax/faces/model/SelectItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,11 @@ public boolean isNoSelectionOption() {
public void setNoSelectionOption(boolean noSelectionOption) {
this.noSelectionOption = noSelectionOption;
}


@Override
public boolean equals(Object obj) {
return this.getValue().equals(obj.getValue());
Copy link

@pzygielo pzygielo Jul 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there is such method as Object.getValue().

}


}