[Red5commits] [2083] removed method cache

jbauch luke at codegent.com
Tue May 29 08:10:09 EDT 2007


removed method cache


Timestamp: 05/29/07 07:09:39 EST (less than one hour ago) 
Change: 2083 
Author: jbauch

Files (see diff or trac for details): 
java/server/branches/joachim_heapmem_fixes/src/org/red5/server/service/ConversionUtils.java


Trac: http://mirror1.cvsdude.com/trac/osflash/red5/changeset/2083

Index: /java/server/branches/joachim_heapmem_fixes/src/org/red5/server/service/ConversionUtils.java
===================================================================
--- /java/server/branches/joachim_heapmem_fixes/src/org/red5/server/service/ConversionUtils.java (revision 1428)
+++ /java/server/branches/joachim_heapmem_fixes/src/org/red5/server/service/ConversionUtils.java (revision 2083)
@@ -87,7 +87,4 @@
 	/** Default number format */
 	private static NumberFormat NUMBER_FORMAT = NumberFormat.getInstance();
-	
-	/** Cache methods of a class. */
-	private static Map<String, Method[]> classMethods = new HashMap<String, Method[]>();
 	
 	static
@@ -196,9 +193,5 @@
 		LinkedList list = new LinkedList();
 		Class klass = object.getClass();
-		Method[] methods = classMethods.get(klass.getCanonicalName());
-		if (methods == null) {
-			methods = klass.getMethods();
-			classMethods.put(klass.getCanonicalName(), methods);
-		}
+		Method[] methods = klass.getMethods();
 		for(int i=0; i<methods.length; i++){
 			Method m = methods[i];


Note:
Diffs are chopped if more than 25k.
This is to get past the limit on the mailing list.



More information about the Red5commits mailing list