Ignore:
Timestamp:
2014-04-16T02:29:53+02:00 (10 years ago)
Author:
Don-vip
Message:

sonar - fix some more issues

Location:
trunk/src/org/openstreetmap/josm/gui/help
Files:
3 edited

Legend:

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

    r6920 r6987  
    4343    public String fetchHelpTopicContent(String helpTopicUrl, boolean dotest) throws HelpContentReaderException {
    4444        if(helpTopicUrl == null)
    45             throw new MissingHelpContentException();
     45            throw new MissingHelpContentException(helpTopicUrl);
    4646        HttpURLConnection con = null;
    4747        BufferedReader in = null;
     
    9090        }
    9191        if(dotest && s.isEmpty())
    92             throw new MissingHelpContentException();
     92            throw new MissingHelpContentException(s);
    9393        return s;
    9494    }
  • trunk/src/org/openstreetmap/josm/gui/help/HelpContentReaderException.java

    r3408 r6987  
    44public class HelpContentReaderException extends Exception {
    55    private int responseCode;
    6 
    7     public HelpContentReaderException() {
    8         super();
    9     }
    106
    117    public HelpContentReaderException(String message, Throwable cause) {
     
    3935        this.responseCode = responseCode;
    4036    }
    41 
    4237}
  • trunk/src/org/openstreetmap/josm/gui/help/MissingHelpContentException.java

    r3408 r6987  
    33
    44public class MissingHelpContentException extends HelpContentReaderException {
    5 
    6     public MissingHelpContentException() {
    7         super();
    8     }
    95
    106    public MissingHelpContentException(String message, Throwable cause) {
Note: See TracChangeset for help on using the changeset viewer.