Changeset 7005 in josm for trunk/src/org/openstreetmap/josm/data/osm/User.java
- Timestamp:
- 2014-04-26T17:39:23+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/User.java
r6889 r7005 30 30 * the map of known users 31 31 */ 32 private static Map<Long,User> userMap = new HashMap< Long,User>();32 private static Map<Long,User> userMap = new HashMap<>(); 33 33 private static final User anonymous = createLocalUser(tr("<anonymous>")); 34 34 … … 102 102 name = ""; 103 103 } 104 List<User> ret = new ArrayList< User>();104 List<User> ret = new ArrayList<>(); 105 105 for (User user: userMap.values()) { 106 106 if (user.hasName(name)) { … … 120 120 121 121 /** the user name */ 122 private final Set<String> names = new HashSet< String>();122 private final Set<String> names = new HashSet<>(); 123 123 /** the user id */ 124 124 private final long uid; … … 139 139 */ 140 140 public List<String> getNames() { 141 return new ArrayList< String>(names);141 return new ArrayList<>(names); 142 142 } 143 143
Note:
See TracChangeset
for help on using the changeset viewer.