Changeset 7442 in josm for trunk/src


Ignore:
Timestamp:
2014-08-26T01:32:24+02:00 (5 years ago)
Author:
Don-vip
Message:

adjust number of errors/warnings in bug reports to avoid incomplete stacktraces

File:
1 edited

Legend:

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

    r7434 r7442  
    219219    protected static final Map<String, Throwable> NETWORK_ERRORS = new HashMap<>();
    220220
    221     // First lines of last 10 error and warning messages, used for bug reports
     221    // First lines of last 5 error and warning messages, used for bug reports
    222222    private static final List<String> ERRORS_AND_WARNINGS = Collections.<String>synchronizedList(new ArrayList<String>());
    223223
     
    238238            ERRORS_AND_WARNINGS.add(msg);
    239239        }
    240         // Only keep 10 lines to avoid memory leak
    241         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) {
    242242            ERRORS_AND_WARNINGS.remove(0);
    243243        }
Note: See TracChangeset for help on using the changeset viewer.