From: Michael Koch Date: Tue, 11 Nov 2003 11:56:58 +0000 (+0000) Subject: 2003-11-11 Michael Koch X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c824ce21ca58c7fc312dc95e8671d7f584b967a7;p=platform%2Fupstream%2Fgcc.git 2003-11-11 Michael Koch * java/nio/ByteBuffer.java (equals): Remove redundant obj == null check. From-SVN: r73447 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 1e57919..607d1f8 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,10 @@ 2003-11-11 Michael Koch + * java/nio/ByteBuffer.java + (equals): Remove redundant obj == null check. + +2003-11-11 Michael Koch + * gnu/java/nio/natPipeImpl.cc, gnu/java/nio/natSelectorImpl.cc: Removed * gnu/java/nio/natPipeImplEcos.cc, diff --git a/libjava/java/nio/ByteBuffer.java b/libjava/java/nio/ByteBuffer.java index 1727b41..3be7977 100644 --- a/libjava/java/nio/ByteBuffer.java +++ b/libjava/java/nio/ByteBuffer.java @@ -278,8 +278,7 @@ public abstract class ByteBuffer extends Buffer */ public boolean equals (Object obj) { - if (obj != null && - obj instanceof ByteBuffer) + if (obj instanceof ByteBuffer) { return compareTo (obj) == 0; }