[exo-jcr-commits] exo-jcr SVN: r5500 - in jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services: jcr/infinispan and 1 other directories.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Jan 24 05:52:49 EST 2012
Author: nfilotto
Date: 2012-01-24 05:52:48 -0500 (Tue, 24 Jan 2012)
New Revision: 5500
Modified:
jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/infinispan/ISPNCacheWorkspaceStorageCache.java
jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services/jcr/infinispan/CacheServer.java
jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services/jcr/infinispan/ISPNCacheFactory.java
jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services/transaction/infinispan/JBossStandaloneJTAManagerLookup.java
Log:
EXOJCR-1682: Last sonar violations fixed for these projects
Modified: jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/infinispan/ISPNCacheWorkspaceStorageCache.java
===================================================================
--- jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/infinispan/ISPNCacheWorkspaceStorageCache.java 2012-01-24 10:52:36 UTC (rev 5499)
+++ jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/infinispan/ISPNCacheWorkspaceStorageCache.java 2012-01-24 10:52:48 UTC (rev 5500)
@@ -120,7 +120,7 @@
@SuppressWarnings("unchecked")
public class ISPNCacheWorkspaceStorageCache implements WorkspaceStorageCache, Backupable
{
- private static final Log LOG = ExoLogger
+ private static final Log LOG = ExoLogger//NOSONAR
.getLogger("exo.jcr.component.core.impl.infinispan.v5.ISPNCacheWorkspaceStorageCache");//NOSONAR
/**
@@ -1769,8 +1769,8 @@
}
/**
- * This class defines all the methods that could change between the replicated and the distributed mode. By default it implements
- * the methods for the local and replicated mode.
+ * This class defines all the methods that could change between the replicated and the distributed mode.
+ * By default it implements the methods for the local and replicated mode.
*
*/
private class GlobalOperationCaller
@@ -1926,18 +1926,18 @@
// The listeners will need to be executed outside the current tx so we suspend
// the current tx we can face enlistment issues on product like ISPN
tm.suspend();
- _updateTreePath(prevRootPath, newRootPath, acl);
+ _updateTreePath(prevRootPath, newRootPath, acl);
}
catch (SystemException e)
{
LOG.warn("Cannot suspend the transaction", e);
- }
+ }
}
}
});
return;
}
- catch (Exception e)
+ catch (Exception e) //NOSONAR
{
if (LOG.isDebugEnabled())
{
@@ -1957,14 +1957,14 @@
{
MapReduceTask<CacheKey, Object, Void, Void> task =
new MapReduceTask<CacheKey, Object, Void, Void>(cache);
- task.mappedWith(new UpdateTreePathMapper(getOwnerId(), prevRootPath, newRootPath, acl))
- .reducedWith(new IdentityReducer());
+ task.mappedWith(new UpdateTreePathMapper(getOwnerId(), prevRootPath, newRootPath, acl)).reducedWith(
+ new IdentityReducer());
task.execute();
return null;
}
- });
+ });
}
-
+
/**
* {@inheritDoc}
*/
@@ -2189,7 +2189,8 @@
return;
}
Cache<CacheKey, Object> cache = dcm.getCache(CACHE_NAME);
- ISPNCacheWorkspaceStorageCache.updateTreePath(cache.getAdvancedCache().withFlags(Flag.SKIP_REMOTE_LOOKUP), ownerId, (ItemData)value, prevRootPath, newRootPath, acl);
+ ISPNCacheWorkspaceStorageCache.updateTreePath(cache.getAdvancedCache().withFlags(Flag.SKIP_REMOTE_LOOKUP),
+ ownerId, (ItemData)value, prevRootPath, newRootPath, acl);
}
}
Modified: jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services/jcr/infinispan/CacheServer.java
===================================================================
--- jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services/jcr/infinispan/CacheServer.java 2012-01-24 10:52:36 UTC (rev 5499)
+++ jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services/jcr/infinispan/CacheServer.java 2012-01-24 10:52:48 UTC (rev 5500)
@@ -42,7 +42,7 @@
{
private static final String DEFAULT_CONFIG_FILE_PATH = "/conf/cache-server-configuration.xml";
-
+
/**
* @param args
*/
@@ -52,19 +52,16 @@
if (args == null || args.length == 0)
{
configPath = DEFAULT_CONFIG_FILE_PATH;
- //NOSONAR
- System.out.println("The configuration file will be loaded from '" + DEFAULT_CONFIG_FILE_PATH + "'");
+ System.out.println("The configuration file will be loaded from '" + DEFAULT_CONFIG_FILE_PATH + "'");//NOSONAR
}
else if (args.length == 1)
{
configPath = args[0];
- //NOSONAR
- System.out.println("The configuration file will be loaded from '" + args[0] + "'");
+ System.out.println("The configuration file will be loaded from '" + args[0] + "'");//NOSONAR
}
else
{
- //NOSONAR
- System.err.println("Too many arguments, the expected syntax is: java CacheServer <configuration-file-path>");
+ System.err.println("Too many arguments, the expected syntax is: java CacheServer <configuration-file-path>");//NOSONAR
return;
}
Modified: jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services/jcr/infinispan/ISPNCacheFactory.java
===================================================================
--- jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services/jcr/infinispan/ISPNCacheFactory.java 2012-01-24 10:52:36 UTC (rev 5499)
+++ jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services/jcr/infinispan/ISPNCacheFactory.java 2012-01-24 10:52:48 UTC (rev 5500)
@@ -76,7 +76,7 @@
private final TemplateConfigurationHelper configurationHelper;
- private static final Log LOG = ExoLogger
+ private static final Log LOG = ExoLogger//NOSONAR
.getLogger("exo.jcr.component.core.impl.infinispan.v5.InfinispanCacheFactory");//NOSONAR
/**
Modified: jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services/transaction/infinispan/JBossStandaloneJTAManagerLookup.java
===================================================================
--- jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services/transaction/infinispan/JBossStandaloneJTAManagerLookup.java 2012-01-24 10:52:36 UTC (rev 5499)
+++ jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/java/org/exoplatform/services/transaction/infinispan/JBossStandaloneJTAManagerLookup.java 2012-01-24 10:52:48 UTC (rev 5500)
@@ -48,7 +48,7 @@
/**
* The logger
*/
- private static final Log LOG =
+ private static final Log LOG = //NOSONAR
ExoLogger.getLogger("exo.jcr.component.core.impl.infinispan.v5.JBossStandaloneJTAManagerLookup");//NOSONAR
private Method manager, user;
More information about the exo-jcr-commits
mailing list