mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed minor issues ("Constant Name") reported in Sonar
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@71952 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -65,7 +65,7 @@ public class RMMethodSecurityInterceptor extends MethodSecurityInterceptor
|
|||||||
* <p>
|
* <p>
|
||||||
* Used to getnerate the capability error report.
|
* Used to getnerate the capability error report.
|
||||||
*/
|
*/
|
||||||
private static final ThreadLocal<Map<String, CapabilityReport>> capabilities = new ThreadLocal<Map<String, CapabilityReport>>()
|
private static final ThreadLocal<Map<String, CapabilityReport>> CAPABILITIES = new ThreadLocal<Map<String, CapabilityReport>>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
protected Map<String, CapabilityReport> initialValue()
|
protected Map<String, CapabilityReport> initialValue()
|
||||||
@@ -83,7 +83,7 @@ public class RMMethodSecurityInterceptor extends MethodSecurityInterceptor
|
|||||||
*/
|
*/
|
||||||
private static final CapabilityReport getCapabilityReport(String name)
|
private static final CapabilityReport getCapabilityReport(String name)
|
||||||
{
|
{
|
||||||
Map<String, CapabilityReport> map = RMMethodSecurityInterceptor.capabilities.get();
|
Map<String, CapabilityReport> map = RMMethodSecurityInterceptor.CAPABILITIES.get();
|
||||||
CapabilityReport capability = map.get(name);
|
CapabilityReport capability = map.get(name);
|
||||||
if (capability == null)
|
if (capability == null)
|
||||||
{
|
{
|
||||||
@@ -142,7 +142,7 @@ public class RMMethodSecurityInterceptor extends MethodSecurityInterceptor
|
|||||||
|
|
||||||
if (logger.isDebugEnabled())
|
if (logger.isDebugEnabled())
|
||||||
{
|
{
|
||||||
Collection<CapabilityReport> capabilities = RMMethodSecurityInterceptor.capabilities.get().values();
|
Collection<CapabilityReport> capabilities = RMMethodSecurityInterceptor.CAPABILITIES.get().values();
|
||||||
|
|
||||||
if (!capabilities.isEmpty())
|
if (!capabilities.isEmpty())
|
||||||
{
|
{
|
||||||
@@ -185,7 +185,7 @@ public class RMMethodSecurityInterceptor extends MethodSecurityInterceptor
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
// clear the capability report information
|
// clear the capability report information
|
||||||
RMMethodSecurityInterceptor.capabilities.remove();
|
RMMethodSecurityInterceptor.CAPABILITIES.remove();
|
||||||
|
|
||||||
result = super.beforeInvocation(object);
|
result = super.beforeInvocation(object);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user