Ignore:
Timestamp:
24.01.2012 21:52:43 (4 months ago)
Author:
jttt
Message:

Use final were appropriate

Location:
trunk/src/org/openstreetmap/josm/data/projection
Files:
3 edited

Legend:

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

    r4304 r4869  
    2222public class GaussKrueger extends AbstractProjection implements ProjectionSubPrefs { 
    2323 
    24     public static int DEFAULT_ZONE = 2; 
     24    public static final int DEFAULT_ZONE = 2; 
    2525    private int zone; 
    26      
    27     private static Bounds[] bounds = {  
     26 
     27    private static Bounds[] bounds = { 
    2828        new Bounds(new LatLon(-5, 3.5), new LatLon(85, 8.5)), 
    2929        new Bounds(new LatLon(-5, 6.5), new LatLon(85, 11.5)), 
     
    3333 
    3434    private static NTV2GridShiftFile BETA2007 = null; 
    35      
     35 
    3636    private static String[] zones = { "2", "3", "4", "5" }; 
    3737 
     
    4545                String gridFileName = "BETA2007.gsb"; 
    4646                InputStream is = Main.class.getResourceAsStream("/data/"+gridFileName); 
    47                 if (is == null) { 
     47                if (is == null) 
    4848                    throw new RuntimeException(tr("Error: failed to open input stream for resource ''/data/{0}''.", gridFileName)); 
    49                 } 
    5049                BETA2007 = new NTV2GridShiftFile(); 
    5150                BETA2007.loadGridShiftFile(is, false); 
     
    7069    } 
    7170 
    72     @Override  
     71    @Override 
    7372    public String toString() { 
    7473        return tr("Gau\u00DF-Kr\u00FCger"); 
    7574    } 
    76      
     75 
    7776    @Override 
    7877    public Integer getEpsgCode() { 
     
    8988        return bounds[zone-2]; 
    9089    } 
    91      
     90 
    9291    @Override 
    9392    public void setupPreferencePanel(JPanel p, ActionListener listener) { 
     
    106105        } 
    107106    } 
    108      
     107 
    109108    @Override 
    110109    public Collection<String> getPreferences(JPanel p) { 
     
    115114        return Collections.singleton(Integer.toString(zone+2)); 
    116115    } 
    117      
     116 
    118117    @Override 
    119118    public void setPreferences(Collection<String> args) { 
     
    133132        updateParameters(zone); 
    134133    } 
    135      
     134 
    136135    @Override 
    137136    public String[] allCodes() { 
     
    154153        return null; 
    155154    } 
    156      
     155 
    157156} 
  • trunk/src/org/openstreetmap/josm/data/projection/datum/GRS80Datum.java

    r4285 r4869  
    1313public class GRS80Datum extends AbstractDatum { 
    1414 
    15     public static GRS80Datum INSTANCE = new GRS80Datum(); 
    16      
     15    public final static GRS80Datum INSTANCE = new GRS80Datum(); 
     16 
    1717    private GRS80Datum() { 
    1818        super(tr("GRS80"), null, Ellipsoid.GRS80); 
    1919    } 
    20      
     20 
    2121    @Override 
    2222    public LatLon fromWGS84(LatLon ll) { 
  • trunk/src/org/openstreetmap/josm/data/projection/datum/WGS84Datum.java

    r4285 r4869  
    1212public class WGS84Datum extends AbstractDatum { 
    1313 
    14     public static WGS84Datum INSTANCE = new WGS84Datum(); 
     14    public static final WGS84Datum INSTANCE = new WGS84Datum(); 
    1515 
    1616    private WGS84Datum() { 
Note: See TracChangeset for help on using the changeset viewer.