mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM: Remove build warnings
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54103 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -88,7 +88,7 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public boolean supports(Class clazz)
|
||||
{
|
||||
return (MethodInvocation.class.isAssignableFrom(clazz));
|
||||
@@ -128,7 +128,7 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
||||
this.maxPermissionCheckTimeMillis = maxPermissionCheckTimeMillis;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public Object decide(Authentication authentication, Object object, ConfigAttributeDefinition config, Object returnedObject) throws AccessDeniedException
|
||||
{
|
||||
if (logger.isDebugEnabled())
|
||||
@@ -302,7 +302,7 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked" })
|
||||
@SuppressWarnings({"rawtypes" })
|
||||
private List<ConfigAttributeDefintion> extractSupportedDefinitions(ConfigAttributeDefinition config)
|
||||
{
|
||||
List<ConfigAttributeDefintion> definitions = new ArrayList<ConfigAttributeDefintion>();
|
||||
@@ -593,7 +593,7 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
||||
return new QueryEngineResults(answer);
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
private Collection decide(Authentication authentication, Object object, ConfigAttributeDefinition config, Collection returnedObject) throws AccessDeniedException
|
||||
{
|
||||
if (returnedObject == null)
|
||||
@@ -946,7 +946,7 @@ public class RMAfterInvocationProvider extends RMSecurityCommon
|
||||
return testNodeRef;
|
||||
}
|
||||
|
||||
@SuppressWarnings({"unchecked" })
|
||||
@SuppressWarnings({"unchecked", "rawtypes" })
|
||||
private Map decide(Authentication authentication, Object object, ConfigAttributeDefinition config, Map returnedObject) throws AccessDeniedException
|
||||
{
|
||||
if (returnedObject.containsKey(RecordsManagementModel.PROP_HOLD_REASON))
|
||||
|
@@ -158,7 +158,7 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
/**
|
||||
* @see net.sf.acegisecurity.vote.AccessDecisionVoter#supports(java.lang.Class)
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public boolean supports(Class clazz)
|
||||
{
|
||||
return (MethodInvocation.class.isAssignableFrom(clazz));
|
||||
@@ -167,7 +167,7 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
/**
|
||||
* @see net.sf.acegisecurity.vote.AccessDecisionVoter#vote(net.sf.acegisecurity.Authentication, java.lang.Object, net.sf.acegisecurity.ConfigAttributeDefinition)
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public int vote(Authentication authentication, Object object, net.sf.acegisecurity.ConfigAttributeDefinition config)
|
||||
{
|
||||
MethodInvocation mi = (MethodInvocation)object;
|
||||
@@ -323,7 +323,7 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
* @param cad
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
private int checkCapability(MethodInvocation invocation, Class[] params, ConfigAttributeDefinition cad)
|
||||
{
|
||||
NodeRef testNodeRef = getTestNode(invocation, params, cad.getParameters().get(0), cad.isParent());
|
||||
@@ -347,7 +347,7 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
* @param cad
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
private int checkPolicy(MethodInvocation invocation, Class[] params, ConfigAttributeDefinition cad)
|
||||
{
|
||||
Policy policy = policies.get(cad.getPolicyName());
|
||||
@@ -373,7 +373,7 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
* @param config
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
private List<ConfigAttributeDefinition> extractSupportedDefinitions(net.sf.acegisecurity.ConfigAttributeDefinition config)
|
||||
{
|
||||
List<ConfigAttributeDefinition> definitions = new ArrayList<ConfigAttributeDefinition>(2);
|
||||
|
@@ -223,7 +223,7 @@ public class RMSecurityCommon
|
||||
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
protected NodeRef getTestNode(MethodInvocation invocation, Class[] params, int position, boolean parent)
|
||||
{
|
||||
NodeRef testNodeRef = null;
|
||||
|
@@ -101,7 +101,7 @@ public abstract class AbstractBasePolicy extends RMSecurityCommon
|
||||
* @param parent
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
protected QName getType(MethodInvocation invocation, Class[] params, int position, boolean parent)
|
||||
{
|
||||
if (QName.class.isAssignableFrom(params[position]))
|
||||
@@ -131,7 +131,7 @@ public abstract class AbstractBasePolicy extends RMSecurityCommon
|
||||
* @param position
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
protected QName getQName(MethodInvocation invocation, Class[] params, int position)
|
||||
{
|
||||
if (QName.class.isAssignableFrom(params[position]))
|
||||
@@ -152,7 +152,7 @@ public abstract class AbstractBasePolicy extends RMSecurityCommon
|
||||
* @param position
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
protected Serializable getProperty(MethodInvocation invocation, Class[] params, int position)
|
||||
{
|
||||
if (invocation.getArguments()[position] == null)
|
||||
@@ -177,7 +177,7 @@ public abstract class AbstractBasePolicy extends RMSecurityCommon
|
||||
* @param position
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
protected Map<QName, Serializable> getProperties(MethodInvocation invocation, Class[] params, int position)
|
||||
{
|
||||
if (invocation.getArguments()[position] == null)
|
||||
|
@@ -25,7 +25,7 @@ import org.aopalliance.intercept.MethodInvocation;
|
||||
public class AssocPolicy extends AbstractBasePolicy
|
||||
{
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public int evaluate(
|
||||
MethodInvocation invocation,
|
||||
Class[] params,
|
||||
|
@@ -33,7 +33,7 @@ public class CapabilityPolicy extends AbstractBasePolicy
|
||||
* @see org.alfresco.module.org_alfresco_module_rm.capability.policy.Policy#evaluate(org.aopalliance.intercept.MethodInvocation, java.lang.Class[], org.alfresco.module.org_alfresco_module_rm.capability.policy.ConfigAttributeDefinition)
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public int evaluate(
|
||||
MethodInvocation invocation,
|
||||
Class[] params,
|
||||
|
@@ -25,7 +25,7 @@ import org.aopalliance.intercept.MethodInvocation;
|
||||
|
||||
public class CreatePolicy extends AbstractBasePolicy
|
||||
{
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public int evaluate(
|
||||
MethodInvocation invocation,
|
||||
Class[] params,
|
||||
|
@@ -24,7 +24,7 @@ import org.aopalliance.intercept.MethodInvocation;
|
||||
public class DeclarePolicy extends AbstractBasePolicy
|
||||
{
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public int evaluate(
|
||||
MethodInvocation invocation,
|
||||
Class[] params,
|
||||
|
@@ -26,7 +26,7 @@ import org.aopalliance.intercept.MethodInvocation;
|
||||
public class DeletePolicy extends AbstractBasePolicy
|
||||
{
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public int evaluate(
|
||||
MethodInvocation invocation,
|
||||
Class[] params,
|
||||
|
@@ -26,7 +26,7 @@ import org.aopalliance.intercept.MethodInvocation;
|
||||
public class MovePolicy extends AbstractBasePolicy
|
||||
{
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public int evaluate(
|
||||
MethodInvocation invocation,
|
||||
Class[] params,
|
||||
|
@@ -41,7 +41,7 @@ public interface Policy
|
||||
* @param cad
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
int evaluate(
|
||||
MethodInvocation invocation,
|
||||
Class[] params,
|
||||
|
@@ -29,7 +29,7 @@ import org.aopalliance.intercept.MethodInvocation;
|
||||
public class ReadPolicy extends AbstractBasePolicy
|
||||
{
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public int evaluate(
|
||||
MethodInvocation invocation,
|
||||
Class[] params,
|
||||
|
@@ -29,7 +29,7 @@ import org.aopalliance.intercept.MethodInvocation;
|
||||
public class ReadPropertyPolicy extends AbstractBasePolicy
|
||||
{
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public int evaluate(
|
||||
MethodInvocation invocation,
|
||||
Class[] params,
|
||||
|
@@ -29,7 +29,7 @@ import org.aopalliance.intercept.MethodInvocation;
|
||||
public class UpdatePolicy extends AbstractBasePolicy
|
||||
{
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public int evaluate(
|
||||
MethodInvocation invocation,
|
||||
Class[] params,
|
||||
|
@@ -29,7 +29,7 @@ import org.aopalliance.intercept.MethodInvocation;
|
||||
|
||||
public class UpdatePropertiesPolicy extends AbstractBasePolicy
|
||||
{
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public int evaluate(
|
||||
MethodInvocation invocation,
|
||||
Class[] params,
|
||||
|
@@ -24,7 +24,7 @@ import org.aopalliance.intercept.MethodInvocation;
|
||||
public class WriteContentPolicy extends AbstractBasePolicy
|
||||
{
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public int evaluate(
|
||||
MethodInvocation invocation,
|
||||
Class[] params,
|
||||
|
@@ -144,7 +144,7 @@ public class RMListOfValuesConstraint extends ListOfValuesConstraint
|
||||
*
|
||||
* @param values a list of allowed values
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||
@Override
|
||||
public void setAllowedValues(List allowedValues)
|
||||
{
|
||||
|
@@ -138,7 +138,7 @@ public class RecordsManagementEventServiceImpl implements RecordsManagementEvent
|
||||
/**
|
||||
* @see org.alfresco.module.org_alfresco_module_rm.event.RecordsManagementEventService#canCreateEvent(java.lang.String, java.lang.String)
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public boolean canCreateEvent(String eventDisplayLabel, String eventName)
|
||||
{
|
||||
ParameterCheck.mandatoryString("eventDisplayLabel", eventDisplayLabel);
|
||||
@@ -170,7 +170,7 @@ public class RecordsManagementEventServiceImpl implements RecordsManagementEvent
|
||||
/**
|
||||
* @see org.alfresco.module.org_alfresco_module_rm.event.RecordsManagementEventService#canEditEvent(java.lang.String, java.lang.String, java.lang.String)
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
public boolean canEditEvent(String eventDisplayLabel, String eventName, String eventType)
|
||||
{
|
||||
ParameterCheck.mandatoryString("eventDisplayLabel", eventDisplayLabel);
|
||||
|
@@ -277,6 +277,10 @@ public class JSONConversionComponent extends org.alfresco.repo.jscript.app.JSONC
|
||||
result = "transfer-container";
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -120,7 +120,7 @@ public class CustomPropertyDefinitionPost extends BaseCustomPropertyWebScript
|
||||
return result;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
protected Map<String, Serializable> getParamsFromUrlAndJson(WebScriptRequest req, JSONObject json)
|
||||
throws JSONException
|
||||
{
|
||||
|
@@ -97,7 +97,7 @@ public class CustomReferenceDefinitionPost extends AbstractRmWebScript
|
||||
/**
|
||||
* Applies custom properties.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
protected Map<String, Object> addCustomReference(WebScriptRequest req, JSONObject json) throws JSONException
|
||||
{
|
||||
Map<String, Object> result = new HashMap<String, Object>();
|
||||
|
@@ -99,7 +99,7 @@ public class CustomReferenceDefinitionPut extends AbstractRmWebScript
|
||||
/**
|
||||
* Applies custom properties.
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@SuppressWarnings("rawtypes")
|
||||
protected Map<String, Object> updateCustomReference(WebScriptRequest req, JSONObject json) throws JSONException
|
||||
{
|
||||
Map<String, Object> result = new HashMap<String, Object>();
|
||||
|
Reference in New Issue
Block a user