src/share/classes/sun/security/x509/DistributionPointName.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 199,210 **** if (obj instanceof DistributionPointName == false) { return false; } DistributionPointName other = (DistributionPointName)obj; ! return equals(this.fullName, other.fullName) && ! equals(this.relativeName, other.relativeName); } /** * Returns the hash code for this distribution point name. * --- 199,210 ---- if (obj instanceof DistributionPointName == false) { return false; } DistributionPointName other = (DistributionPointName)obj; ! return Objects.equals(this.fullName, other.fullName) && ! Objects.equals(this.relativeName, other.relativeName); } /** * Returns the hash code for this distribution point name. *
*** 237,249 **** sb.append("DistributionPointName:\n " + relativeName + "\n"); } return sb.toString(); } - - /* - * Utility function for a.equals(b) where both a and b may be null. - */ - private static boolean equals(Object a, Object b) { - return (a == null) ? (b == null) : a.equals(b); - } } --- 237,242 ----