Ignore:
Timestamp:
2014-02-27T02:50:12+01:00 (6 years ago)
Author:
Don-vip
Message:

fix some Sonar issues (Constructor Calls Overridable Method)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShift.java

    r5817 r6890  
    4949    private String subGridName;
    5050
     51    /**
     52     * Constructs a new {@code NTV2GridShift}.
     53     */
    5154    public NTV2GridShift() {
    5255    }
     
    233236     * @param d latitude value in seconds
    234237     */
    235     public void setLatSeconds(double d) {
     238    public final void setLatSeconds(double d) {
    236239        lat = d;
    237240    }
     
    241244     * @param d latitude value in degree
    242245     */
    243     public void setLatDegrees(double d) {
     246    public final void setLatDegrees(double d) {
    244247        lat = d * 3600.0;
    245248    }
     
    249252     * @param b availability of latitude accuracy
    250253     */
    251     public void setLatAccuracyAvailable(boolean b) {
     254    public final void setLatAccuracyAvailable(boolean b) {
    252255        latAccuracyAvailable = b;
    253256    }
     
    257260     * @param d latitude accuracy in seconds
    258261     */
    259     public void setLatAccuracySeconds(double d) {
     262    public final void setLatAccuracySeconds(double d) {
    260263        latAccuracy = d;
    261264    }
     
    265268     * @param d latitude shift in seconds
    266269     */
    267     public void setLatShiftSeconds(double d) {
     270    public final void setLatShiftSeconds(double d) {
    268271        latShift = d;
    269272    }
     
    273276     * @param d latitude value in seconds, west direction is positive
    274277     */
    275     public void setLonPositiveWestSeconds(double d) {
     278    public final void setLonPositiveWestSeconds(double d) {
    276279        lon = d;
    277280    }
     
    281284     * @param d latitude value in degree, est direction is positive
    282285     */
    283     public void setLonPositiveEastDegrees(double d) {
     286    public final void setLonPositiveEastDegrees(double d) {
    284287        lon = d * -3600.0;
    285288    }
     
    289292     * @param b availability of longitude accuracy
    290293     */
    291     public void setLonAccuracyAvailable(boolean b) {
     294    public final void setLonAccuracyAvailable(boolean b) {
    292295        lonAccuracyAvailable = b;
    293296    }
     
    297300     * @param d longitude accuracy in seconds
    298301     */
    299     public void setLonAccuracySeconds(double d) {
     302    public final void setLonAccuracySeconds(double d) {
    300303        lonAccuracy = d;
    301304    }
     
    305308     * @param d longitude shift in seconds, west direction is positive
    306309     */
    307     public void setLonShiftPositiveWestSeconds(double d) {
     310    public final void setLonShiftPositiveWestSeconds(double d) {
    308311        lonShift = d;
    309312    }
Note: See TracChangeset for help on using the changeset viewer.