Merged gcj-eclipse branch to trunk.
From-SVN: r120621
This commit is contained in:
parent
c648dedbde
commit
97b8365caf
17478 changed files with 606493 additions and 100744 deletions
|
@ -1,5 +1,5 @@
|
|||
/* FloatBuffer.java --
|
||||
Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
|
@ -42,7 +42,7 @@ package java.nio;
|
|||
* @since 1.4
|
||||
*/
|
||||
public abstract class FloatBuffer extends Buffer
|
||||
implements Comparable
|
||||
implements Comparable<FloatBuffer>
|
||||
{
|
||||
int array_offset;
|
||||
float[] backing_buffer;
|
||||
|
@ -273,7 +273,7 @@ public abstract class FloatBuffer extends Buffer
|
|||
{
|
||||
if (obj instanceof FloatBuffer)
|
||||
{
|
||||
return compareTo (obj) == 0;
|
||||
return compareTo ((FloatBuffer) obj) == 0;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -285,10 +285,8 @@ public abstract class FloatBuffer extends Buffer
|
|||
* @exception ClassCastException If obj is not an object derived from
|
||||
* <code>FloatBuffer</code>.
|
||||
*/
|
||||
public int compareTo (Object obj)
|
||||
public int compareTo (FloatBuffer other)
|
||||
{
|
||||
FloatBuffer other = (FloatBuffer) obj;
|
||||
|
||||
int num = Math.min(remaining(), other.remaining());
|
||||
int pos_this = position();
|
||||
int pos_other = other.position();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue