mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fixed major issues ("Malicious code vulnerability - Field isn't final") reported in Sonar
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@71959 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -43,7 +43,7 @@ import org.apache.commons.logging.LogFactory;
|
|||||||
public class DeclarativeCapability extends AbstractCapability
|
public class DeclarativeCapability extends AbstractCapability
|
||||||
{
|
{
|
||||||
/** Logger */
|
/** Logger */
|
||||||
protected static Log logger = LogFactory.getLog(DeclarativeCapability.class);
|
protected static final Log logger = LogFactory.getLog(DeclarativeCapability.class);
|
||||||
|
|
||||||
/** Required permissions */
|
/** Required permissions */
|
||||||
protected List<String> permissions;
|
protected List<String> permissions;
|
||||||
@@ -212,10 +212,10 @@ public class DeclarativeCapability extends AbstractCapability
|
|||||||
|
|
||||||
// determine the actual value
|
// determine the actual value
|
||||||
boolean actual = condition.evaluate(nodeRef);
|
boolean actual = condition.evaluate(nodeRef);
|
||||||
|
|
||||||
// report information about condition (for exception reporting)
|
// report information about condition (for exception reporting)
|
||||||
RMMethodSecurityInterceptor.reportCapabilityCondition(getName(), condition.getName(), expected, actual);
|
RMMethodSecurityInterceptor.reportCapabilityCondition(getName(), condition.getName(), expected, actual);
|
||||||
|
|
||||||
if (expected != actual)
|
if (expected != actual)
|
||||||
{
|
{
|
||||||
result = false;
|
result = false;
|
||||||
@@ -224,7 +224,7 @@ public class DeclarativeCapability extends AbstractCapability
|
|||||||
{
|
{
|
||||||
logger.debug("FAIL: Condition " + condition.getName() + " failed for capability " + getName() + " on nodeRef " + nodeRef.toString());
|
logger.debug("FAIL: Condition " + condition.getName() + " failed for capability " + getName() + " on nodeRef " + nodeRef.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -24,7 +24,7 @@ public abstract class BaseBehaviourBean extends ServiceBaseImpl
|
|||||||
BehaviourRegistry
|
BehaviourRegistry
|
||||||
{
|
{
|
||||||
/** Logger */
|
/** Logger */
|
||||||
protected static Log logger = LogFactory.getLog(BaseBehaviourBean.class);
|
protected static final Log logger = LogFactory.getLog(BaseBehaviourBean.class);
|
||||||
|
|
||||||
/** behaviour filter */
|
/** behaviour filter */
|
||||||
protected BehaviourFilter behaviourFilter;
|
protected BehaviourFilter behaviourFilter;
|
||||||
|
@@ -33,7 +33,7 @@ import org.springframework.beans.factory.BeanNameAware;
|
|||||||
public abstract class AbstractModulePatch implements ModulePatch, BeanNameAware
|
public abstract class AbstractModulePatch implements ModulePatch, BeanNameAware
|
||||||
{
|
{
|
||||||
/** logger */
|
/** logger */
|
||||||
protected static Log logger = LogFactory.getLog(ModulePatch.class);
|
protected static final Log logger = LogFactory.getLog(ModulePatch.class);
|
||||||
|
|
||||||
/** module patch service */
|
/** module patch service */
|
||||||
private ModulePatchExecuter modulePatchExecuter;
|
private ModulePatchExecuter modulePatchExecuter;
|
||||||
|
@@ -40,7 +40,7 @@ public class ModulePatchExecuterImpl extends AbstractModuleComponent
|
|||||||
implements ModulePatchExecuter
|
implements ModulePatchExecuter
|
||||||
{
|
{
|
||||||
/** logger */
|
/** logger */
|
||||||
protected static Log logger = LogFactory.getLog(ModulePatchExecuterImpl.class);
|
protected static final Log logger = LogFactory.getLog(ModulePatchExecuterImpl.class);
|
||||||
|
|
||||||
/** default start schema */
|
/** default start schema */
|
||||||
private static final int START_SCHEMA = 0;
|
private static final int START_SCHEMA = 0;
|
||||||
|
@@ -36,7 +36,7 @@ import org.apache.commons.logging.LogFactory;
|
|||||||
public abstract class ModulePatchComponent extends AbstractModuleComponent
|
public abstract class ModulePatchComponent extends AbstractModuleComponent
|
||||||
{
|
{
|
||||||
/** logger */
|
/** logger */
|
||||||
protected static Log logger = LogFactory.getLog(ModulePatchComponent.class);
|
protected static final Log logger = LogFactory.getLog(ModulePatchComponent.class);
|
||||||
|
|
||||||
/** Retrying transaction helper */
|
/** Retrying transaction helper */
|
||||||
protected RetryingTransactionHelper retryingTransactionHelper;
|
protected RetryingTransactionHelper retryingTransactionHelper;
|
||||||
|
@@ -67,7 +67,7 @@ public class FilePlanPermissionServiceImpl extends ServiceBaseImpl
|
|||||||
protected PolicyComponent policyComponent;
|
protected PolicyComponent policyComponent;
|
||||||
|
|
||||||
/** Logger */
|
/** Logger */
|
||||||
protected static Log logger = LogFactory.getLog(FilePlanPermissionServiceImpl.class);
|
protected static final Log logger = LogFactory.getLog(FilePlanPermissionServiceImpl.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialisation method
|
* Initialisation method
|
||||||
|
@@ -27,7 +27,7 @@ import org.apache.commons.logging.LogFactory;
|
|||||||
public class RMMethodSecurityInterceptor extends MethodSecurityInterceptor
|
public class RMMethodSecurityInterceptor extends MethodSecurityInterceptor
|
||||||
{
|
{
|
||||||
/** logger */
|
/** logger */
|
||||||
protected static Log logger = LogFactory.getLog(RMMethodSecurityInterceptor.class);
|
protected static final Log logger = LogFactory.getLog(RMMethodSecurityInterceptor.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper class to hold capability report information
|
* Helper class to hold capability report information
|
||||||
|
Reference in New Issue
Block a user