Changeset 10098 in josm
- Timestamp:
- 2016-04-02T16:25:53+02:00 (9 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/notes/Note.java
r9858 r10098 81 81 82 82 public void addComment(NoteComment comment) { 83 this.comments.add(comment);83 comments.add(comment); 84 84 } 85 85 … … 89 89 */ 90 90 public NoteComment getFirstComment() { 91 return this.comments.get(0);91 return comments.isEmpty() ? null : comments.get(0); 92 92 } 93 93 -
trunk/src/org/openstreetmap/josm/data/notes/NoteComment.java
r9858 r10098 67 67 } 68 68 69 /** 70 * Sets whether this is a new comment/action and needs to be uploaded to the API 71 * @param isNew {@code true} if this is a new comment/action and needs to be uploaded to the API 72 */ 69 73 public void setNew(boolean isNew) { 70 74 this.isNew = isNew; -
trunk/test/unit/org/openstreetmap/josm/gui/preferences/PreferencesTestUtils.java
r9973 r10098 40 40 assertEquals(tabPane.getSetting(parentClass), ((SubPreferenceSetting) setting).getTabPreferenceSetting(tabPane)); 41 41 } 42 setting.ok(); 42 43 } 43 44 }
Note:
See TracChangeset
for help on using the changeset viewer.