Author: nextgens
Date: 2007-03-29 22:05:13 +0000 (Thu, 29 Mar 2007)
New Revision: 12435
Modified:
trunk/apps/Thaw/src/thaw/gui/IconBox.java
Log:
Thaw: trivial: spare some instantiations
Modified: trunk/apps/Thaw/src/thaw/gui/IconBox.java
===================================================================
--- trunk/apps/Thaw/src/thaw/gui/IconBox.java 2007-03-29 22:03:19 UTC (rev
12434)
+++ trunk/apps/Thaw/src/thaw/gui/IconBox.java 2007-03-29 22:05:13 UTC (rev
12435)
@@ -105,24 +105,24 @@
Class daClass;
ClassLoader classLoader;
- daClass = (new IconBox()).getClass();
+ daClass = IconBox.class;
if (daClass == null) {
- Logger.error(new IconBox(), "Icon '"+fileName+"' not
found ! (Class)");
+ Logger.error(IconBox.class, "Icon '"+fileName+"' not
found ! (Class)");
return null;
}
classLoader = daClass.getClassLoader();
if (classLoader == null) {
- Logger.error(new IconBox(), "Icon '"+fileName+"' not
found ! (ClassLoader)");
+ Logger.error(IconBox.class, "Icon '"+fileName+"' not
found ! (ClassLoader)");
return null;
}
url = classLoader.getResource(fileName);
if (url == null) {
- Logger.error(new IconBox(), "Icon '"+fileName+"' not
found ! (Resource)");
+ Logger.error(IconBox.class, "Icon '"+fileName+"' not
found ! (Resource)");
return null;
}