changeset 3463:ac1e3f99a69e

7006997: A typo in MidiSystem.getTransmitter() implementation code Reviewed-by: dav
author amenkov
date Wed, 29 Dec 2010 16:26:23 +0300
parents 2c3c88a389b0
children be27227ff554
files src/share/classes/javax/sound/midi/MidiSystem.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/sound/midi/MidiSystem.java	Tue Dec 28 16:37:15 2010 +0300
+++ b/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;