2004-07-17 Michael Koch <konqueror@gmx.de>
* java/nio/ByteOrder.java (static): Removed. Not needed. Thanks to Patrick Reali for noticing. * java/nio/charset/CharsetDecoder.java (decode): Fix for classpath bug #9177: Reset state before flipping. From-SVN: r84856
This commit is contained in:
parent
e3fe5b9c99
commit
651ba822d0
3 changed files with 12 additions and 12 deletions
|
@ -46,22 +46,13 @@ import gnu.classpath.Configuration;
|
|||
*/
|
||||
public final class ByteOrder
|
||||
{
|
||||
public static final ByteOrder BIG_ENDIAN = new ByteOrder();
|
||||
public static final ByteOrder BIG_ENDIAN = new ByteOrder();
|
||||
public static final ByteOrder LITTLE_ENDIAN = new ByteOrder();
|
||||
|
||||
static
|
||||
{
|
||||
// load the shared library needed for native methods.
|
||||
if (Configuration.INIT_LOAD_LIBRARY)
|
||||
{
|
||||
System.loadLibrary ("javanio");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the native byte order of the platform currently running.
|
||||
*/
|
||||
public static ByteOrder nativeOrder ()
|
||||
public static ByteOrder nativeOrder()
|
||||
{
|
||||
return (System.getProperty ("gnu.cpu.endian").equals("big")
|
||||
? BIG_ENDIAN : LITTLE_ENDIAN);
|
||||
|
@ -76,7 +67,7 @@ public final class ByteOrder
|
|||
}
|
||||
|
||||
// This class can only be instantiated here.
|
||||
private ByteOrder ()
|
||||
private ByteOrder()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
@ -129,6 +129,7 @@ public abstract class CharsetDecoder
|
|||
if (cr.isError ())
|
||||
cr.throwException ();
|
||||
|
||||
reset();
|
||||
out.flip ();
|
||||
return out;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue