Changeset 7025 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2014-04-29T03:24:57+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java
r6830 r7025 11 11 import javax.sound.sampled.AudioSystem; 12 12 import javax.sound.sampled.DataLine; 13 import javax.sound.sampled.LineUnavailableException; 13 14 import javax.sound.sampled.SourceDataLine; 15 import javax.sound.sampled.UnsupportedAudioFileException; 14 16 import javax.swing.JOptionPane; 15 17 … … 339 341 } 340 342 command.ok(stateChange); 341 } catch ( Exception startPlayingException) {343 } catch (LineUnavailableException | IOException | UnsupportedAudioFileException startPlayingException) { 342 344 command.failed(startPlayingException); // sets state 343 345 } -
trunk/src/org/openstreetmap/josm/tools/AudioUtil.java
r6889 r7025 3 3 4 4 import java.io.File; 5 import java.io.IOException; 6 import java.net.MalformedURLException; 5 7 import java.net.URL; 6 8 … … 8 10 import javax.sound.sampled.AudioInputStream; 9 11 import javax.sound.sampled.AudioSystem; 12 import javax.sound.sampled.UnsupportedAudioFileException; 10 13 11 14 import org.openstreetmap.josm.Main; … … 40 43 double calibration = Main.pref.getDouble("audio.calibration", 1.0 /* default, ratio */); 41 44 return naturalLength / calibration; 42 } catch ( Exception e) {45 } catch (UnsupportedAudioFileException | IOException e) { 43 46 return 0.0; 44 47 } -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r7024 r7025 770 770 @Override 771 771 public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { 772 if ( localName.equalsIgnoreCase("img")) {772 if ("img".equalsIgnoreCase(localName)) { 773 773 String val = atts.getValue("src"); 774 774 if (val.endsWith(fn))
Note: See TracChangeset
for help on using the changeset viewer.