Changeset 12790 in josm for trunk/src/org/openstreetmap/josm/tools/bugreport/BugReportQueue.java
- Timestamp:
- 2017-09-08T21:10:14+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/bugreport/BugReportQueue.java
r12770 r12790 4 4 import java.util.ArrayList; 5 5 import java.util.LinkedList; 6 import java.util.Objects; 6 7 import java.util.concurrent.CopyOnWriteArrayList; 7 8 import java.util.function.Predicate; … … 18 19 private static final BugReportQueue INSTANCE = new BugReportQueue(); 19 20 21 /** 22 * The fallback bug report handler if none is set. Prints the stacktrace on standard output. 23 * @since 12770 24 */ 20 25 public static final BugReportHandler FALLBACK_BUGREPORT_HANDLER = (e, index) -> { 21 26 e.printStackTrace(); … … 142 147 } 143 148 149 /** 150 * Sets the {@link BugReportHandler} for this queue. 151 * @param bugReportHandler the handler in charge of displaying the bug report. Must not be null 152 * @since 12770 153 */ 144 154 public void setBugReportHandler(BugReportHandler bugReportHandler) { 145 this.bugReportHandler = bugReportHandler; 155 this.bugReportHandler = Objects.requireNonNull(bugReportHandler, "bugReportHandler"); 146 156 } 147 157
Note:
See TracChangeset
for help on using the changeset viewer.
