Skip to content

Commit

Permalink
Merge #5540 from 4.1 into 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BalusC committed Dec 28, 2024
2 parents a81e9d7 + 93934ed commit 55e7878
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions impl/src/main/java/com/sun/faces/util/MessageFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import java.text.MessageFormat;
import java.util.Locale;
import java.util.MissingResourceException;
import java.util.Objects;
import java.util.ResourceBundle;

import jakarta.el.ValueExpression;
Expand Down Expand Up @@ -322,6 +323,19 @@ private String getFormattedString(String msgtext, Object[] params) {
private final Locale locale;
private final Object[] parameters;
private Object[] resolvedParameters;

@Override
public int hashCode() {
return Objects.hash(super.hashCode(), locale, parameters, resolvedParameters);
}

@Override
public boolean equals(Object object) {
return super.equals(object)
&& Objects.equals(locale, ((BindingFacesMessage) object).locale)
&& Objects.equals(parameters, ((BindingFacesMessage) object).parameters)
&& Objects.equals(resolvedParameters, ((BindingFacesMessage) object).resolvedParameters);
}
}

} // end of class MessageFactory

0 comments on commit 55e7878

Please sign in to comment.