He,
Thanks for testing it.
I did some more tests and noticed the following:
--- In the above example, the method FactoryLogger.getLogger("BLA")
returns null. If this method returns some Logger object on which I set
handler (just a setter that I call on the newly created object),
neither the field, or variable isn't removed (I am not using getClass
().getName() in this test). This is strange as the field/variable is
never used in the code so it should always be removed, no mather what
his value is. I noticed that when I return a new Logger instance and
don't set the handler (comment the if statement below) it will be
removed however.
So the Factory method looks like this:
public static method getLogger(String name) {
Logger logger = new Logger(name);
if (handler != null) {
logger.setHandler(handler);
}
}
-- My inner Enumeration class called DebugId isn't removed when it's
not used.
I use a Enum DebugId "class" to assign debugId's to the widgets (the
UIObject.ensureDebugId() functionality). When I indicate in the gwt
xml that the debug id's shouldn't be set, it will remove the usage of
the DebugId enum as expected, but does leave this Enum class in the
final javascript while it's not referenced anymore.
Shouldn't it remove this Enum class ?
I will change it to constants string value's... I suppose it should be
removed then.
BTW: the above was all tested against 1.5.2.
-- Ed
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---