7006997: A typo in MidiSystem.getTransmitter() implementation code

Reviewed-by: dav
This commit is contained in:
Alex Menkov 2010-12-29 16:26:23 +03:00
parent d60b64b17c
commit e56a2bc8d2

View File

@ -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 @@ public class MidiSystem {
} else {
transmitter = device.getTransmitter();
}
if (!(transmitter instanceof MidiDeviceReceiver)) {
if (!(transmitter instanceof MidiDeviceTransmitter)) {
transmitter = new MidiDeviceTransmitterEnvelope(device, transmitter);
}
return transmitter;