7006997: A typo in MidiSystem.getTransmitter() implementation code
authoramenkov
Wed, 29 Dec 2010 16:26:23 +0300
changeset 7791 7630450ac41e
parent 7790 a7b669e9b0f7
child 7792 612315e0949d
7006997: A typo in MidiSystem.getTransmitter() implementation code Reviewed-by: dav
jdk/src/share/classes/javax/sound/midi/MidiSystem.java
--- a/jdk/src/share/classes/javax/sound/midi/MidiSystem.java	Tue Dec 28 16:37:15 2010 +0300
+++ b/jdk/src/share/classes/javax/sound/midi/MidiSystem.java	Wed Dec 29 16:26:23 2010 +0300
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -310,7 +310,7 @@
         } else {
             transmitter = device.getTransmitter();
         }
-        if (!(transmitter instanceof MidiDeviceReceiver)) {
+        if (!(transmitter instanceof MidiDeviceTransmitter)) {
             transmitter = new MidiDeviceTransmitterEnvelope(device, transmitter);
         }
         return transmitter;