- Timestamp:
- 04/28/20 12:56:50 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/geniusweb/profilesserver/DefaultProfilesFactory.java
r7 r12 1 1 package geniusweb.profilesserver; 2 2 3 import java.io.IOException; 3 4 import java.util.Collections; 4 5 import java.util.LinkedList; … … 84 85 } 85 86 87 @Override 88 public synchronized void putProfile(Profile profile) throws IOException { 89 if (!available.containsKey(profile.getDomain())) { 90 throw new IOException("profile's domain does not exist"); 91 } 92 add(profile); 93 } 94 86 95 /**************** support for updating ***************/ 87 96 /**
Note:
See TracChangeset
for help on using the changeset viewer.