diff options
Diffstat (limited to 'libjava/classpath/javax/naming/RefAddr.java')
-rw-r--r-- | libjava/classpath/javax/naming/RefAddr.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libjava/classpath/javax/naming/RefAddr.java b/libjava/classpath/javax/naming/RefAddr.java index f345c88..6e4de1c 100644 --- a/libjava/classpath/javax/naming/RefAddr.java +++ b/libjava/classpath/javax/naming/RefAddr.java @@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - + GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -71,12 +71,12 @@ public abstract class RefAddr implements Serializable */ protected RefAddr(String addrType) { - if (addrType == null) - throw new NullPointerException("addrType cannot be null"); - + if (addrType == null) + throw new NullPointerException("addrType cannot be null"); + this.addrType = addrType; } - + /** * Returns the non-null address type given to the constructor. */ @@ -84,13 +84,13 @@ public abstract class RefAddr implements Serializable { return addrType; } - + /** * Returns the possibly null content of this RefAddr. * The actual value is defined by the non-abstract subclass. */ public abstract Object getContent(); - + /** * Checks if the object is a RefAddr with the same type and content. * @@ -107,10 +107,10 @@ public abstract class RefAddr implements Serializable { Object c1 = this.getContent(); Object c2 = refAddr.getContent(); - if (c1 == null) - return c2 == null; - else - return c1.equals(c2); + if (c1 == null) + return c2 == null; + else + return c1.equals(c2); } } return false; |