Changeset 8346 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2015-05-11T13:34:53+02:00 (9 years ago)
Author:
Don-vip
Message:

squid:S00116 - Field names should comply with a naming convention

Location:
trunk/src/org/openstreetmap/josm
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/DownloadNotesUrlIdTask.java

    r8318 r8346  
    1212public class DownloadNotesUrlIdTask extends DownloadNotesTask {
    1313
    14     private final String URL_ID_PATTERN = "https?://www\\.(osm|openstreetmap)\\.org/note/(\\p{Digit}+).*";
     14    private static final String URL_ID_PATTERN = "https?://www\\.(osm|openstreetmap)\\.org/note/(\\p{Digit}+).*";
    1515
    1616    @Override
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java

    r8338 r8346  
    7373 */
    7474public class DrawAction extends MapMode implements MapViewPaintable, SelectionChangedListener, KeyPressReleaseListener, ModifierListener {
     75
     76    private static final Color ORANGE_TRANSPARENT = new Color(Color.ORANGE.getRed(),Color.ORANGE.getGreen(),Color.ORANGE.getBlue(),128);
     77    private static final double PHI = Math.toRadians(90);
     78
    7579    private final Cursor cursorJoinNode;
    7680    private final Cursor cursorJoinWay;
    7781
    7882    private transient Node lastUsedNode = null;
    79     private static final double PHI = Math.toRadians(90);
    8083    private double toleranceMultiplier;
    8184
     
    116119    private static int snapToIntersectionThreshold;
    117120
     121    /**
     122     * Constructs a new {@code DrawAction}.
     123     * @param mapFrame Map frame
     124     */
    118125    public DrawAction(MapFrame mapFrame) {
    119126        super(tr("Draw"), "node/autonode", tr("Draw nodes"),
     
    13231330
    13241331        private JCheckBoxMenuItem checkBox;
    1325         public final Color ORANGE_TRANSPARENT = new Color(Color.ORANGE.getRed(),Color.ORANGE.getGreen(),Color.ORANGE.getBlue(),128);
    13261332
    13271333        public void init() {
  • trunk/src/org/openstreetmap/josm/command/PurgeCommand.java

    r8338 r8346  
    3838    protected Storage<PrimitiveData> makeIncompleteData;
    3939
    40     protected Map<PrimitiveId, PrimitiveData> makeIncompleteData_byPrimId;
     40    protected Map<PrimitiveId, PrimitiveData> makeIncompleteDataByPrimId;
    4141
    4242    protected final ConflictCollection purgedConflicts = new ConflictCollection();
     
    6969    protected final void saveIncomplete(Collection<OsmPrimitive> makeIncomplete) {
    7070        makeIncompleteData = new Storage<>(new Storage.PrimitiveIdHash());
    71         makeIncompleteData_byPrimId = makeIncompleteData.foreignKey(new Storage.PrimitiveIdHash());
     71        makeIncompleteDataByPrimId = makeIncompleteData.foreignKey(new Storage.PrimitiveIdHash());
    7272
    7373        for (OsmPrimitive osm : makeIncomplete) {
     
    8686            for (int i=toPurge.size()-1; i>=0; --i) {
    8787                OsmPrimitive osm = toPurge.get(i);
    88                 if (makeIncompleteData_byPrimId.containsKey(osm)) {
     88                if (makeIncompleteDataByPrimId.containsKey(osm)) {
    8989                    // we could simply set the incomplete flag
    9090                    // but that would not free memory in case the
     
    121121
    122122        for (OsmPrimitive osm : toPurge) {
    123             PrimitiveData data = makeIncompleteData_byPrimId.get(osm);
     123            PrimitiveData data = makeIncompleteDataByPrimId.get(osm);
    124124            if (data != null) {
    125125                if (ds.getPrimitiveById(osm) != osm)
  • trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java

    r8338 r8346  
    304304                return;
    305305            else if (bbox().bounds(search_bbox)) {
    306                 buckets.search_cache = this;
     306                buckets.searchCache = this;
    307307            }
    308308
     
    393393
    394394    private QBLevel<T> root;
    395     private QBLevel<T> search_cache;
     395    private QBLevel<T> searchCache;
    396396    private int size;
    397397
     
    406406    public final void clear() {
    407407        root = new QBLevel<>(this);
    408         search_cache = null;
     408        searchCache = null;
    409409        size = 0;
    410410    }
     
    460460        @SuppressWarnings("unchecked")
    461461        T t = (T) o;
    462         search_cache = null; // Search cache might point to one of removed buckets
     462        searchCache = null; // Search cache might point to one of removed buckets
    463463        QBLevel<T> bucket = root.findBucket(t.getBBox());
    464464        if (bucket.remove_content(t)) {
     
    496496
    497497    class QuadBucketIterator implements Iterator<T> {
    498         private QBLevel<T> current_node;
    499         private int content_index;
    500         private int iterated_over;
     498        private QBLevel<T> currentNode;
     499        private int contentIndex;
     500        private int iteratedOver;
    501501
    502502        final QBLevel<T> next_content_node(QBLevel<T> q) {
     
    514514        public QuadBucketIterator(QuadBuckets<T> qb) {
    515515            if (!qb.root.hasChildren() || qb.root.hasContent()) {
    516                 current_node = qb.root;
     516                currentNode = qb.root;
    517517            } else {
    518                 current_node = next_content_node(qb.root);
    519             }
    520             iterated_over = 0;
     518                currentNode = next_content_node(qb.root);
     519            }
     520            iteratedOver = 0;
    521521        }
    522522
     
    529529
    530530        T peek() {
    531             if (current_node == null)
     531            if (currentNode == null)
    532532                return null;
    533             while ((current_node.content == null) || (content_index >= current_node.content.size())) {
    534                 content_index = 0;
    535                 current_node = next_content_node(current_node);
    536                 if (current_node == null) {
     533            while ((currentNode.content == null) || (contentIndex >= currentNode.content.size())) {
     534                contentIndex = 0;
     535                currentNode = next_content_node(currentNode);
     536                if (currentNode == null) {
    537537                    break;
    538538                }
    539539            }
    540             if (current_node == null || current_node.content == null)
     540            if (currentNode == null || currentNode.content == null)
    541541                return null;
    542             return current_node.content.get(content_index);
     542            return currentNode.content.get(contentIndex);
    543543        }
    544544
     
    546546        public T next() {
    547547            T ret = peek();
    548             content_index++;
    549             iterated_over++;
     548            contentIndex++;
     549            iteratedOver++;
    550550            return ret;
    551551        }
     
    557557            // 2. move the index back since we removed
    558558            //    an element
    559             content_index--;
     559            contentIndex--;
    560560            T object = peek();
    561             current_node.remove_content(object);
     561            currentNode.remove_content(object);
    562562        }
    563563    }
     
    581581        List<T> ret = new ArrayList<>();
    582582        // Doing this cuts down search cost on a real-life data set by about 25%
    583         if (search_cache == null) {
    584             search_cache = root;
     583        if (searchCache == null) {
     584            searchCache = root;
    585585        }
    586586        // Walk back up the tree when the last search spot can not cover the current search
    587         while (search_cache != null && !search_cache.bbox().bounds(search_bbox)) {
    588             search_cache = search_cache.parent;
    589         }
    590 
    591         if (search_cache == null) {
    592             search_cache = root;
     587        while (searchCache != null && !searchCache.bbox().bounds(search_bbox)) {
     588            searchCache = searchCache.parent;
     589        }
     590
     591        if (searchCache == null) {
     592            searchCache = root;
    593593            Main.info("bbox: " + search_bbox + " is out of the world");
    594594        }
    595595
    596         // Save parent because search_cache might change during search call
    597         QBLevel<T> tmp = search_cache.parent;
    598 
    599         search_cache.search(search_bbox, ret);
     596        // Save parent because searchCache might change during search call
     597        QBLevel<T> tmp = searchCache.parent;
     598
     599        searchCache.search(search_bbox, ret);
    600600
    601601        // A way that spans this bucket may be stored in one
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r8345 r8346  
    108108         * 'prev' to the next point.
    109109         */
    110         private int x_prev0, y_prev0;
     110        private int xPrev0, yPrev0;
    111111
    112112        public OffsetIterator(List<Node> nodes, float offset) {
     
    130130                ++idx;
    131131                if (prev != null) {
    132                     return new Point(x_prev0 + current.x - prev.x, y_prev0 + current.y - prev.y);
     132                    return new Point(xPrev0 + current.x - prev.x, yPrev0 + current.y - prev.y);
    133133                } else {
    134134                    return current;
     
    152152                ++idx;
    153153                prev = current;
    154                 x_prev0 = x_current0;
    155                 y_prev0 = y_current0;
     154                xPrev0 = x_current0;
     155                yPrev0 = y_current0;
    156156                return new Point(x_current0, y_current0);
    157157            } else {
     
    166166                    ++idx;
    167167                    prev = current;
    168                     x_prev0 = x_current0;
    169                     y_prev0 = y_current0;
     168                    xPrev0 = x_current0;
     169                    yPrev0 = y_current0;
    170170                    return new Point(x_current0, y_current0);
    171171                }
    172172
    173                 int m = dx_next*(y_current0 - y_prev0) - dy_next*(x_current0 - x_prev0);
    174 
    175                 int cx_ = x_prev0 + Math.round((float)m * dx_prev / det);
    176                 int cy_ = y_prev0 + Math.round((float)m * dy_prev / det);
     173                int m = dx_next*(y_current0 - yPrev0) - dy_next*(x_current0 - xPrev0);
     174
     175                int cx_ = xPrev0 + Math.round((float)m * dx_prev / det);
     176                int cy_ = yPrev0 + Math.round((float)m * dy_prev / det);
    177177                ++idx;
    178178                prev = current;
    179                 x_prev0 = x_current0;
    180                 y_prev0 = y_current0;
     179                xPrev0 = x_current0;
     180                yPrev0 = y_current0;
    181181                return new Point(cx_, cy_);
    182182            }
     
    207207                return 1;
    208208
    209             int d0 = Float.compare(this.style.major_z_index, other.style.major_z_index);
     209            int d0 = Float.compare(this.style.majorZIndex, other.style.majorZIndex);
    210210            if (d0 != 0)
    211211                return d0;
     
    218218                return -1;
    219219
    220             int dz = Float.compare(this.style.z_index, other.style.z_index);
     220            int dz = Float.compare(this.style.zIndex, other.style.zIndex);
    221221            if (dz != 0)
    222222                return dz;
     
    235235                return -1;
    236236
    237             return Float.compare(this.style.object_z_index, other.style.object_z_index);
     237            return Float.compare(this.style.objectZIndex, other.style.objectZIndex);
    238238        }
    239239    }
  • trunk/src/org/openstreetmap/josm/data/projection/AbstractProjection.java

    r6883 r8346  
    2626    protected Datum datum;
    2727    protected Proj proj;
    28     protected double x_0 = 0.0;     /* false easting (in meters) */
    29     protected double y_0 = 0.0;     /* false northing (in meters) */
    30     protected double lon_0 = 0.0;   /* central meridian */
    31     protected double k_0 = 1.0;     /* general scale factor */
     28    protected double x0 = 0.0;     /* false easting (in meters) */
     29    protected double y0 = 0.0;     /* false northing (in meters) */
     30    protected double lon0 = 0.0;   /* central meridian */
     31    protected double k0 = 1.0;     /* general scale factor */
    3232
    3333    public final Ellipsoid getEllipsoid() {
     
    4848
    4949    public final double getFalseEasting() {
    50         return x_0;
     50        return x0;
    5151    }
    5252
    5353    public final double getFalseNorthing() {
    54         return y_0;
     54        return y0;
    5555    }
    5656
    5757    public final double getCentralMeridian() {
    58         return lon_0;
     58        return lon0;
    5959    }
    6060
    6161    public final double getScaleFactor() {
    62         return k_0;
     62        return k0;
    6363    }
    6464
     
    6666    public EastNorth latlon2eastNorth(LatLon ll) {
    6767        ll = datum.fromWGS84(ll);
    68         double[] en = proj.project(Math.toRadians(ll.lat()), Math.toRadians(ll.lon() - lon_0));
    69         return new EastNorth(ellps.a * k_0 * en[0] + x_0, ellps.a * k_0 * en[1] + y_0);
     68        double[] en = proj.project(Math.toRadians(ll.lat()), Math.toRadians(ll.lon() - lon0));
     69        return new EastNorth(ellps.a * k0 * en[0] + x0, ellps.a * k0 * en[1] + y0);
    7070    }
    7171
    7272    @Override
    7373    public LatLon eastNorth2latlon(EastNorth en) {
    74         double[] latlon_rad = proj.invproject((en.east() - x_0) / ellps.a / k_0, (en.north() - y_0) / ellps.a / k_0);
    75         LatLon ll = new LatLon(Math.toDegrees(latlon_rad[0]), Math.toDegrees(latlon_rad[1]) + lon_0);
     74        double[] latlon_rad = proj.invproject((en.east() - x0) / ellps.a / k0, (en.north() - y0) / ellps.a / k0);
     75        LatLon ll = new LatLon(Math.toDegrees(latlon_rad[0]), Math.toDegrees(latlon_rad[1]) + lon0);
    7676        return datum.toWGS84(ll);
    7777    }
  • trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java

    r7371 r8346  
    175175            String s = parameters.get(Param.x_0.key);
    176176            if (s != null) {
    177                 this.x_0 = parseDouble(s, Param.x_0.key);
     177                this.x0 = parseDouble(s, Param.x_0.key);
    178178            }
    179179            s = parameters.get(Param.y_0.key);
    180180            if (s != null) {
    181                 this.y_0 = parseDouble(s, Param.y_0.key);
     181                this.y0 = parseDouble(s, Param.y_0.key);
    182182            }
    183183            s = parameters.get(Param.lon_0.key);
    184184            if (s != null) {
    185                 this.lon_0 = parseAngle(s, Param.lon_0.key);
     185                this.lon0 = parseAngle(s, Param.lon_0.key);
    186186            }
    187187            s = parameters.get(Param.k_0.key);
    188188            if (s != null) {
    189                 this.k_0 = parseDouble(s, Param.k_0.key);
     189                this.k0 = parseDouble(s, Param.k_0.key);
    190190            }
    191191            s = parameters.get(Param.bounds.key);
     
    386386        s = parameters.get(Param.lat_0.key);
    387387        if (s != null) {
    388             projParams.lat_0 = parseAngle(s, Param.lat_0.key);
     388            projParams.lat0 = parseAngle(s, Param.lat_0.key);
    389389        }
    390390        s = parameters.get(Param.lat_1.key);
    391391        if (s != null) {
    392             projParams.lat_1 = parseAngle(s, Param.lat_1.key);
     392            projParams.lat1 = parseAngle(s, Param.lat_1.key);
    393393        }
    394394        s = parameters.get(Param.lat_2.key);
    395395        if (s != null) {
    396             projParams.lat_2 = parseAngle(s, Param.lat_2.key);
     396            projParams.lat2 = parseAngle(s, Param.lat_2.key);
    397397        }
    398398        proj.initialize(projParams);
  • trunk/src/org/openstreetmap/josm/data/projection/proj/LambertConformalConic.java

    r8345 r8346  
    1515import static org.openstreetmap.josm.tools.I18n.tr;
    1616
     17import org.openstreetmap.josm.data.projection.CustomProjection.Param;
    1718import org.openstreetmap.josm.data.projection.Ellipsoid;
    1819import org.openstreetmap.josm.data.projection.ProjectionConfigurationException;
     
    6061     * projection factor
    6162     */
    62     protected double F;
     63    protected double f;
    6364    /**
    6465     * radius of the parallel of latitude of the false origin (2SP) or at
     
    7677        ellps = params.ellps;
    7778        e = ellps.e;
    78         if (params.lat_0 == null)
    79             throw new ProjectionConfigurationException(tr("Parameter ''{0}'' required.", "lat_0"));
    80         if (params.lat_1 != null && params.lat_2 != null) {
    81             initialize2SP(params.lat_0, params.lat_1, params.lat_2);
     79        if (params.lat0 == null)
     80            throw new ProjectionConfigurationException(tr("Parameter ''{0}'' required.", Param.lat_0.key));
     81        if (params.lat1 != null && params.lat2 != null) {
     82            initialize2SP(params.lat0, params.lat1, params.lat2);
    8283        } else {
    83             initialize1SP(params.lat_0);
     84            initialize1SP(params.lat0);
    8485        }
    8586    }
     
    103104
    104105        n  = (log(m1) - log(m2)) / (log(t1) - log(t2));
    105         F  = m1 / (n * pow(t1, n));
    106         r0 = F * pow(tf, n);
     106        f  = m1 / (n * pow(t1, n));
     107        r0 = f * pow(tf, n);
    107108    }
    108109
     
    120121
    121122        n = sin(lat_0_rad);
    122         F  = m0 / (n * pow(t0, n));
    123         r0 = F * pow(t0, n);
     123        f  = m0 / (n * pow(t0, n));
     124        r0 = f * pow(t0, n);
    124125    }
    125126
     
    153154        double sinphi = sin(phi);
    154155        double L = (0.5*log((1+sinphi)/(1-sinphi))) - e/2*log((1+e*sinphi)/(1-e*sinphi));
    155         double r = F*exp(-n*L);
     156        double r = f*exp(-n*L);
    156157        double gamma = n*lambda;
    157158        double X = r*sin(gamma);
     
    165166        double gamma = atan(east / (r0-north));
    166167        double lambda = gamma/n;
    167         double latIso = (-1/n) * log(abs(r/F));
     168        double latIso = (-1/n) * log(abs(r/f));
    168169        double phi = ellps.latitude(latIso, e, epsilon);
    169170        return new double[] { phi, lambda };
  • trunk/src/org/openstreetmap/josm/data/projection/proj/ProjParameters.java

    r5230 r8346  
    1111    public Ellipsoid ellps;
    1212
    13     public Double lat_0;
    14     public Double lat_1;
    15     public Double lat_2;
    16 
     13    public Double lat0;
     14    public Double lat1;
     15    public Double lat2;
    1716}
  • trunk/src/org/openstreetmap/josm/data/projection/proj/SwissObliqueMercator.java

    r6920 r8346  
    3535    private double alpha;
    3636    private double b0;
    37     private double K;
     37    private double k;
    3838
    3939    private static final double EPSILON = 1e-11;
     
    4141    @Override
    4242    public void initialize(ProjParameters params) throws ProjectionConfigurationException {
    43         if (params.lat_0 == null)
     43        if (params.lat0 == null)
    4444            throw new ProjectionConfigurationException(tr("Parameter ''{0}'' required.", "lat_0"));
    4545        ellps = params.ellps;
    46         initialize(params.lat_0);
     46        initialize(params.lat0);
    4747    }
    4848
     
    5252        alpha = sqrt(1 + (ellps.eb2 * pow(cos(phi0), 4)));
    5353        b0 = asin(sin(phi0) / alpha);
    54         K = log(tan(PI / 4 + b0 / 2)) - alpha
     54        k = log(tan(PI / 4 + b0 / 2)) - alpha
    5555            * log(tan(PI / 4 + phi0 / 2)) + alpha * ellps.e / 2
    5656            * log((1 + ellps.e * sin(phi0)) / (1 - ellps.e * sin(phi0)));
     
    7171
    7272        double S = alpha * log(tan(PI / 4 + phi / 2)) - alpha * ellps.e / 2
    73             * log((1 + ellps.e * sin(phi)) / (1 - ellps.e * sin(phi))) + K;
     73            * log((1 + ellps.e * sin(phi)) / (1 - ellps.e * sin(phi))) + k;
    7474        double b = 2 * (atan(exp(S)) - PI / 4);
    7575        double l = alpha * lambda;
     
    9494        double lambda = l / alpha;
    9595        double phi = b;
    96         double S = 0;
     96        double s = 0;
    9797
    9898        double prevPhi = -1000;
     
    103103                throw new RuntimeException("Two many iterations");
    104104            prevPhi = phi;
    105             S = 1 / alpha * (log(tan(PI / 4 + b / 2)) - K) + ellps.e
     105            s = 1 / alpha * (log(tan(PI / 4 + b / 2)) - k) + ellps.e
    106106            * log(tan(PI / 4 + asin(ellps.e * sin(phi)) / 2));
    107             phi = 2 * atan(exp(S)) - PI / 2;
     107            phi = 2 * atan(exp(s)) - PI / 2;
    108108        }
    109109        return new double[] { phi, lambda };
  • trunk/src/org/openstreetmap/josm/data/validation/TestError.java

    r7848 r8346  
    4040    /** Deeper error description */
    4141    private String description;
    42     private String description_en;
     42    private String descriptionEn;
    4343    /** The affected primitives */
    4444    private Collection<? extends OsmPrimitive> primitives;
     
    6666        this.message = message;
    6767        this.description = description;
    68         this.description_en = description_en;
     68        this.descriptionEn = description_en;
    6969        this.primitives = primitives;
    7070        this.highlighted = highlighted;
     
    194194    public String getIgnoreSubGroup() {
    195195        String ignorestring = getIgnoreGroup();
    196         if (description_en != null) {
    197             ignorestring += "_" + description_en;
     196        if (descriptionEn != null) {
     197            ignorestring += "_" + descriptionEn;
    198198        }
    199199        return ignorestring;
  • trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateRelation.java

    r8345 r8346  
    169169
    170170    /** MultiMap of all relations, regardless of keys */
    171     private MultiMap<List<RelationMember>, OsmPrimitive> relations_nokeys;
     171    private MultiMap<List<RelationMember>, OsmPrimitive> relationsNoKeys;
    172172
    173173    /** List of keys without useful information */
     
    186186        super.startTest(monitor);
    187187        relations = new MultiMap<>(1000);
    188         relations_nokeys = new MultiMap<>(1000);
     188        relationsNoKeys = new MultiMap<>(1000);
    189189    }
    190190
     
    199199        }
    200200        relations = null;
    201         for (Set<OsmPrimitive> duplicated : relations_nokeys.values()) {
     201        for (Set<OsmPrimitive> duplicated : relationsNoKeys.values()) {
    202202            if (duplicated.size() > 1) {
    203203                TestError testError = new TestError(this, Severity.WARNING, tr("Relations with same members"), SAME_RELATION, duplicated);
     
    205205            }
    206206        }
    207         relations_nokeys = null;
     207        relationsNoKeys = null;
    208208    }
    209209
     
    218218        RelationPair rKey = new RelationPair(rMembers, rkeys);
    219219        relations.put(rKey, r);
    220         relations_nokeys.put(rMembers, r);
     220        relationsNoKeys.put(rMembers, r);
    221221    }
    222222
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UnconnectedWays.java

    r8285 r8346  
    137137    private Set<MyWaySegment> ways;
    138138    private QuadBuckets<Node> endnodes; // nodes at end of way
    139     private QuadBuckets<Node> endnodes_highway; // nodes at end of way
     139    private QuadBuckets<Node> endnodesHighway; // nodes at end of way
    140140    private QuadBuckets<Node> middlenodes; // nodes in middle of way
    141141    private Set<Node> othernodes; // nodes appearing at least twice
     
    159159        ways = new HashSet<>();
    160160        endnodes = new QuadBuckets<>();
    161         endnodes_highway = new QuadBuckets<>();
     161        endnodesHighway = new QuadBuckets<>();
    162162        middlenodes = new QuadBuckets<>();
    163163        othernodes = new HashSet<>();
     
    176176                }
    177177                for (Node en : s.nearbyNodes(mindist)) {
    178                     if (en == null || !s.highway || !endnodes_highway.contains(en)) {
     178                    if (en == null || !s.highway || !endnodesHighway.contains(en)) {
    179179                        continue;
    180180                    }
     
    209209                    continue;
    210210                }
    211                 if (endnodes_highway.contains(en) && !s.highway && !s.w.concernsArea()) {
     211                if (endnodesHighway.contains(en) && !s.highway && !s.w.concernsArea()) {
    212212                    map.put(en, s.w);
    213213                } else if (endnodes.contains(en) && !s.w.concernsArea()) {
     
    278278        ways = null;
    279279        endnodes = null;
    280         endnodes_highway = null;
     280        endnodesHighway = null;
    281281        middlenodes = null;
    282282        othernodes = null;
     
    389389            nearbyNodeCache = null;
    390390            List<LatLon> bounds = this.getBounds(dist);
    391             List<Node> found_nodes = endnodes_highway.search(new BBox(bounds.get(0), bounds.get(1)));
     391            List<Node> found_nodes = endnodesHighway.search(new BBox(bounds.get(0), bounds.get(1)));
    392392            found_nodes.addAll(endnodes.search(new BBox(bounds.get(0), bounds.get(1))));
    393393
     
    448448            QuadBuckets<Node> set = endnodes;
    449449            if (w.hasKey("highway") || w.hasKey("railway")) {
    450                 set = endnodes_highway;
     450                set = endnodesHighway;
    451451            }
    452452            addNode(w.firstNode(), set);
     
    458458        boolean m = middlenodes.contains(n);
    459459        boolean e = endnodes.contains(n);
    460         boolean eh = endnodes_highway.contains(n);
     460        boolean eh = endnodesHighway.contains(n);
    461461        boolean o = othernodes.contains(n);
    462462        if (!m && !e && !o && !eh) {
     
    467467                endnodes.remove(n);
    468468            } else if (eh) {
    469                 endnodes_highway.remove(n);
     469                endnodesHighway.remove(n);
    470470            } else {
    471471                middlenodes.remove(n);
  • trunk/src/org/openstreetmap/josm/gui/NotificationManager.java

    r8126 r8346  
    7373    private static NotificationManager INSTANCE = null;
    7474
    75     private final Color PANEL_SEMITRANSPARENT = new Color(224, 236, 249, 230);
    76     private final Color PANEL_OPAQUE = new Color(224, 236, 249);
     75    private static final Color PANEL_SEMITRANSPARENT = new Color(224, 236, 249, 230);
     76    private static final Color PANEL_OPAQUE = new Color(224, 236, 249);
    7777
    7878    public static synchronized NotificationManager getInstance() {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java

    r8342 r8346  
    9595    public static final BooleanProperty PROP_DYNAMIC_BUTTONS = new BooleanProperty("dialog.dynamic.buttons", false);
    9696
    97     private final transient ParametrizedEnumProperty<ButtonHidingType> PROP_BUTTON_HIDING = new ParametrizedEnumProperty<ToggleDialog.ButtonHidingType>(
    98             ButtonHidingType.class, ButtonHidingType.DYNAMIC) {
     97    private final transient ParametrizedEnumProperty<ButtonHidingType> propButtonHiding =
     98            new ParametrizedEnumProperty<ToggleDialog.ButtonHidingType>(ButtonHidingType.class, ButtonHidingType.DYNAMIC) {
    9999        @Override
    100100        protected String getKey(String... params) {
     
    107107            } catch (IllegalArgumentException e) {
    108108                // Legacy settings
    109                 return Boolean.parseBoolean(s)?ButtonHidingType.DYNAMIC:ButtonHidingType.ALWAYS_SHOWN;
     109                return Boolean.parseBoolean(s) ? ButtonHidingType.DYNAMIC : ButtonHidingType.ALWAYS_SHOWN;
    110110            }
    111111        }
     
    241241        isDocked = Main.pref.getBoolean(preferencePrefix+".docked", true);
    242242        isCollapsed = Main.pref.getBoolean(preferencePrefix+".minimized", false);
    243         buttonHiding = PROP_BUTTON_HIDING.get();
     243        buttonHiding = propButtonHiding.get();
    244244
    245245        /** show the minimize button */
     
    490490        /** the label which displays the dialog's title **/
    491491        private final JLabel lblTitle;
    492         private final JComponent lblTitle_weak;
     492        private final JComponent lblTitleWeak;
    493493        /** the button which shows whether buttons are dynamic or not */
    494494        private final JButton buttonsHide;
     
    512512
    513513            // Cannot add the label directly since it would displace other elements on resize
    514             lblTitle_weak = new JComponent() {
     514            lblTitleWeak = new JComponent() {
    515515                @Override
    516516                public void paintComponent(Graphics g) {
     
    518518                }
    519519            };
    520             lblTitle_weak.setPreferredSize(new Dimension(Integer.MAX_VALUE,20));
    521             lblTitle_weak.setMinimumSize(new Dimension(0,20));
    522             add(lblTitle_weak, GBC.std().fill(GBC.HORIZONTAL));
     520            lblTitleWeak.setPreferredSize(new Dimension(Integer.MAX_VALUE,20));
     521            lblTitleWeak.setMinimumSize(new Dimension(0,20));
     522            add(lblTitleWeak, GBC.std().fill(GBC.HORIZONTAL));
    523523
    524524            buttonsHide = new JButton(ImageProvider.get("misc", buttonHiding != ButtonHidingType.ALWAYS_SHOWN
     
    597597        public void setTitle(String title) {
    598598            lblTitle.setText(title);
    599             lblTitle_weak.repaint();
     599            lblTitleWeak.repaint();
    600600        }
    601601
     
    767767    protected void setIsButtonHiding(ButtonHidingType val) {
    768768        buttonHiding = val;
    769         PROP_BUTTON_HIDING.put(val);
     769        propButtonHiding.put(val);
    770770        refreshHidingButtons();
    771771    }
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java

    r8345 r8346  
    3333 * @since 2019
    3434 */
    35 public class HistoryBrowserDialogManager implements MapView.LayerChangeListener {
     35public final class HistoryBrowserDialogManager implements MapView.LayerChangeListener {
     36
     37    private static final String WINDOW_GEOMETRY_PREF = HistoryBrowserDialogManager.class.getName() + ".geometry";
    3638
    3739    private static HistoryBrowserDialogManager instance;
     
    8991        return false;
    9092    }
    91 
    92     private final String WINDOW_GEOMETRY_PREF = getClass().getName() + ".geometry";
    9393
    9494    protected void placeOnScreen(HistoryBrowserDialog dialog) {
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/DateFilterPanel.java

    r8308 r8346  
    3030    private transient ActionListener filterAppliedListener;
    3131
    32     private final String PREF_DATE_0;
    33     private final String PREF_DATE_MIN;
    34     private final String PREF_DATE_MAX;
     32    private final String prefDate0;
     33    private final String prefDateMin;
     34    private final String prefDateMax;
    3535
    3636    /**
     
    4141    public DateFilterPanel(GpxLayer layer, String preferencePrefix, boolean enabled) {
    4242        super(new GridBagLayout());
    43         PREF_DATE_0 = preferencePrefix+".showzerotimestamp";
    44         PREF_DATE_MIN = preferencePrefix+".mintime";
    45         PREF_DATE_MAX = preferencePrefix+".maxtime";
     43        prefDate0 = preferencePrefix+".showzerotimestamp";
     44        prefDateMin = preferencePrefix+".mintime";
     45        prefDateMax = preferencePrefix+".maxtime";
    4646        this.layer = layer;
    4747
     
    101101     */
    102102    public void saveInPrefs() {
    103         Main.pref.putLong(PREF_DATE_MIN, dateFrom.getDate().getTime());
    104         Main.pref.putLong(PREF_DATE_MAX, dateTo.getDate().getTime());
    105         Main.pref.put(PREF_DATE_0, noTimestampCb.isSelected());
     103        Main.pref.putLong(prefDateMin, dateFrom.getDate().getTime());
     104        Main.pref.putLong(prefDateMax, dateTo.getDate().getTime());
     105        Main.pref.put(prefDate0, noTimestampCb.isSelected());
    106106    }
    107107
     
    111111     */
    112112    public void loadFromPrefs() {
    113         long t1 =Main.pref.getLong(PREF_DATE_MIN, 0);
     113        long t1 =Main.pref.getLong(prefDateMin, 0);
    114114        if (t1!=0) dateFrom.setDate(new Date(t1));
    115         long t2 =Main.pref.getLong(PREF_DATE_MAX, 0);
     115        long t2 =Main.pref.getLong(prefDateMax, 0);
    116116        if (t2!=0) dateTo.setDate(new Date(t2));
    117         noTimestampCb.setSelected(Main.pref.getBoolean(PREF_DATE_0, false));
     117        noTimestampCb.setSelected(Main.pref.getBoolean(prefDate0, false));
    118118    }
    119119
  • trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyle.java

    r8087 r8346  
    2323    public static final String[] REPEAT_IMAGE_KEYS = {REPEAT_IMAGE, REPEAT_IMAGE_WIDTH, REPEAT_IMAGE_HEIGHT, REPEAT_IMAGE_OPACITY, null, null};
    2424
    25     public float major_z_index;
    26     public float z_index;
    27     public float object_z_index;
     25    public float majorZIndex;
     26    public float zIndex;
     27    public float objectZIndex;
    2828    public boolean isModifier;  // false, if style can serve as main style for the
    2929    // primitive; true, if it is a highlight or modifier
    3030
    3131    public ElemStyle(float major_z_index, float z_index, float object_z_index, boolean isModifier) {
    32         this.major_z_index = major_z_index;
    33         this.z_index = z_index;
    34         this.object_z_index = object_z_index;
     32        this.majorZIndex = major_z_index;
     33        this.zIndex = z_index;
     34        this.objectZIndex = object_z_index;
    3535        this.isModifier = isModifier;
    3636    }
    3737
    3838    protected ElemStyle(Cascade c, float default_major_z_index) {
    39         major_z_index = c.get(MAJOR_Z_INDEX, default_major_z_index, Float.class);
    40         z_index = c.get(Z_INDEX, 0f, Float.class);
    41         object_z_index = c.get(OBJECT_Z_INDEX, 0f, Float.class);
     39        majorZIndex = c.get(MAJOR_Z_INDEX, default_major_z_index, Float.class);
     40        zIndex = c.get(Z_INDEX, 0f, Float.class);
     41        objectZIndex = c.get(OBJECT_Z_INDEX, 0f, Float.class);
    4242        isModifier = c.get(MODIFIER, false, Boolean.class);
    4343    }
     
    208208            return false;
    209209        ElemStyle s = (ElemStyle) o;
    210         return major_z_index == s.major_z_index &&
    211                 z_index == s.z_index &&
    212                 object_z_index == s.object_z_index &&
     210        return majorZIndex == s.majorZIndex &&
     211                zIndex == s.zIndex &&
     212                objectZIndex == s.objectZIndex &&
    213213                isModifier == s.isModifier;
    214214    }
     
    217217    public int hashCode() {
    218218        int hash = 5;
    219         hash = 41 * hash + Float.floatToIntBits(this.major_z_index);
    220         hash = 41 * hash + Float.floatToIntBits(this.z_index);
    221         hash = 41 * hash + Float.floatToIntBits(this.object_z_index);
     219        hash = 41 * hash + Float.floatToIntBits(this.majorZIndex);
     220        hash = 41 * hash + Float.floatToIntBits(this.zIndex);
     221        hash = 41 * hash + Float.floatToIntBits(this.objectZIndex);
    222222        hash = 41 * hash + (isModifier ? 1 : 0);
    223223        return hash;
     
    226226    @Override
    227227    public String toString() {
    228         return String.format("z_idx=[%s/%s/%s] ", major_z_index, z_index, object_z_index) + (isModifier ? "modifier " : "");
     228        return String.format("z_idx=[%s/%s/%s] ", majorZIndex, zIndex, objectZIndex) + (isModifier ? "modifier " : "");
    229229    }
    230230}
  • trunk/src/org/openstreetmap/josm/gui/mappaint/LineElemStyle.java

    r8087 r8346  
    4747
    4848        public final String prefix;
    49         public final float default_major_z_index;
     49        public final float defaultMajorZIndex;
    5050
    5151        LineType(String prefix, float default_major_z_index) {
    5252            this.prefix = prefix;
    53             this.default_major_z_index = default_major_z_index;
     53            this.defaultMajorZIndex = default_major_z_index;
    5454        }
    5555    }
     
    258258        }
    259259
    260         return new LineElemStyle(c, type.default_major_z_index, line, color, dashesLine, dashesBackground, offset, realWidth);
     260        return new LineElemStyle(c, type.defaultMajorZIndex, line, color, dashesLine, dashesBackground, offset, realWidth);
    261261    }
    262262
  • trunk/src/org/openstreetmap/josm/io/DiffResultProcessor.java

    r8287 r8346  
    3535
    3636    private static class DiffResultEntry {
    37         public long new_id;
    38         public int new_version;
     37        private long newId;
     38        private int newVersion;
    3939    }
    4040
     
    128128                processed.add(p);
    129129                if (!p.isDeleted()) {
    130                     p.setOsmId(entry.new_id, entry.new_version);
     130                    p.setOsmId(entry.newId, entry.newVersion);
    131131                    p.setVisible(true);
    132132                } else {
     
    174174                    DiffResultEntry entry = new DiffResultEntry();
    175175                    if (atts.getValue("new_id") != null) {
    176                         entry.new_id = Long.parseLong(atts.getValue("new_id"));
     176                        entry.newId = Long.parseLong(atts.getValue("new_id"));
    177177                    }
    178178                    if (atts.getValue("new_version") != null) {
    179                         entry.new_version = Integer.parseInt(atts.getValue("new_version"));
     179                        entry.newVersion = Integer.parseInt(atts.getValue("new_version"));
    180180                    }
    181181                    diffResults.put(id, entry);
  • trunk/src/org/openstreetmap/josm/io/NmeaReader.java

    r8342 r8346  
    154154    }
    155155    public int getParserZeroCoordinates() {
    156         return ps.zero_coord;
     156        return ps.zeroCoord;
    157157    }
    158158    public int getParserChecksumErrors() {
    159         return ps.checksum_errors+ps.no_checksum;
     159        return ps.checksumErrors+ps.noChecksum;
    160160    }
    161161    public int getParserMalformed() {
     
    180180                return;
    181181            sb.append((char)loopstart_char);
    182             ps.p_Date="010100"; // TODO date problem
     182            ps.pDate="010100"; // TODO date problem
    183183            while(true) {
    184184                // don't load unparsable files completely to memory
     
    209209    private static class NMEAParserState {
    210210        protected Collection<WayPoint> waypoints = new ArrayList<>();
    211         protected String p_Time;
    212         protected String p_Date;
    213         protected WayPoint p_Wp;
    214 
    215         protected int success = 0; // number of successfully parsend sentences
     211        protected String pTime;
     212        protected String pDate;
     213        protected WayPoint pWp;
     214
     215        protected int success = 0; // number of successfully parsed sentences
    216216        protected int malformed = 0;
    217         protected int checksum_errors = 0;
    218         protected int no_checksum = 0;
     217        protected int checksumErrors = 0;
     218        protected int noChecksum = 0;
    219219        protected int unknown = 0;
    220         protected int zero_coord = 0;
     220        protected int zeroCoord = 0;
    221221    }
    222222
     
    243243                }
    244244                if (Integer.parseInt(chkstrings[1].substring(0,2),16) != chk) {
    245                     ps.checksum_errors++;
    246                     ps.p_Wp=null;
     245                    ps.checksumErrors++;
     246                    ps.pWp=null;
    247247                    return false;
    248248                }
    249249            } else {
    250                 ps.no_checksum++;
     250                ps.noChecksum++;
    251251            }
    252252            // now for the content
     
    254254            String accu;
    255255
    256             WayPoint currentwp = ps.p_Wp;
    257             String currentDate = ps.p_Date;
     256            WayPoint currentwp = ps.pWp;
     257            String currentDate = ps.pDate;
    258258
    259259            // handle the packet content
     
    271271
    272272                if ((latLon.lat()==0.0) && (latLon.lon()==0.0)) {
    273                     ps.zero_coord++;
     273                    ps.zeroCoord++;
    274274                    return false;
    275275                }
     
    279279                Date d = readTime(currentDate+accu);
    280280
    281                 if((ps.p_Time==null) || (currentwp==null) || !ps.p_Time.equals(accu)) {
     281                if((ps.pTime==null) || (currentwp==null) || !ps.pTime.equals(accu)) {
    282282                    // this node is newer than the previous, create a new waypoint.
    283283                    // no matter if previous WayPoint was null, we got something
    284284                    // better now.
    285                     ps.p_Time=accu;
     285                    ps.pTime=accu;
    286286                    currentwp = new WayPoint(latLon);
    287287                }
     
    384384                        e[GPRMC.LENGTH_EAST.position]
    385385                );
    386                 if((latLon.lat()==0.0) && (latLon.lon()==0.0)) {
    387                     ps.zero_coord++;
     386                if(latLon.lat()==0.0 && latLon.lon()==0.0) {
     387                    ps.zeroCoord++;
    388388                    return false;
    389389                }
     
    394394                Date d = readTime(currentDate+time);
    395395
    396                 if((ps.p_Time==null) || (currentwp==null) || !ps.p_Time.equals(time)) {
     396                if(ps.pTime==null || currentwp==null || !ps.pTime.equals(time)) {
    397397                    // this node is newer than the previous, create a new waypoint.
    398                     ps.p_Time=time;
     398                    ps.pTime=time;
    399399                    currentwp = new WayPoint(latLon);
    400400                }
     
    426426                return false;
    427427            }
    428             ps.p_Date = currentDate;
    429             if(ps.p_Wp != currentwp) {
    430                 if(ps.p_Wp!=null) {
    431                     ps.p_Wp.setTime();
    432                 }
    433                 ps.p_Wp = currentwp;
     428            ps.pDate = currentDate;
     429            if(ps.pWp != currentwp) {
     430                if(ps.pWp!=null) {
     431                    ps.pWp.setTime();
     432                }
     433                ps.pWp = currentwp;
    434434                ps.waypoints.add(currentwp);
    435435                ps.success++;
     
    441441            // out of bounds and such
    442442            ps.malformed++;
    443             ps.p_Wp=null;
     443            ps.pWp=null;
    444444            return false;
    445445        }
  • trunk/src/org/openstreetmap/josm/io/NoteWriter.java

    r8225 r8346  
    2323public class NoteWriter extends XmlWriter {
    2424
    25     private final DateFormat ISO8601_FORMAT = DateUtils.newIsoDateTimeFormat();
     25    private final DateFormat iso8601Format = DateUtils.newIsoDateTimeFormat();
    2626
    2727    /**
     
    5353            out.print("lat=\"" + note.getLatLon().lat() + "\" ");
    5454            out.print("lon=\"" + note.getLatLon().lon() + "\" ");
    55             out.print("created_at=\"" + ISO8601_FORMAT.format(note.getCreatedAt()) + "\" ");
     55            out.print("created_at=\"" + iso8601Format.format(note.getCreatedAt()) + "\" ");
    5656            if (note.getClosedAt() != null) {
    57                 out.print("closed_at=\"" + ISO8601_FORMAT.format(note.getClosedAt()) + "\" ");
     57                out.print("closed_at=\"" + iso8601Format.format(note.getClosedAt()) + "\" ");
    5858            }
    5959
     
    7272        out.print("    <comment");
    7373        out.print(" action=\"" + comment.getNoteAction() + "\" ");
    74         out.print("timestamp=\"" + ISO8601_FORMAT.format(comment.getCommentTimestamp()) + "\" ");
     74        out.print("timestamp=\"" + iso8601Format.format(comment.getCommentTimestamp()) + "\" ");
    7575        if (comment.getUser() != null && !comment.getUser().equals(User.getAnonymous())) {
    7676            out.print("uid=\"" + comment.getUser().getId() + "\" ");
  • trunk/src/org/openstreetmap/josm/tools/Diff.java

    r8342 r8346  
    1616 *
    1717 * Revision 1.13  2009/12/07 17:43:17  stuart
    18  * Compute equiv_max for int[] ctor
     18 * Compute equivMax for int[] ctor
    1919 *
    2020 * Revision 1.12  2009/12/07 17:34:46  stuart
     
    102102    /** 1 more than the maximum equivalence value used for this or its
    103103     sibling file. */
    104     private int equiv_max = 1;
     104    private int equivMax = 1;
    105105
    106106    /** When set to true, the comparison uses a heuristic to speed it up.
     
    111111    /** When set to true, the algorithm returns a guarranteed minimal
    112112      set of changes.  This makes things slower, sometimes much slower. */
    113     public boolean no_discards = false;
     113    public boolean noDiscards = false;
    114114
    115115    private int[] xvec, yvec; /* Vectors being compared. */
     
    352352        if (xoff == xlim) {
    353353            while (yoff < ylim) {
    354                 filevec[1].changed_flag[1+filevec[1].realindexes[yoff++]] = true;
     354                filevec[1].changedFlag[1+filevec[1].realindexes[yoff++]] = true;
    355355            }
    356356        } else if (yoff == ylim) {
    357357            while (xoff < xlim) {
    358                 filevec[0].changed_flag[1+filevec[0].realindexes[xoff++]] = true;
     358                filevec[0].changedFlag[1+filevec[0].realindexes[xoff++]] = true;
    359359            }
    360360        } else {
     
    524524
    525525        int diags =
    526             filevec[0].nondiscarded_lines + filevec[1].nondiscarded_lines + 3;
     526            filevec[0].nondiscardedLines + filevec[1].nondiscardedLines + 3;
    527527        fdiag = new int[diags];
    528         fdiagoff = filevec[1].nondiscarded_lines + 1;
     528        fdiagoff = filevec[1].nondiscardedLines + 1;
    529529        bdiag = new int[diags];
    530         bdiagoff = filevec[1].nondiscarded_lines + 1;
    531 
    532         compareseq (0, filevec[0].nondiscarded_lines,
    533                 0, filevec[1].nondiscarded_lines);
     530        bdiagoff = filevec[1].nondiscardedLines + 1;
     531
     532        compareseq (0, filevec[0].nondiscardedLines,
     533                0, filevec[1].nondiscardedLines);
    534534        fdiag = null;
    535535        bdiag = null;
     
    543543       of `struct change's -- an edit script.  */
    544544        return bld.build_script(
    545                 filevec[0].changed_flag,
    546                 filevec[0].buffered_lines,
    547                 filevec[1].changed_flag,
    548                 filevec[1].buffered_lines
     545                filevec[0].changedFlag,
     546                filevec[0].bufferedLines,
     547                filevec[1].changedFlag,
     548                filevec[1].bufferedLines
    549549        );
    550550
     
    607607               Allocate an extra element, always zero, at each end of each vector.
    608608             */
    609             changed_flag = new boolean[buffered_lines + 2];
     609            changedFlag = new boolean[bufferedLines + 2];
    610610        }
    611611
     
    615615         */
    616616        int[] equivCount() {
    617             int[] equiv_count = new int[equiv_max];
    618             for (int i = 0; i < buffered_lines; ++i) {
     617            int[] equiv_count = new int[equivMax];
     618            for (int i = 0; i < bufferedLines; ++i) {
    619619                ++equiv_count[equivs[i]];
    620620            }
     
    658658         */
    659659        private byte[] discardable(final int[] counts) {
    660             final int end = buffered_lines;
     660            final int end = bufferedLines;
    661661            final byte[] discards = new byte[end];
    662662            final int[] equivs = this.equivs;
     
    692692         */
    693693        private void filterDiscards(final byte[] discards) {
    694             final int end = buffered_lines;
     694            final int end = bufferedLines;
    695695
    696696            for (int i = 0; i < end; i++)
     
    808808         */
    809809        private void discard(final byte[] discards) {
    810             final int end = buffered_lines;
     810            final int end = bufferedLines;
    811811            int j = 0;
    812812            for (int i = 0; i < end; ++i)
    813                 if (no_discards || discards[i] == 0)
     813                if (noDiscards || discards[i] == 0)
    814814                {
    815815                    undiscarded[j] = equivs[i];
    816816                    realindexes[j++] = i;
    817817                } else {
    818                     changed_flag[1+i] = true;
    819                 }
    820             nondiscarded_lines = j;
     818                    changedFlag[1+i] = true;
     819                }
     820            nondiscardedLines = j;
    821821        }
    822822
    823823        FileData(int length) {
    824             buffered_lines = length;
     824            bufferedLines = length;
    825825            equivs = new int[length];
    826             undiscarded = new int[buffered_lines];
    827             realindexes = new int[buffered_lines];
     826            undiscarded = new int[bufferedLines];
     827            realindexes = new int[bufferedLines];
    828828        }
    829829
     
    834834                Integer ir = h.get(data[i]);
    835835                if (ir == null) {
    836                     h.put(data[i],equivs[i] = equiv_max++);
     836                    h.put(data[i],equivs[i] = equivMax++);
    837837                } else {
    838838                    equivs[i] = ir.intValue();
     
    855855
    856856        void shift_boundaries(FileData f) {
    857             final boolean[] changed = changed_flag;
    858             final boolean[] other_changed = f.changed_flag;
     857            final boolean[] changed = changedFlag;
     858            final boolean[] other_changed = f.changedFlag;
    859859            int i = 0;
    860860            int j = 0;
    861             int i_end = buffered_lines;
     861            int i_end = bufferedLines;
    862862            int preceding = -1;
    863863            int other_preceding = -1;
     
    930930
    931931        /** Number of elements (lines) in this file. */
    932         private final int buffered_lines;
     932        private final int bufferedLines;
    933933
    934934        /** Vector, indexed by line number, containing an equivalence code for
     
    946946
    947947        /** Total number of nondiscarded lines. */
    948         private int         nondiscarded_lines;
     948        private int         nondiscardedLines;
    949949
    950950        /** Array, indexed by real origin-1 line number,
    951951           containing true for a line that is an insertion or a deletion.
    952952           The results of comparison are stored here.  */
    953         private boolean[]       changed_flag;
     953        private boolean[]       changedFlag;
    954954    }
    955955}
Note: See TracChangeset for help on using the changeset viewer.