- Timestamp:
- 2024-01-19T09:11:18+01:00 (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SessionSaveAction.java
r18833 r18942 156 156 */ 157 157 public boolean saveSession(boolean saveAs, boolean forceSaveAll) throws UserCancelException { 158 try { 159 return saveSessionImpl(saveAs, forceSaveAll); 160 } finally { 161 cleanup(); 162 } 163 } 164 165 private boolean saveSessionImpl(boolean saveAs, boolean forceSaveAll) throws UserCancelException { 158 166 if (!isEnabled()) { 159 167 return false; … … 369 377 370 378 /** 371 * Initializes action.379 * Initializes some action fields. 372 380 */ 373 p ublic finalvoid initialize() {381 private void initialize() { 374 382 layers = new ArrayList<>(getLayerManager().getLayers()); 375 383 exporters = new HashMap<>(); … … 613 621 } 614 622 623 protected void cleanup() { 624 layers = null; 625 exporters = null; 626 dependencies = null; 627 } 628 615 629 }
Note:
See TracChangeset
for help on using the changeset viewer.