diff options
author | Anthony Green <green@redhat.com> | 2005-09-26 17:24:00 +0000 |
---|---|---|
committer | Anthony Green <green@redhat.com> | 2005-09-26 17:24:00 +0000 |
commit | 2ba8c09de5bf8e415735164565fb1b820187df24 (patch) | |
tree | 97e3d1c8326210a3a6cfca919d8ebb1c191443e9 /javax/sound/midi/Synthesizer.java | |
parent | ef79c4f14a52a437d4b3154221bd63a434eec9de (diff) | |
download | classpath-2ba8c09de5bf8e415735164565fb1b820187df24.tar.gz |
2005-09-26 Anthony Green <green@redhat.com>
* javax/sound/midi/Synthesizer.java (loadInstrument,
unloadInstrument, remapInstrument, loadAllInstruments,
unloadAllInstruments, unloadInstrument, loadInstrument): Don't
declare the unchecked IllegalArgumentException.
* javax/sound/midi/MidiSystem.java (getMidiDevice, write): Ditto.
* javax/sound/midi/ShortMessage.java: Fix 80-column formatting
problem.
* javax/sound/midi/Sequence.java: Ditto.
* javax/sound/midi/MidiMessage.java: Ditto.
* javax/sound/midi/MidiSystem.java: Ditto.
* javax/sound/midi/MidiFileFormat.java: Ditto.
Diffstat (limited to 'javax/sound/midi/Synthesizer.java')
-rw-r--r-- | javax/sound/midi/Synthesizer.java | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/javax/sound/midi/Synthesizer.java b/javax/sound/midi/Synthesizer.java index f8ea87579..22e5e9256 100644 --- a/javax/sound/midi/Synthesizer.java +++ b/javax/sound/midi/Synthesizer.java @@ -91,8 +91,7 @@ public interface Synthesizer extends MidiDevice * @return true if the instrument was loaded and false otherwise * @throws IllegalArgumentException if this synth doesn't support instrument */ - public boolean loadInstrument(Instrument instrument) - throws IllegalArgumentException; + public boolean loadInstrument(Instrument instrument); /** * Unload an instrument from this synth. @@ -100,8 +99,7 @@ public interface Synthesizer extends MidiDevice * @param instrument the Instrument to unload * @throws IllegalArgumentException if this synth doesn't support instrument */ - public void unloadInstrument(Instrument instrument) - throws IllegalArgumentException; + public void unloadInstrument(Instrument instrument); /** * Move an intrument from one place to another. The instrument at the @@ -112,8 +110,7 @@ public interface Synthesizer extends MidiDevice * @return if from was remapped * @throws IllegalArgumentException */ - public boolean remapInstrument(Instrument from, Instrument to) - throws IllegalArgumentException; + public boolean remapInstrument(Instrument from, Instrument to); /** * Get the default Soundbank for this synth. Return null if there is no @@ -144,8 +141,7 @@ public interface Synthesizer extends MidiDevice * @return true if all instruments were loaded, false othewise * @throws IllegalArgumentException if the soundbank isn't supported by this */ - public boolean loadAllInstruments(Soundbank soundbank) - throws IllegalArgumentException; + public boolean loadAllInstruments(Soundbank soundbank); /** * Unload all soundbank instruments from this synthesizer. @@ -153,8 +149,7 @@ public interface Synthesizer extends MidiDevice * @param soundbank the Soundbank containing the instruments to unload * @throws IllegalArgumentException if the soundbank isn't supported by this */ - public void unloadAllInstruments(Soundbank soundbank) - throws IllegalArgumentException; + public void unloadAllInstruments(Soundbank soundbank); /** * Load a subset of soundbank instruments into this synthesizer. The @@ -165,8 +160,7 @@ public interface Synthesizer extends MidiDevice * @return true if instruments were loaded, false otherwise * @throws IllegalArgumentException if the soundbank isn't supported by this */ - public boolean loadInstruments(Soundbank soundbank, Patch[] patchList) - throws IllegalArgumentException; + public boolean loadInstruments(Soundbank soundbank, Patch[] patchList); /** * Unload a subset of soundbank instruments from this synthesizer. @@ -175,6 +169,5 @@ public interface Synthesizer extends MidiDevice * @param patchList the array of patches identifying instruments to unload * @throws IllegalArgumentException if the soundbank isn't supported by this */ - public void unloadInstruments(Soundbank soundbank, Patch[] patchList) - throws IllegalArgumentException; + public void unloadInstruments(Soundbank soundbank, Patch[] patchList); } |