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

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

From-SVN: r78626
This commit is contained in:
Michael Koch 2004-02-28 21:16:17 +00:00 committed by Michael Koch
parent 0e1b98cccc
commit ca67f27850
2 changed files with 6 additions and 1 deletions

View file

@ -63,7 +63,7 @@ public final class ByteOrder
*/
public static ByteOrder nativeOrder ()
{
return (System.getProperty ("gnu.cpu.endian") == "big"
return (System.getProperty ("gnu.cpu.endian").equals("big")
? BIG_ENDIAN : LITTLE_ENDIAN);
}