+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.
+
2004-07-17 Michael Koch <konqueror@gmx.de>
* java/security/Security.java: Fixed javadocs all over.
*/
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);
}
// This class can only be instantiated here.
- private ByteOrder ()
+ private ByteOrder()
{
}
}