View Single Post
Old 06-27-2011, 03:57 PM   #5
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Arrow Re: how to reduce the number of classes

What you are refering to are anonymous classes. Without seeing your code it is difficult to say why they are being created. I also assume you are using Eclipse. I am unfamiliar with how Eclipse handles specific cases so someone else may have a better answere. Where I have seen anonymous classes created are situations like:

Code:
UiApplication.getUiApplication().invokeLater(new Runnable() {
    public void run() {
        // some code
    }
});
Will create an anonymous Runnable class.
__________________
My other Blackberry is a PlayBook.
Offline   Reply With Quote