Ignore:
Timestamp:
2014-12-20T22:43:20+01:00 (5 years ago)
Author:
Don-vip
Message:

global cleanup of IllegalArgumentExceptions thrown by JOSM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/AddNoteAction.java

    r7852 r7864  
    1515import org.openstreetmap.josm.gui.Notification;
    1616import org.openstreetmap.josm.gui.dialogs.NotesDialog;
     17import org.openstreetmap.josm.tools.CheckParameterUtil;
    1718import org.openstreetmap.josm.tools.ImageProvider;
    1819
     
    3435            tr("Add note mode"),
    3536            mapFrame, ImageProvider.getCursor("crosshair", "create_note"));
    36         if (data == null) {
    37             throw new IllegalArgumentException("Note data must not be null");
    38         }
     37        CheckParameterUtil.ensureParameterNotNull(data, "data");
    3938        noteData = data;
    4039    }
Note: See TracChangeset for help on using the changeset viewer.