Ignore:
Timestamp:
2012-01-24T21:52:43+01:00 (12 years ago)
Author:
jttt
Message:

Use final were appropriate

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.