- Timestamp:
- 2016-09-10T04:17:55+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/LayerManager.java
r10611 r10985 172 172 173 173 /** 174 * Add a layer. The layer will be added at a given p soition.174 * Add a layer. The layer will be added at a given position. 175 175 * @param layer The layer to add 176 176 */ -
trunk/src/org/openstreetmap/josm/tools/bugreport/ReportedException.java
r10819 r10985 46 46 private final LinkedList<Section> sections = new LinkedList<>(); 47 47 private final transient Thread caughtOnThread; 48 private final Throwable exception;49 48 private String methodWarningFrom; 50 49 … … 55 54 ReportedException(Throwable exception, Thread caughtOnThread) { 56 55 super(exception); 57 this.exception = exception;58 56 59 57 allStackTraces = Thread.getAllStackTraces(); … … 157 155 } 158 156 159 return hasSameStackTrace(new CauseTraceIterator(), e. exception);157 return hasSameStackTrace(new CauseTraceIterator(), e.getCause()); 160 158 } 161 159 … … 247 245 @Override 248 246 public String toString() { 249 return "ReportedException [thread=" + caughtOnThread + ", exception=" + exception247 return "ReportedException [thread=" + caughtOnThread + ", exception=" + getCause() 250 248 + ", methodWarningFrom=" + methodWarningFrom + "]"; 251 249 } … … 276 274 */ 277 275 private final class CauseTraceIterator implements Iterator<Throwable> { 278 private Throwable current = exception;276 private Throwable current = getCause(); 279 277 private final Set<Throwable> dejaVu = Collections.newSetFromMap(new IdentityHashMap<Throwable, Boolean>()); 280 278
Note:
See TracChangeset
for help on using the changeset viewer.