Removed warnings

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@103492 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2015-05-01 16:32:06 +00:00
parent a324655cde
commit e76ea15a2c
3 changed files with 4 additions and 1 deletions

View File

@@ -31,6 +31,8 @@ import java.util.Objects;
*/
public final class SecurityClearance implements Serializable
{
/** Serial version uid */
private static final long serialVersionUID = 8410664575120817707L;
private final PersonInfo personInfo;
private final ClassificationLevel classificationLevel;

View File

@@ -18,7 +18,6 @@
*/
package org.alfresco.module.org_alfresco_module_rm.classification;
import org.alfresco.query.PagingRequest;
import org.alfresco.query.PagingResults;
import org.alfresco.service.cmr.security.NoSuchPersonException;

View File

@@ -76,6 +76,7 @@ public final class UserQueryParams
}
/** Sets the sort properties required for the query. */
@SuppressWarnings("unchecked")
public UserQueryParams withSortProps(Pair<QName, Boolean> firstSortProp, Pair<QName, Boolean>... otherSortProps)
{
this.sortProps = Collections.unmodifiableList(toList(firstSortProp, otherSortProps));
@@ -89,6 +90,7 @@ public final class UserQueryParams
public int getMaxItems() { return this.maxItems; }
/** Helper method to turn a varargs into a List, ensuring at least one element is present. */
@SuppressWarnings("unchecked")
private <T> List<T> toList(T firstElem, T... otherElems)
{
// At least one element is required.