< prev index next >

src/share/classes/com/sun/security/auth/SolarisPrincipal.java

Print this page
rev 1461 : 6987827: security/util/Resources.java needs improvement
Reviewed-by: valeriep

*** 1,7 **** /* ! * Copyright (c) 1999, 2006, 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) 1999, 2010, 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
*** 74,84 **** * @exception NullPointerException if the <code>name</code> * is <code>null</code>. */ public SolarisPrincipal(String name) { if (name == null) ! throw new NullPointerException(rb.getString("provided null name")); this.name = name; } /** --- 74,84 ---- * @exception NullPointerException if the <code>name</code> * is <code>null</code>. */ public SolarisPrincipal(String name) { if (name == null) ! throw new NullPointerException(rb.getString("provided.null.name")); this.name = name; } /**
*** 98,108 **** * <p> * * @return a string representation of this <code>SolarisPrincipal</code>. */ public String toString() { ! return(rb.getString("SolarisPrincipal: ") + name); } /** * Compares the specified Object with this <code>SolarisPrincipal</code> * for equality. Returns true if the given object is also a --- 98,108 ---- * <p> * * @return a string representation of this <code>SolarisPrincipal</code>. */ public String toString() { ! return(rb.getString("SolarisPrincipal.") + name); } /** * Compares the specified Object with this <code>SolarisPrincipal</code> * for equality. Returns true if the given object is also a
< prev index next >