[jboss-svn-commits] JBoss Common SVN: r2686 - common-core/trunk/src/main/java/org/jboss/util/collection.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Dec 17 18:04:11 EST 2007
Author: scott.stark at jboss.org
Date: 2007-12-17 18:04:11 -0500 (Mon, 17 Dec 2007)
New Revision: 2686
Modified:
common-core/trunk/src/main/java/org/jboss/util/collection/WeakTypeCache.java
Log:
Make all private methods protected
Modified: common-core/trunk/src/main/java/org/jboss/util/collection/WeakTypeCache.java
===================================================================
--- common-core/trunk/src/main/java/org/jboss/util/collection/WeakTypeCache.java 2007-12-17 22:44:09 UTC (rev 2685)
+++ common-core/trunk/src/main/java/org/jboss/util/collection/WeakTypeCache.java 2007-12-17 23:04:11 UTC (rev 2686)
@@ -41,6 +41,7 @@
* generate - fills in the details
*
* @param <T> the cached type
+ * @author Scott.Stark at jboss.org
* @author <a href="mailto:adrian at jboss.org">Adrian Brock</a>
*/
public abstract class WeakTypeCache<T>
@@ -129,7 +130,7 @@
/**
* Get the information for a parameterized type
*
- * @param type the paremeterized type
+ * @param type the parameterized type
* @return the info
*/
protected T getParameterizedType(ParameterizedType type)
@@ -194,7 +195,7 @@
* @param type the type
* @return the value
*/
- private T peek(ParameterizedType type)
+ protected T peek(ParameterizedType type)
{
Class<?> rawType = (Class<?>) type.getRawType();
Map<String, T> classLoaderCache = getClassLoaderCache(rawType.getClassLoader());
@@ -211,7 +212,7 @@
* @param type the type
* @param result the value
*/
- private void put(ParameterizedType type, T result)
+ protected void put(ParameterizedType type, T result)
{
Class<?> rawType = (Class<?>) type.getRawType();
Map<String, T> classLoaderCache = getClassLoaderCache(rawType.getClassLoader());
@@ -239,7 +240,7 @@
// Instantiate
result = instantiate(clazz);
- // Put the perlimanary result into the cache
+ // Put the preliminary result into the cache
put(clazz, result);
// Generate the details
@@ -254,7 +255,7 @@
* @param clazz the class
* @return the value
*/
- private T peek(Class<?> clazz)
+ protected T peek(Class<?> clazz)
{
Map<String, T> classLoaderCache = getClassLoaderCache(clazz.getClassLoader());
@@ -270,7 +271,7 @@
* @param clazz the class
* @param result the value
*/
- private void put(Class<?> clazz, T result)
+ protected void put(Class<?> clazz, T result)
{
Map<String, T> classLoaderCache = getClassLoaderCache(clazz.getClassLoader());
@@ -286,7 +287,7 @@
* @param cl the classloader
* @return the map
*/
- private Map<String, T> getClassLoaderCache(ClassLoader cl)
+ protected Map<String, T> getClassLoaderCache(ClassLoader cl)
{
synchronized (cache)
{
More information about the jboss-svn-commits
mailing list