diff --git a/remote-api/src/main/java/org/alfresco/rest/api/impl/PreferencesImpl.java b/remote-api/src/main/java/org/alfresco/rest/api/impl/PreferencesImpl.java index 79987f7eeae..5bd588258b1 100644 --- a/remote-api/src/main/java/org/alfresco/rest/api/impl/PreferencesImpl.java +++ b/remote-api/src/main/java/org/alfresco/rest/api/impl/PreferencesImpl.java @@ -62,6 +62,7 @@ public void setPreferenceService(PreferenceService preferenceService) this.preferenceService = preferenceService; } + @Override public Preference getPreference(String personId, String preferenceName) { personId = people.validatePerson(personId); @@ -76,12 +77,13 @@ public Preference getPreference(String personId, String preferenceName) } } + @Override public CollectionWithPagingInfo getPreferences(String personId, Paging paging) { personId = people.validatePerson(personId); PagingResults> preferences = preferenceService.getPagedPreferences(personId, null, Util.getPagingRequest(paging)); - List ret = new ArrayList(preferences.getPage().size()); + List ret = new ArrayList<>(preferences.getPage().size()); for (Pair prefEntity : preferences.getPage()) { Preference pref = new Preference(prefEntity.getFirst(), prefEntity.getSecond()); @@ -91,6 +93,7 @@ public CollectionWithPagingInfo getPreferences(String personId, Pagi return CollectionWithPagingInfo.asPaged(paging, ret, preferences.hasMoreItems(), preferences.getTotalResultCount().getFirst()); } + @Override public Preference updatePreference(String personId, Preference preference) { personId = people.validatePerson(personId, true); diff --git a/remote-api/src/main/java/org/alfresco/rest/framework/webscripts/ResourceWebScriptPut.java b/remote-api/src/main/java/org/alfresco/rest/framework/webscripts/ResourceWebScriptPut.java index 5cd9b322b08..865e92893c1 100644 --- a/remote-api/src/main/java/org/alfresco/rest/framework/webscripts/ResourceWebScriptPut.java +++ b/remote-api/src/main/java/org/alfresco/rest/framework/webscripts/ResourceWebScriptPut.java @@ -66,7 +66,7 @@ public class ResourceWebScriptPut extends AbstractResourceWebScript implements P RecognizedParamsExtractor, RequestReader { - private static Log logger = LogFactory.getLog(ResourceWebScriptPut.class); + private static final Log logger = LogFactory.getLog(ResourceWebScriptPut.class); public ResourceWebScriptPut() {