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:
parent
4ba6d1c3e2
commit
c824ce21ca
@ -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,
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user