Changeset 290
- Timestamp:
- 03/26/10 09:39:24 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/ComponentRegistryImpl.java
r262 r290 162 162 163 163 public List<ComponentDescription> getComponentDescriptions() { 164 List<ComponentDescription> result = new ArrayList (componentDescriptions.values());164 List<ComponentDescription> result = new ArrayList<ComponentDescription>(componentDescriptions.values()); 165 165 Collections.sort(result, ComponentDescription.COMPARE_ON_GROUP_AND_NAME); 166 166 return result; 167 167 } 168 168 169 169 public ComponentDescription getComponentDescription(String id) { 170 170 return componentDescriptions.get(id); … … 240 240 241 241 public List<ProfileDescription> getProfileDescriptions() { 242 List<ProfileDescription> result = new ArrayList (profileDescriptions.values());242 List<ProfileDescription> result = new ArrayList<ProfileDescription>(profileDescriptions.values()); 243 243 Collections.sort(result, ProfileDescription.COMPARE_ON_NAME); 244 244 return result; 245 245 } 246 246 247 247 public ProfileDescription getProfileDescription(String id) { 248 248 return profileDescriptions.get(id); … … 324 324 325 325 public List<MDProfile> searchMDProfiles(String searchPattern) { 326 return Collections. EMPTY_LIST;326 return Collections.emptyList(); 327 327 } 328 328
Note: See TracChangeset
for help on using the changeset viewer.