Ignore:
Timestamp:
2014-04-26T15:28:16+02:00 (11 years ago)
Author:
Don-vip
Message:

see #8465 - use multi-catch where applicable

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ExifReader.java

    r6830 r7004  
    8787            final Directory dir = metadata.getDirectory(ExifIFD0Directory.class);
    8888            return dir.getInt(ExifIFD0Directory.TAG_ORIENTATION);
    89         } catch (JpegProcessingException e) {
    90             Main.error(e);
    91         } catch (MetadataException e) {
    92             Main.error(e);
    93         } catch (IOException e) {
     89        } catch (JpegProcessingException | MetadataException | IOException e) {
    9490            Main.error(e);
    9591        }
  • trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java

    r6920 r7004  
    2828                url = URLDecoder.decode(url, "UTF-8");
    2929            }
    30         } catch (UnsupportedEncodingException x) {
    31             Main.error(x);
    32         } catch (IllegalArgumentException x) {
     30        } catch (UnsupportedEncodingException | IllegalArgumentException x) {
    3331            Main.error(x);
    3432        }
     
    7270                        z == null ? 18 : Integer.parseInt(z));
    7371            }
    74         } catch (NumberFormatException x) {
    75             Main.error(x);
    76         } catch (NullPointerException x) {
    77             Main.error(x);
    78         } catch (ArrayIndexOutOfBoundsException x) {
     72        } catch (NumberFormatException | NullPointerException | ArrayIndexOutOfBoundsException x) {
    7973            Main.error(x);
    8074        }
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java

    r7001 r7004  
    5757                }
    5858                return;
    59             } catch (IOException e) {
    60                 Main.warn(e);
    61             } catch (URISyntaxException e) {
     59            } catch (IOException | URISyntaxException e) {
    6260                Main.warn(e);
    6361            }
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r7003 r7004  
    461461                return (String) t.getTransferData(DataFlavor.stringFlavor);
    462462            }
    463         } catch (UnsupportedFlavorException ex) {
    464             Main.error(ex);
    465             return null;
    466         } catch (IOException ex) {
     463        } catch (UnsupportedFlavorException | IOException ex) {
    467464            Main.error(ex);
    468465            return null;
Note: See TracChangeset for help on using the changeset viewer.