Ignore:
Timestamp:
2023-08-09T15:30:01+02:00 (3 years ago)
Author:
taylor.smock
Message:

Fix #22832: Code cleanup and some simplification, documentation fixes (patch by gaben)

There should not be any functional changes in this patch; it is intended to do
the following:

  • Simplify and cleanup code (example: Arrays.asList(item) -> Collections.singletonList(item))
  • Fix typos in documentation (which also corrects the documentation to match what actually happens, in some cases)
File:
1 edited

Legend:

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

    r16694 r18801  
    66import java.awt.BorderLayout;
    77import java.awt.Dimension;
    8 import java.util.Arrays;
     8import java.util.stream.Stream;
    99
    1010import javax.swing.JPanel;
     
    1919
    2020/**
    21  * HistoryBrowser is an UI component which displays history information about an {@link OsmPrimitive}.
     21 * HistoryBrowser is a UI component which displays history information about an {@link OsmPrimitive}.
    2222 *
    2323 * @since 1709
     
    162162            model = null;
    163163        }
    164         Arrays.asList(tagInfoViewer, nodeListViewer, relationMemberListViewer, coordinateInfoViewer).stream()
     164        Stream.of(tagInfoViewer, nodeListViewer, relationMemberListViewer, coordinateInfoViewer)
    165165                .filter(Destroyable.class::isInstance).forEach(Destroyable::destroy);
    166166        tagInfoViewer = null;
Note: See TracChangeset for help on using the changeset viewer.