Changeset 11906 in josm
- Timestamp:
- 2017-04-14T21:29:52+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/JosmUserIdentityManager.java
r11901 r11906 118 118 * verified pair of user name and user id. 119 119 * 120 * @param user name the user name. Must not be null. Must not be empty.121 * @param user info additional information about the user, retrieved from the OSM server and including the user id120 * @param userName the user name. Must not be null. Must not be empty. 121 * @param userInfo additional information about the user, retrieved from the OSM server and including the user id 122 122 * @throws IllegalArgumentException if userName is null 123 123 * @throws IllegalArgumentException if userName is empty 124 * @throws IllegalArgumentException if user info is null125 */ 126 public void setFullyIdentified(String user name, UserInfo userinfo) {127 CheckParameterUtil.ensureParameterNotNull(user name, "username");124 * @throws IllegalArgumentException if userInfo is null 125 */ 126 public void setFullyIdentified(String userName, UserInfo userInfo) { 127 CheckParameterUtil.ensureParameterNotNull(userName, "userName"); 128 128 String trimmedUserName = userName.trim(); 129 129 if (trimmedUserName.isEmpty()) 130 130 throw new IllegalArgumentException(tr("Expected non-empty value for parameter ''{0}'', got ''{1}''", "userName", userName)); 131 CheckParameterUtil.ensureParameterNotNull(user info, "userinfo");131 CheckParameterUtil.ensureParameterNotNull(userInfo, "userInfo"); 132 132 this.userName = trimmedUserName; 133 this.userInfo = user info;133 this.userInfo = userInfo; 134 134 } 135 135
Note:
See TracChangeset
for help on using the changeset viewer.