mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -31,6 +31,8 @@ import java.util.Objects;
|
|||||||
*/
|
*/
|
||||||
public final class SecurityClearance implements Serializable
|
public final class SecurityClearance implements Serializable
|
||||||
{
|
{
|
||||||
|
/** Serial version uid */
|
||||||
|
private static final long serialVersionUID = 8410664575120817707L;
|
||||||
private final PersonInfo personInfo;
|
private final PersonInfo personInfo;
|
||||||
private final ClassificationLevel classificationLevel;
|
private final ClassificationLevel classificationLevel;
|
||||||
|
|
||||||
|
@@ -18,7 +18,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.alfresco.module.org_alfresco_module_rm.classification;
|
package org.alfresco.module.org_alfresco_module_rm.classification;
|
||||||
|
|
||||||
import org.alfresco.query.PagingRequest;
|
|
||||||
import org.alfresco.query.PagingResults;
|
import org.alfresco.query.PagingResults;
|
||||||
import org.alfresco.service.cmr.security.NoSuchPersonException;
|
import org.alfresco.service.cmr.security.NoSuchPersonException;
|
||||||
|
|
||||||
|
@@ -76,6 +76,7 @@ public final class UserQueryParams
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Sets the sort properties required for the query. */
|
/** Sets the sort properties required for the query. */
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
public UserQueryParams withSortProps(Pair<QName, Boolean> firstSortProp, Pair<QName, Boolean>... otherSortProps)
|
public UserQueryParams withSortProps(Pair<QName, Boolean> firstSortProp, Pair<QName, Boolean>... otherSortProps)
|
||||||
{
|
{
|
||||||
this.sortProps = Collections.unmodifiableList(toList(firstSortProp, otherSortProps));
|
this.sortProps = Collections.unmodifiableList(toList(firstSortProp, otherSortProps));
|
||||||
@@ -89,6 +90,7 @@ public final class UserQueryParams
|
|||||||
public int getMaxItems() { return this.maxItems; }
|
public int getMaxItems() { return this.maxItems; }
|
||||||
|
|
||||||
/** Helper method to turn a varargs into a List, ensuring at least one element is present. */
|
/** 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)
|
private <T> List<T> toList(T firstElem, T... otherElems)
|
||||||
{
|
{
|
||||||
// At least one element is required.
|
// At least one element is required.
|
||||||
|
Reference in New Issue
Block a user