mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8226831: Use Objects.equals() when appropriate
Reviewed-by: rriggs, bpb
This commit is contained in:
parent
99bf89c581
commit
3ed845784d
7 changed files with 26 additions and 31 deletions
|
@ -274,8 +274,7 @@ public class AlgorithmId implements Serializable, DerEncoder {
|
|||
* with the same parameters.
|
||||
*/
|
||||
public boolean equals(AlgorithmId other) {
|
||||
boolean paramsEqual =
|
||||
(params == null ? other.params == null : params.equals(other.params));
|
||||
boolean paramsEqual = Objects.equals(other.params, params);
|
||||
return (algid.equals((Object)other.algid) && paramsEqual);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue