Ignore:
Timestamp:
2016-05-15T00:51:10+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S2221 - "Exception" should not be caught when not required by called methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java

    r10210 r10212  
    1616import java.awt.event.WindowEvent;
    1717import java.io.BufferedReader;
     18import java.io.IOException;
    1819import java.io.InputStreamReader;
    1920import java.io.StringReader;
     
    155156                css.append('\n');
    156157            }
    157         } catch (Exception e) {
     158        } catch (IOException e) {
    158159            Main.error(tr("Failed to read CSS file ''help-browser.css''. Exception is: {0}", e.toString()));
    159160            Main.error(e);
     
    239240        try {
    240241            help.getEditorKit().read(new StringReader(content), document, 0);
    241         } catch (Exception e) {
     242        } catch (IOException | BadLocationException e) {
    242243            Main.error(e);
    243244        }
     
    376377                history.setCurrentUrl(url);
    377378                this.url = url;
    378             } catch (Exception e) {
     379            } catch (HelpContentReaderException e) {
    379380                Main.warn(e);
    380381                HelpAwareOptionPane.showOptionDialog(
Note: See TracChangeset for help on using the changeset viewer.