Changeset 16208 in josm


Ignore:
Timestamp:
2020-03-28T09:34:21+01:00 (4 years ago)
Author:
simon04
Message:

StyledMapRenderer.drawArea: fix redundant local variable, unboxed float

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r15586 r16208  
    425425     * Worker function for drawing areas.
    426426     *
    427      * @param path the path object for the area that should be drawn; in case
     427     * @param area the path object for the area that should be drawn; in case
    428428     * of multipolygons, this can path can be a complex shape with one outer
    429429     * polygon and one or more inner polygons
     
    437437     * @param disabled If this should be drawn with a special disabled style.
    438438     */
    439     protected void drawArea(MapViewPath path, Color color,
     439    protected void drawArea(MapViewPath area, Color color,
    440440            MapImage fillImage, Float extent, MapViewPath pfClip, boolean disabled) {
    441441        if (!isOutlineOnly && color.getAlpha() != 0) {
    442             Shape area = path;
    443442            g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF);
    444443            if (fillImage == null) {
     
    457456                    Logging.warn("Unable to get image from " + fillImage);
    458457                }
    459                 Float alpha = fillImage.getAlphaFloat();
     458                float alpha = fillImage.getAlphaFloat();
    460459                if (!Utils.equalsEpsilon(alpha, 1f)) {
    461460                    g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha));
Note: See TracChangeset for help on using the changeset viewer.