Changeset 7442 in josm
- Timestamp:
- 2014-08-26T01:32:24+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r7434 r7442 219 219 protected static final Map<String, Throwable> NETWORK_ERRORS = new HashMap<>(); 220 220 221 // First lines of last 10error and warning messages, used for bug reports221 // First lines of last 5 error and warning messages, used for bug reports 222 222 private static final List<String> ERRORS_AND_WARNINGS = Collections.<String>synchronizedList(new ArrayList<String>()); 223 223 … … 238 238 ERRORS_AND_WARNINGS.add(msg); 239 239 } 240 // Only keep 10 lines to avoid memory leak241 while (ERRORS_AND_WARNINGS.size() > 10) {240 // Only keep 5 lines to avoid memory leak and incomplete stacktraces in bug reports 241 while (ERRORS_AND_WARNINGS.size() > 5) { 242 242 ERRORS_AND_WARNINGS.remove(0); 243 243 }
Note:
See TracChangeset
for help on using the changeset viewer.