Ignore:
Timestamp:
2017-04-23T19:14:12+02:00 (7 years ago)
Author:
Don-vip
Message:

add unit test for Main.postConstructorProcessCmdLine

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

Legend:

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

    r11747 r11986  
    136136                addOption(opt, g.getOptarg());
    137137            } else
    138                 throw new IllegalArgumentException("Invalid option: "+c);
     138                throw new IllegalArgumentException("Invalid option: "+ (char) c);
    139139        }
    140140        // positional arguments are a shortcut for the --download ... option
  • trunk/src/org/openstreetmap/josm/gui/datatransfer/importers/OsmLinkPaster.java

    r11713 r11986  
    5151
    5252        String transferData = (String) support.getTransferable().getTransferData(df);
    53         if (new NoWarnOpenLocationAction().openUrl(transferData)) {
     53        if (!new NoWarnOpenLocationAction().openUrl(transferData).isEmpty()) {
    5454            return true;
    5555        }
Note: See TracChangeset for help on using the changeset viewer.