Ignore:
Timestamp:
2013-11-02T23:47:36+01:00 (10 years ago)
Author:
Don-vip
Message:

Sonar/Findbugs - Hide Utility Class Constructor

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

Legend:

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

    r3857 r6360  
    99public class ColorHelper {
    1010
     11    private ColorHelper() {
     12        // Hide default constructor for utils classes
     13    }
     14   
    1115    public static Color html2color(String html) {
    1216        if (html.length() > 0 && html.charAt(0) == '#')
  • trunk/src/org/openstreetmap/josm/tools/ExifReader.java

    r6209 r6360  
    2727public class ExifReader {
    2828
     29    private ExifReader() {
     30        // Hide default constructor for utils classes
     31    }
     32   
    2933    /**
    3034     * Returns the date/time from the given JPEG file.
  • trunk/src/org/openstreetmap/josm/tools/I18n.java

    r6316 r6360  
    3232 */
    3333public class I18n {
     34   
     35    private I18n() {
     36        // Hide default constructor for utils classes
     37    }
     38   
    3439    private enum PluralMode { MODE_NOTONE, MODE_NONE, MODE_GREATERONE,
    3540        MODE_CS/*, MODE_AR*/, MODE_PL/*, MODE_RO*/, MODE_RU, MODE_SK/*, MODE_SL*/}
  • trunk/src/org/openstreetmap/josm/tools/LanguageInfo.java

    r6223 r6360  
    55
    66public class LanguageInfo {
     7   
     8    private LanguageInfo() {
     9        // Hide default constructor for utils classes
     10    }
     11   
    712    /**
    813     * Type of the locale to use
     
    8691        else if (full.equals("in"))
    8792            return "id";
    88         else if (I18n.hasCode(full)) /* catch all non-single codes */
     93        else if (I18n.hasCode(full)) // catch all non-single codes
    8994            return full;
    9095
    91         /* return single code */
     96        // return single code
    9297        return locale.getLanguage();
    9398    }
     
    118123    }
    119124
    120     static public String getLanguageCodeXML()
    121     {
     125    static public String getLanguageCodeXML() {
    122126        return getJOSMLocaleCode()+".";
    123127    }
    124     static public String getLanguageCodeManifest()
    125     {
     128   
     129    static public String getLanguageCodeManifest() {
    126130        return getJOSMLocaleCode()+"_";
    127131    }
  • trunk/src/org/openstreetmap/josm/tools/OpenBrowser.java

    r6299 r6360  
    2222public class OpenBrowser {
    2323
     24    private OpenBrowser() {
     25        // Hide default constructor for utils classes
     26    }
     27   
    2428    private static void displayUrlFallback(URI uri) throws IOException {
    2529        if (Main.platform == null)
  • trunk/src/org/openstreetmap/josm/tools/TextTagParser.java

    r6340 r6360  
    3434    protected static final String KEY_PATTERN = Main.pref.get("tags.paste.tag-pattern", "[0-9a-zA-Z:_]*");
    3535    protected static final int MAX_VALUE_LENGTH = 255;
     36   
     37    private TextTagParser() {
     38        // Hide default constructor for utils classes
     39    }
    3640   
    3741    public static class TextAnalyzer {
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r6354 r6360  
    4747public class Utils {
    4848
     49    private Utils() {
     50        // Hide default constructor for utils classes
     51    }
     52
    4953    public static <T> boolean exists(Iterable<? extends T> collection, Predicate<? super T> predicate) {
    5054        for (T item : collection) {
Note: See TracChangeset for help on using the changeset viewer.