changeset 7791:7630450ac41e

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