- Timestamp:
- 2022-09-07T19:55:04+02:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/bugreport/BugReport.java
r18549 r18550 74 74 */ 75 75 public static void addSuppressedException(Throwable t) { 76 SUPPRESSED_EXCEPTIONS.add(new Pair<>(Instant.now(), t != null ? t : new NullPointerException()));77 76 // Ensure we don't call pop in more than MAXIMUM_SUPPRESSED_EXCEPTIONS threads. This guard is 78 77 // here just in case someone doesn't read the javadocs. 79 78 synchronized (SUPPRESSED_EXCEPTIONS) { 79 SUPPRESSED_EXCEPTIONS.add(new Pair<>(Instant.now(), t != null ? t : new NullPointerException())); 80 80 // Ensure we aren't keeping exceptions forever 81 81 while (SUPPRESSED_EXCEPTIONS.size() > MAXIMUM_SUPPRESSED_EXCEPTIONS) {
Note:
See TracChangeset
for help on using the changeset viewer.