2003-11-11 Michael Koch <konqueror@gmx.de>

* java/nio/ByteBuffer.java
	(equals): Remove redundant obj == null check.

From-SVN: r73447
This commit is contained in:
Michael Koch 2003-11-11 11:56:58 +00:00 committed by Michael Koch
parent 4ba6d1c3e2
commit c824ce21ca
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-11-11 Michael Koch <konqueror@gmx.de>
* java/nio/ByteBuffer.java
(equals): Remove redundant obj == null check.
2003-11-11 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/natPipeImpl.cc,

View File

@ -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;
}