Ignore:
Timestamp:
2014-02-27T01:41:49+01:00 (10 years ago)
Author:
Don-vip
Message:

fix some Sonar issues (JLS order)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java

    r6830 r6889  
    255255
    256256    /* for preferences */
    257     static public Color getGenericColor() {
     257    public static Color getGenericColor() {
    258258        return Main.pref.getColor(marktr("gps point"), Color.gray);
    259259    }
     
    363363    }
    364364
    365     private final static Color[] colors = new Color[256];
     365    private static final Color[] colors = new Color[256];
    366366    static {
    367367        for (int i = 0; i < colors.length; i++) {
     
    370370    }
    371371
    372     private final static Color[] colors_cyclic = new Color[256];
     372    private static final Color[] colors_cyclic = new Color[256];
    373373    static {
    374374        for (int i = 0; i < colors_cyclic.length; i++) {
     
    405405
    406406    // lookup array to draw arrows without doing any math
    407     private final static int ll0 = 9;
    408     private final static int sl4 = 5;
    409     private final static int sl9 = 3;
    410     private final static int[][] dir = { { +sl4, +ll0, +ll0, +sl4 }, { -sl9, +ll0, +sl9, +ll0 }, { -ll0, +sl4, -sl4, +ll0 },
     407    private static final int ll0 = 9;
     408    private static final int sl4 = 5;
     409    private static final int sl9 = 3;
     410    private static final int[][] dir = { { +sl4, +ll0, +ll0, +sl4 }, { -sl9, +ll0, +sl9, +ll0 }, { -ll0, +sl4, -sl4, +ll0 },
    411411        { -ll0, -sl9, -ll0, +sl9 }, { -sl4, -ll0, -ll0, -sl4 }, { +sl9, -ll0, -sl9, -ll0 },
    412412        { +ll0, -sl4, +sl4, -ll0 }, { +ll0, +sl9, +ll0, -sl9 }, { +sl4, +ll0, +ll0, +sl4 },
     
    814814     * additional entries are initialized to true;
    815815     */
    816     final private void ensureTrackVisibilityLength() {
     816    private final void ensureTrackVisibilityLength() {
    817817        final int l = data.tracks.size();
    818818        if (l == trackVisibility.length)
Note: See TracChangeset for help on using the changeset viewer.