BlackBerry Forums Support Community               

Closed Thread
LinkBack Thread Tools
Old 07-16-2009, 11:19 AM   #1 (permalink)
New Member
Join Date: Jul 2009
Model: 9000
Carrier: ATT
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Quick newbie question (optional methods)

Please Login to Remove!

So I have a few debug methods in a few of my classes. I don't want to get rid of them as I'd have to rewrite them to use them for future debugging. I am not calling them at the moment so I get the warnings in the compiler about them not being invoked or a member not required in class.

I don't really want to get rid of those warnings, I want to somehow define the method as an optional method. I've searched google quite a bit to find something, is there a solution to my issue?

Thanks in advance
Old 07-20-2009, 07:42 AM   #2 (permalink)
Thumbs Must Hurt
shraddha294's Avatar
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
Carrier: TMobile
Posts: 111
Post Thanks: 0
Thanked 0 Times in 0 Posts

Originally Posted by masterprompt View Post
I want to somehow define the method as an optional method.
Optional methods is unheard of...
u cannot declare any method as optional...

If you plan to use these methods in future, you may just ignore the warnings for now. Alternatively, you can also disable that warning temporarily if its troubling u.
If the warnings are on, they will keep telling if the method is not currently in use its up to you to ignore them.
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Copyright 2004-2014
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.