Changeset 12494 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2017-07-22T22:41:19+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Changeset.java
r12033 r12494 10 10 import java.util.Map; 11 11 import java.util.Objects; 12 import java.util.Optional; 12 13 13 14 import org.openstreetmap.josm.data.Bounds; … … 264 265 265 266 /** 266 * Replies the number of comments for this changeset. 267 * @return the number of comments for this changeset 267 * Replies this changeset comment. 268 * @return this changeset comment (empty string if missing) 269 * @since 12494 270 */ 271 public String getComment() { 272 return Optional.ofNullable(get("comment")).orElse(""); 273 } 274 275 /** 276 * Replies the number of comments for this changeset discussion. 277 * @return the number of comments for this changeset discussion 268 278 * @since 7700 269 279 */ … … 273 283 274 284 /** 275 * Sets the number of comments for this changeset .276 * @param commentsCount the number of comments for this changeset 285 * Sets the number of comments for this changeset discussion. 286 * @param commentsCount the number of comments for this changeset discussion 277 287 * @since 7700 278 288 */
Note:
See TracChangeset
for help on using the changeset viewer.