[Fb-contrib-commit] SF.net SVN: fb-contrib: [796] trunk/fb-contrib/src/com/mebigfatguy/ fbcontrib/
Brought to you by:
dbrosius
From: <dbr...@us...> - 2007-01-28 20:53:12
|
Revision: 796 http://svn.sourceforge.net/fb-contrib/?rev=796&view=rev Author: dbrosius Date: 2007-01-28 12:53:12 -0800 (Sun, 28 Jan 2007) Log Message: ----------- GC fixes Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UnrelatedReturnValues.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UnrelatedReturnValues.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UnrelatedReturnValues.java 2007-01-28 20:49:56 UTC (rev 795) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UnrelatedReturnValues.java 2007-01-28 20:53:12 UTC (rev 796) @@ -165,12 +165,15 @@ */ public JavaClass findCommonType(Set<JavaClass> classes) throws ClassNotFoundException { Set<JavaClass> possibleCommonTypes = new HashSet<JavaClass>(); - classes.remove("java/lang/Object"); + boolean populate = true; for (JavaClass cls : classes) { - if (cls == null) { //array + if (cls == null) //array return null; - } + + if ("java/lang/Object".equals(cls.getClassName())) + continue; + JavaClass[] infs = cls.getAllInterfaces(); JavaClass[] supers = cls.getSuperClasses(); if (populate) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |