Commit ca67f278 by Michael Koch Committed by Michael Koch

2004-02-28 Michael Koch <konqueror@gmx.de>

	* java/nio/ByteOrder.java
	(nativeOrder): Use equals() to compare strings.

From-SVN: r78626
parent 0e1b98cc
2004-02-28 Michael Koch <konqueror@gmx.de>
* java/nio/ByteOrder.java
(nativeOrder): Use equals() to compare strings.
2004-02-26 Michael Koch <konqueror@gmx.de> 2004-02-26 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/FileLockImpl.java * gnu/java/nio/FileLockImpl.java
......
...@@ -63,7 +63,7 @@ public final class ByteOrder ...@@ -63,7 +63,7 @@ public final class ByteOrder
*/ */
public static ByteOrder nativeOrder () public static ByteOrder nativeOrder ()
{ {
return (System.getProperty ("gnu.cpu.endian") == "big" return (System.getProperty ("gnu.cpu.endian").equals("big")
? BIG_ENDIAN : LITTLE_ENDIAN); ? BIG_ENDIAN : LITTLE_ENDIAN);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment