Changeset 17090 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2020-10-07T07:46:55+02:00 (5 years ago)
Author:
simon04
Message:

fix #18200 - Update to JMockit 1.49 (patch by taylor.smock, modified)

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

Legend:

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

    r16919 r17090  
    132132    }
    133133
    134     private static Point findTopLeftInWindow(JComponent position) {
     134    /**
     135     * This is visible for JMockit.
     136     *
     137     * @param position The component to get the top left position of its window
     138     * @return the top left point in window
     139     */
     140    static Point findTopLeftInWindow(JComponent position) {
    135141        Point result = new Point();
    136142        // better than using swing utils, since this allows us to use the method if no screen is present.
     
    144150    }
    145151
    146     private static Point findTopLeftOnScreen(JComponent position) {
     152    /**
     153     * This is visible for JMockit.
     154     *
     155     * @param position The component to get the top left position of its screen
     156     * @return the top left point on screen
     157     */
     158    static Point findTopLeftOnScreen(JComponent position) {
    147159        try {
    148160            return position.getLocationOnScreen();
  • trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java

    r16438 r17090  
    204204    }
    205205
    206     private static void handleEDTException(Throwable t) {
     206    /**
     207     * Handle exceptions in the EDT. This should only be used in {@link GuiHelper}
     208     * and {@code org.openstreetmap.josm.testutils.mockers.EDTAssertionMocker}.
     209     *
     210     * @param t The throwable to handle
     211     */
     212    static void handleEDTException(Throwable t) {
    207213        Logging.logWithStackTrace(Logging.LEVEL_ERROR, t, "Exception raised in EDT");
    208214    }
Note: See TracChangeset for help on using the changeset viewer.