- Timestamp:
- 2018-08-19T23:48:04+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/DataSet.java
r14120 r14169 134 134 135 135 private String name; 136 private DownloadPolicy downloadPolicy ;137 private UploadPolicy uploadPolicy ;136 private DownloadPolicy downloadPolicy = DownloadPolicy.NORMAL; 137 private UploadPolicy uploadPolicy = UploadPolicy.NORMAL; 138 138 /** Flag used to know if the dataset should not be editable */ 139 139 private final AtomicBoolean isReadOnly = new AtomicBoolean(false); … … 329 329 @Override 330 330 public void setDownloadPolicy(DownloadPolicy downloadPolicy) { 331 this.downloadPolicy = downloadPolicy;331 this.downloadPolicy = Objects.requireNonNull(downloadPolicy); 332 332 } 333 333 … … 339 339 @Override 340 340 public void setUploadPolicy(UploadPolicy uploadPolicy) { 341 this.uploadPolicy = uploadPolicy;341 this.uploadPolicy = Objects.requireNonNull(uploadPolicy); 342 342 } 343 343 -
trunk/src/org/openstreetmap/josm/data/osm/OsmData.java
r13925 r14169 229 229 /** 230 230 * Sets the download policy. 231 * @param downloadPolicy the download policy 231 * @param downloadPolicy the download policy. Must not be null 232 232 * @see #getUploadPolicy() 233 233 * @since 13453 … … 244 244 /** 245 245 * Sets the upload policy. 246 * @param uploadPolicy the upload policy 246 * @param uploadPolicy the upload policy. Must not be null 247 247 * @see #getUploadPolicy() 248 248 */
Note:
See TracChangeset
for help on using the changeset viewer.