Changeset 10205 in josm


Ignore:
Timestamp:
2016-05-13T15:25:39+02:00 (5 years ago)
Author:
Don-vip
Message:

add more unit tests

Location:
trunk
Files:
1 added
1 edited

Legend:

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

    r10152 r10205  
    1111import java.awt.Composite;
    1212import java.awt.Graphics2D;
     13import java.awt.GraphicsEnvironment;
    1314import java.awt.GridBagLayout;
    1415import java.awt.Point;
     
    515516     *         May be <code>null</code>, which means nothing has been uploaded
    516517     */
    517     public void cleanupAfterUpload(final Collection<IPrimitive> processed) {
     518    public void cleanupAfterUpload(final Collection<? extends IPrimitive> processed) {
    518519        // return immediately if an upload attempt failed
    519520        if (processed == null || processed.isEmpty())
     
    973974            @Override
    974975            public Integer call() {
     976                if (GraphicsEnvironment.isHeadless()) {
     977                    return 2;
     978                }
    975979                ExtendedDialog dialog = new ExtendedDialog(
    976980                        Main.parent,
Note: See TracChangeset for help on using the changeset viewer.