Font.java, [...]: Removed some redundant obj == null checks.
2003-11-11 Michael Koch <konqueror@gmx.de> * java/awt/Font.java, java/awt/datatransfer/DataFlavor.java, java/math/BigInteger.java, java/net/Inet4Address.java, java/net/Inet6Address.java, java/rmi/MarshalledObject.java, java/rmi/server/RMIClassLoader.java, java/security/cert/CertStore.java, java/sql/Timestamp.java, java/text/SimpleDateFormat.java, javax/naming/CompoundName.java: Removed some redundant obj == null checks. From-SVN: r73448
This commit is contained in:
parent
c824ce21ca
commit
5237cd77c2
12 changed files with 22 additions and 21 deletions
|
@ -240,7 +240,7 @@ public class CompoundName implements Name, Cloneable, Serializable
|
|||
|
||||
public int compareTo (Object obj)
|
||||
{
|
||||
if (obj == null || ! (obj instanceof CompoundName))
|
||||
if (! (obj instanceof CompoundName))
|
||||
throw new ClassCastException ("CompoundName.compareTo() expected CompoundName");
|
||||
CompoundName cn = (CompoundName) obj;
|
||||
int last = Math.min (cn.elts.size (), elts.size ());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue