Ignore:
Timestamp:
2016-05-11T02:44:10+02:00 (9 years ago)
Author:
Don-vip
Message:

sonar - squid:AssignmentInSubExpressionCheck - Assignments should not be made from within sub-expressions

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Diff.java

    r10001 r10179  
    597597        public String toString() {
    598598            String s = String.format("%d -%d +%d %d", line0, deleted, inserted, line1);
    599             return (link != null) ? s = s + '\n' + link : s;
     599            return (link != null) ? s + '\n' + link : s;
    600600        }
    601601    }
     
    832832                Integer ir = h.get(data[i]);
    833833                if (ir == null) {
    834                     h.put(data[i], equivs[i] = equivMax++);
     834                    equivs[i] = equivMax++;
     835                    h.put(data[i], equivs[i]);
    835836                } else {
    836837                    equivs[i] = ir.intValue();
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r10140 r10179  
    5858
    5959import org.openstreetmap.josm.Main;
     60import org.openstreetmap.josm.data.osm.DataSet;
    6061import org.openstreetmap.josm.data.osm.OsmPrimitive;
    6162import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
     
    8384import com.kitfox.svg.SVGDiagram;
    8485import com.kitfox.svg.SVGUniverse;
    85 import org.openstreetmap.josm.data.osm.DataSet;
    8686
    8787/**
     
    12291229            Map<Long, ImageResource> cacheByAngle = ROTATE_CACHE.get(img);
    12301230            if (cacheByAngle == null) {
    1231                 ROTATE_CACHE.put(img, cacheByAngle = new HashMap<>());
     1231                cacheByAngle = new HashMap<>();
     1232                ROTATE_CACHE.put(img, cacheByAngle);
    12321233            }
    12331234
     
    12571258                }
    12581259                Image image = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
    1259                 cacheByAngle.put(originalAngle, imageResource = new ImageResource(image));
     1260                imageResource = new ImageResource(image);
     1261                cacheByAngle.put(originalAngle, imageResource);
    12601262                Graphics g = image.getGraphics();
    12611263                Graphics2D g2d = (Graphics2D) g.create();
Note: See TracChangeset for help on using the changeset viewer.