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:
parent
0e1b98cccc
commit
ca67f27850
2 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue