BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-16-2009, 10:19 AM   #1 (permalink)
New Member
 
Join Date: Jul 2009
Model: 9000
PIN: N/A
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
Offline  
Old 07-20-2009, 06:42 AM   #2 (permalink)
Thumbs Must Hurt
 
shraddha294's Avatar
 
Join Date: Oct 2007
Location: Hyderabad
Model: 8800
PIN: N/A
Carrier: TMobile
Posts: 111
Post Thanks: 0
Thanked 0 Times in 0 Posts
Wink

Quote:
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.
Offline  
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

blackberry 3.5mm stereo Headset HDW-15766-005 for 9900 9780 9000 9700 9800 9930
$4.99
blackberry 3.5mm stereo Headset HDW-15766-005 for 9900 9780 9000 9700 9800 9930 pictureWIRELESS X-PRESS BLACKBERRY CAR CHARGER RED & SILVER UNUSED 0616
$15.0
WIRELESS X-PRESS  BLACKBERRY CAR CHARGER  RED & SILVER   UNUSED   0616 pictureRARE Blackberry RIM 950 R900M-2-PW
$9.95
RARE Blackberry RIM 950 R900M-2-PW pictureKEHE-836093002023-Izze Natural Blackberry Sparkling Juice, 12 Ounce -- 24 per c
$58.2
KEHE-836093002023-Izze Natural Blackberry Sparkling Juice, 12 Ounce -- 24 per c pictureBlackberry Infused Whisky Retractable Roll Up Banner Stand, Display 33" x 79''
$34.95
Blackberry Infused Whisky Retractable Roll Up Banner Stand, Display 33






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.