equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2000, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
91 * |
91 * |
92 * @return true iff the ids are identical. |
92 * @return true iff the ids are identical. |
93 */ |
93 */ |
94 public boolean equals(Object other) { |
94 public boolean equals(Object other) { |
95 if (other instanceof CertificatePolicyId) |
95 if (other instanceof CertificatePolicyId) |
96 return id.equals(((CertificatePolicyId) other).getIdentifier()); |
96 return id.equals((Object) |
|
97 ((CertificatePolicyId) other).getIdentifier()); |
97 else |
98 else |
98 return false; |
99 return false; |
99 } |
100 } |
100 |
101 |
101 /** |
102 /** |