You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/04/04 20:45:36 UTC
svn commit: r1088713 -
/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/EnvironmentCache.java
Author: simonetripodi
Date: Mon Apr 4 18:45:36 2011
New Revision: 1088713
URL: http://svn.apache.org/viewvc?rev=1088713&view=rev
Log:
fixed checkstyle violations
Modified:
commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/EnvironmentCache.java
Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/EnvironmentCache.java
URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/EnvironmentCache.java?rev=1088713&r1=1088712&r2=1088713&view=diff
==============================================================================
--- commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/EnvironmentCache.java (original)
+++ commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/tools/EnvironmentCache.java Mon Apr 4 18:45:36 2011
@@ -44,12 +44,12 @@ import org.apache.commons.discovery.jdk.
public class EnvironmentCache {
/**
* Allows null key, important as default groupContext is null.
- *
+ *
* We will manage synchronization directly, so all caches are implemented
* as HashMap (unsynchronized).
- *
*/
- private static final Map<ClassLoader, Map<String, Object>> root_cache = new HashMap<ClassLoader, Map<String, Object>>();
+ private static final Map<ClassLoader, Map<String, Object>> root_cache =
+ new HashMap<ClassLoader, Map<String, Object>>();
/**
* Initial hash size for SPI's, default just seem TO big today..
@@ -58,6 +58,9 @@ public class EnvironmentCache {
/**
* Get object keyed by classLoader.
+ *
+ * @param classLoader The class loader key
+ * @return The SPI name/instance cache
*/
public static synchronized Map<String, Object> get(ClassLoader classLoader)
{
@@ -70,6 +73,9 @@ public class EnvironmentCache {
/**
* Put service keyed by spi & classLoader.
+ *
+ * @param classLoader The class loader key
+ * @param spis The SPI name/instance cache
*/
public static synchronized void put(ClassLoader classLoader, Map<String, Object> spis)
{
@@ -110,6 +116,8 @@ public class EnvironmentCache {
* instance associated with the current thread context class loader.
* If the SPI instance implements <code>Service</code>, then call
* <code>release()</code>.
+ *
+ * @param classLoader The class loader key
*/
public static synchronized void release(ClassLoader classLoader) {
/**