Changeset 8487 in josm


Ignore:
Timestamp:
2015-06-11T01:00:43+02:00 (9 years ago)
Author:
Don-vip
Message:

Hide implicit public constructor for utility classes

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/cache/JCSCacheManager.java

    r8357 r8487  
    4747     */
    4848    public static final IntegerProperty DEFAULT_MAX_OBJECTS_IN_MEMORY  = new IntegerProperty(PREFERENCE_PREFIX + ".max_objects_in_memory", 1000);
     49
     50    private JCSCacheManager() {
     51        // Hide implicit public constructor for utility classes
     52    }
    4953
    5054    @SuppressWarnings("resource")
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java

    r8444 r8487  
    480480     */
    481481    public static class LaunchChangesetManager {
     482
     483        private LaunchChangesetManager() {
     484            // Hide implicit public constructor for utility classes
     485        }
    482486
    483487        protected static void launchChangesetManager(Collection<Integer> toSelect) {
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java

    r8459 r8487  
    101101     *
    102102     * First parameter can be of type {@link Environment} (if needed). This is
    103      * automatically filled in by JOSM and the user only sees the remaining
    104      * arguments.
     103     * automatically filled in by JOSM and the user only sees the remaining arguments.
    105104     * When one of the user supplied arguments cannot be converted the
    106105     * expected type or is null, the function is not called and it returns null
    107      * immediately. Add the annotation {@link NullableArguments} to allow
    108      * null arguments.
     106     * immediately. Add the annotation {@link NullableArguments} to allow null arguments.
    109107     * Every method must be static.
    110108     */
    111109    @SuppressWarnings("UnusedDeclaration")
    112110    public static class Functions {
     111
     112        private Functions() {
     113            // Hide implicit public constructor for utility classes
     114        }
    113115
    114116        /**
  • trunk/src/org/openstreetmap/josm/tools/RightAndLefthandTraffic.java

    r8377 r8487  
    5151    private static volatile GeoPropertyIndex<Boolean> rlCache;
    5252
     53    private RightAndLefthandTraffic() {
     54        // Hide implicit public constructor for utility classes
     55    }
     56
    5357    /**
    5458     * Check if there is right-hand traffic at a certain location.
     
    7882        rlCache = new GeoPropertyIndex<Boolean>(new RLTrafficGeoProperty(), 24);
    7983    }
    80 
    8184}
Note: See TracChangeset for help on using the changeset viewer.