Ignore:
Timestamp:
2018-08-05T21:58:40+02:00 (17 months ago)
Author:
Don-vip
Message:

fix error_prone warnings

Location:
trunk/src/org/openstreetmap/josm/data
Files:
2 edited

Legend:

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

    r13602 r14095  
    160160    /**
    161161     * Constructs bounds out of two points. Coords will be rounded.
    162      * @param minlat min lat
    163      * @param minlon min lon
    164      * @param maxlat max lat
    165      * @param maxlon max lon
    166      */
    167     public Bounds(double minlat, double minlon, double maxlat, double maxlon) {
    168         this(minlat, minlon, maxlat, maxlon, true);
     162     * @param minLat min lat
     163     * @param minLon min lon
     164     * @param maxLat max lat
     165     * @param maxLon max lon
     166     */
     167    public Bounds(double minLat, double minLon, double maxLat, double maxLon) {
     168        this(minLat, minLon, maxLat, maxLon, true);
    169169    }
    170170
    171171    /**
    172172     * Constructs bounds out of two points.
    173      * @param minlat min lat
    174      * @param minlon min lon
    175      * @param maxlat max lat
    176      * @param maxlon max lon
     173     * @param minLat min lat
     174     * @param minLon min lon
     175     * @param maxLat max lat
     176     * @param maxLon max lon
    177177     * @param roundToOsmPrecision defines if lat/lon will be rounded
    178178     */
    179     public Bounds(double minlat, double minlon, double maxlat, double maxlon, boolean roundToOsmPrecision) {
     179    public Bounds(double minLat, double minLon, double maxLat, double maxLon, boolean roundToOsmPrecision) {
    180180        if (roundToOsmPrecision) {
    181             this.minLat = LatLon.roundToOsmPrecision(minlat);
    182             this.minLon = LatLon.roundToOsmPrecision(minlon);
    183             this.maxLat = LatLon.roundToOsmPrecision(maxlat);
    184             this.maxLon = LatLon.roundToOsmPrecision(maxlon);
    185         } else {
    186             this.minLat = minlat;
    187             this.minLon = minlon;
    188             this.maxLat = maxlat;
    189             this.maxLon = maxlon;
     181            this.minLat = LatLon.roundToOsmPrecision(minLat);
     182            this.minLon = LatLon.roundToOsmPrecision(minLon);
     183            this.maxLat = LatLon.roundToOsmPrecision(maxLat);
     184            this.maxLon = LatLon.roundToOsmPrecision(maxLon);
     185        } else {
     186            this.minLat = minLat;
     187            this.minLon = minLon;
     188            this.maxLat = maxLat;
     189            this.maxLon = maxLon;
    190190        }
    191191    }
  • trunk/src/org/openstreetmap/josm/data/UserIdentityManager.java

    r13493 r14095  
    241241     * Replies true if the user with name <code>username</code> is the current user
    242242     *
    243      * @param username the user name
     243     * @param userName the user name
    244244     * @return true if the user with name <code>username</code> is the current user
    245245     */
    246     public boolean isCurrentUser(String username) {
    247         return this.userName != null && this.userName.equals(username);
     246    public boolean isCurrentUser(String userName) {
     247        return this.userName != null && this.userName.equals(userName);
    248248    }
    249249
Note: See TracChangeset for help on using the changeset viewer.