7006997: A typo in MidiSystem.getTransmitter() implementation code
Reviewed-by: dav
--- 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;