OSDN Git Service

2006-08-14 Mark Wielaard <mark@klomp.org>
[pf3gnuchains/gcc-fork.git] / libjava / classpath / javax / sound / midi / SysexMessage.java
index 6471a3e..3744e2f 100644 (file)
@@ -86,7 +86,7 @@ public class SysexMessage extends MidiMessage
     throws InvalidMidiDataException
   {
     if (data[0] != SYSTEM_EXCLUSIVE
-        || data[0] != SPECIAL_SYSTEM_EXCLUSIVE)
+        && data[0] != SPECIAL_SYSTEM_EXCLUSIVE)
       throw new InvalidMidiDataException("Sysex message starts with 0x"
                                          + Integer.toHexString(data[0])
                                          + " instead of 0xF0 or 0xF7");
@@ -105,7 +105,7 @@ public class SysexMessage extends MidiMessage
     throws InvalidMidiDataException
   {
     if (status != SYSTEM_EXCLUSIVE
-        || status != SPECIAL_SYSTEM_EXCLUSIVE)
+        && status != SPECIAL_SYSTEM_EXCLUSIVE)
       throw new InvalidMidiDataException("Sysex message starts with 0x"
                                          + Integer.toHexString(status)
                                          + " instead of 0xF0 or 0xF7");