Changeset 12109 in josm


Ignore:
Timestamp:
2017-05-11T00:24:41+02:00 (8 months ago)
Author:
michael2402
Message:

SelectionEventManager: Typo / checkstyle

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/event/SelectionEventManager.java

    r12098 r12109  
    117117     * @param listener listener to add
    118118     * @param fireMode Set this to IN_EDT_CONSOLIDATED if you want the event to be fired in the EDT thread.
    119      *                 Set it to IMMEDIATELY if youw ant the event to fire in the thread that caused the selection update.
     119     *                 Set it to IMMEDIATELY if you want the event to fire in the thread that caused the selection update.
    120120     */
    121121    public void addSelectionListener(SelectionChangedListener listener, FireMode fireMode) {
    122         if (fireMode == FireMode.IN_EDT)  {
     122        if (fireMode == FireMode.IN_EDT) {
    123123            throw new UnsupportedOperationException("IN_EDT mode not supported, you probably want to use IN_EDT_CONSOLIDATED.");
    124124        } else if (fireMode == FireMode.IN_EDT_CONSOLIDATED) {
  • trunk/test/unit/org/openstreetmap/josm/data/osm/event/SelectionEventManagerTest.java

    r12098 r12109  
    3232        private final String name;
    3333
    34         public SelectionListener(String name) {
     34        SelectionListener(String name) {
    3535            this.name = name;
    3636        }
     
    110110    private void assertSelectionEquals(List<SelectionListener> listeners, Object should) {
    111111        // sync
    112         GuiHelper.runInEDTAndWait(() -> {});
     112        GuiHelper.runInEDTAndWait(() -> { });
    113113        for (SelectionListener listener : listeners) {
    114114            assertEquals(listener.name, should, listener.newSelection);
Note: See TracChangeset for help on using the changeset viewer.