JDK 6: Generics: List.add() question - keep getting unchecked call warning.

JDK 6
Generics
private TreeNode transactionTreeData;
transactionTreeData.getChildren().add(moduleData);1. transactionTreeData is a TreeNode.
2. the method getChildren() returns a java.util.List
3. the method add() is from the Collection interface.
I keep returning the warning message:
"unchecked call to add(E) as a member of the raw type java.util.List"
I understand what this means, but I am having problems rewriting these lines correctly to remove the warning.
I've tried:
private TreeNode transactionTreeData;
List<TreeNode> treeList = transactionTreeData.getChildren();
treeList.add(moduleData);But I keep returning the same warning message. I guess what is throwing me off is how to I properly add the generic statements when the List is return from a method (getChilden in this example)?
Thanks,
--Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

This is actually JSF - MyFaces Tomahawk to be exact, my mistake for not adding that in my original thread.
I am dealing with the compiled class:
package org.apache.myfaces.custom.tree2;
public interface TreeNode extends java.io.Serializable {  
     java.util.List getChildren();
}TreeNode.getChildren return a raw List as you can see, no doubt...
Thanks,
--Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • I downloaded songs to my phone at xmas and when i plugged in to my laptop it wiped the phone of new purchases when i try and download them to my computer in itunes via previous purchesses it wont load the list and i keep getting error 10053 can any1 help

    i downloaded songs to my phone at xmas and when i plugged in to my laptop it wiped the phone of new purchases when i try and download them to my computer in itunes via previous purchesses it wont load the list and i keep getting error 10053 can any1 help

    Syncing shouldn't trouch you photos unless you have photos in a Photo Library album.  These would be photos that were synced to your phone from your computer.  If you do have any, you'll need to use an app like PhotoSync to transfer them to your computer prior to syncing.
    If you prefer to backup your camera roll photos prior to syncing, open iTunes and go to Preferences>Devices and check "Prevent...from syncing automatically".  Then connect your phone to your computer and import them as explained here: http://support.apple.com/kb/HT4083.
    Then, to minimize data loss, follow the steps in this user tip: https://discussions.apple.com/docs/DOC-3141.  To follow the steps, first open iTunes and go to View>Show Sidebar.  Also, Transfer Purchases is now located in File>Devices.

  • Keep getting missed calls/missed group calls

    Something really strange has been happening for the past week or so. I keep getting missed calls/group calls from "Bastian" and "Anonymous", none of these people are on my contact list and my iphone never rings when they try and call me. I just get a notification to say "missed call". The strange thing is when I swipe the notification to check my skype history none of these calls exist. There is never a missed call on skype for desktop either. On my desktop I have my privacy set to "only allow contacts to call me". Please explain what is going on with these ghost calls and how I can prevent this?

    Hi, I've got the same problem. Tried everything including contacting the person and asking to leave me alone. Nothing seems to work. Hopefully someone knows the solution

  • Sync contacts and calendar options keep getting unchecked

    The options to sync my Outlook contacts and calendar keep getting unchecked each time I restart iTunes. When I recheck them and attempt to sync, I receive a message stating that
    "The information on the iPhone is synced with another user account. Do you want to sync this iPhone with the information from this user account instead"
    It then asks if I want to "Merge Info" or "Replace Info". I'm not sure how to proceed, since I don't want to lose any data or end up with a bunch of duplicates.
    How can I stop this from happening? Any ideas?
    I truly appreciate your assistance. Thanks.
    Mike
    Message was edited by: moznmar

    Sounds like you sync your phone between two different computers? If this is the case, the options unchecking themselves seems to be an intentional thing by Apple, I'm thinking to prevent an accidental "oops" overwrite of information if auto-sync is active.
    You can choose the "merge" option and everything on your phone (contacts and calendars, but NOT music) will be merged with everything on your computer - this is, everything will end up in both places.
    You can only sync music with one computer, however, so make sure you keep the music options unchecked on the computer you don't sync music with.
    -SB

  • Every time I launch the browser the popup blocker option is unchecked. Why does the pop up blocker keep getting unchecked every time browser is launched?

    Every time I launch the browser the popup blocker option is unchecked. Why does the pop up blocker keep getting unchecked every time browser is launched?

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Java Plug-in 1.6.0_05 for Netscape Navigator (DLL Helper)
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)

  • Microphone +20 Boost keeps gets unchecked after rebooting pc..

    Everytime I reboot the mic boost keeps getting unchecked. I have the latest drivers for X-Fi and Vista 64 SP. Please help.......very annoying!

    But, there is a catch : if You're using PC's case front panel connectors for headphones(for sure Audigy, don't know with X-Fi, but probably the same result) and You'll prevent cthelper from starting, it will disable autodetection of headphones by Your card.
    It was so in my case.
    However, I confirm - removing cthelper from Your startup really helps Your Mic

  • Question: Keep getting "Renew Subscription" message

    I purchased the Creative Cloud educator package, so I am charged monthly access for the entire year. I am able to open Photoshop just fine, but when I try to open Illustrator, I keep getting a pop-up that says, "Renew Your Subscription." I follow the link to the subscription manager, but the information there just tells me that Photoshop and Illustrator are updated.

    Next to 'Renew your subscription', there should be an option to click on 'License this software', please sign in with your Adobe id & password with which you purchased CCM
    If you still receive a dialog box stating 'Renew your subscription', please login to https://creative.adobe.com/ and sign in with Adobe id & password and update Adobe application manager (AAM).
    Thanks & Regards,
    Rashish Gupta

  • When using Craigslist I keep getting this error: Warning! Domain mapping upgrade for this domain not found. Nothing I do works to fix this.

    When I use Craigslist, my personal list of things being sold, and I try and renew my listings, I periodically get this: "Warning! Domain mapping upgrade for this domain not found. Please log in and go to the Domains Upgrades page of your blog to use this domain." Usually rebooting my computer makes it go away for a short time, but today that isn't working and following the commands on the warning doesn't work either...is this truly a firefox issue? How do I fix it.

    Clear the cache and the cookies from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"

  • My parents keep getting collection calls for my exes bill

    I would like to provide you with his new contact information. The previous account was listed as Madison County Glassworks in Canton, Mississippi. That business was forced to shutdown by the internal revenue because of years of unpaid taxes. The main phone number associated with the account was ****. His new contact information is:  ***
    New Phone number is ***
    Thank you. My parents are almost 80 years old and do not want to be contacted by his creditors.
    [Edited for privacy-please do not post personal or unique information such as but not limited to full names, employee ID numbers, email addresses, phone numbers, account numbers, etc.]

    
    This is a user helping user forum, thus the reason for no personal information allowed and your post here will not get the response that you need.
    You will need to call AT&T or send a private message to  with your contact information and someone will get in touch with you.
    Chances are, that this is a collection agency and they are calling whatever contact information they have. You may need to contact the collection agency directly and advise them of the contact information.

  • I keep getting blocked calls can I block them? So is my kid?

    can someone please explain how too?

    anduwonder, I understand how annoying it can be to receive unwanted phone calls. There are a few things you can do to stop or prevent blocked and restricted calls. I have listed some options listed below for your convenience.
    You can register their mobile number on the Do Not Call List to stop unwanted calls, email , survey's, texts, and mail. You can either call  1888-382-1222 (TTY 866-290-4236) to register. Or go online to https://www.donotcall.gov/
    Ignore the call (if the number is known) and let it go to voice mail.
    Add usage controls ($4.99 per month) to block incoming and outgoing calls and text messages with up to 20 numbers, restricted numbers and provide other management and control features. https://wbillpay.verizonwireless.com/vzw/nos/uc/uc_verizon_safeguards_logout.jsp
    Change your mobile number. 
    Contact the proper law enforcement agency for threatening or harassing personal phone calls.

  • Keep getting a restart warning!

    On a 1.5GB MBP, I have recently got the "You need to restart your computer'  warning which comes on a message with 5 languages on a slowly dropping tinted backdrop over the whole screen. I think it happened while on 10.5.8 once yesterday, and ironically I ignored it as have done a complete erase and clean instll of 10.6, but it's since happened about 5 times now, when I click a link or go to play a movie.
    A quick search said a kernal panic, is this right and what can resolve it or is it time put it to rest?

    my splitty is a 1962 wrote:
    A quick search said a kernal panic, is this right and what can resolve it or is it time put it to rest?
    KP's can be caused by software, like OS X itself or third party programs, or a hardware problem.
    You have to do a process of elimination to find out what's the cause.
    my splitty is a 1962 wrote:
    ....have done a complete erase and clean instll of 10.6...
    That's OS X 10.6 Snow Leopard correct?
    Because OS X Leopard 10.5 is obsolete.
    OS X 10.4/10.5 need to upgrade, 10.6.8 ok still
    ...as have done a complete erase and clean instll of 10.6, but it's since happened about 5 times now, when I click a link or go to play a movie.
    Did you use Software Update to get current to 10.6.8?
    If so, then backup your files off the machine to a external storage drive (not only TimeMachine!!!) disconnect.
    Most commonly used backup methods
    Erase and install Snow Leopard by holding the c key down and booting from the 10.6 disk.
    This time use the Disk Utility > Erase with Zero option on the boot drive, then quit and install OS X 10.6 (this will take a lot longer, but map off bad areas on the drive)
    Reboot and setup, Software Update to 10.6.8 under the Apple menu and reboot the computer again.
    How to erase and install Snow Leopard 10.6
    Don't restore any programs (expecially MacKeeper or anti-virus as they are not needed) or files, use the computer and see if your problems return. Install one program at a time and test.
    Run a #3 Hardware Test.
    ..Step by Step to fix your Mac
    1.5GB of RAM isn't very much, I don't know your model of Mac but you can use the free MacTracker to find out how much RAM your machine can support.
    Another possible problem with kp's is a overheating machine, the exhaust ports get clogged and as you use the machine it overheats and kp's.
    Use the Apple menu > About this Mac > more infor and get the Model identifier and state that here or look it up in Mactracker.
    If your machine is over 5 years old, it might be time for a new one, all depends upon the wear and tear on it.

  • My Iphone 4 keeps getting failed calls

    Good morning.
    I can´t get a single call to work on my iphone 4. There´s plenty of signal, but when I try to make a call, the call is terminated and the "Call failed" message is displayed.
    Reading some of the forums online, I managed to make a call when I turn off my 3G network.
    As soon I turn 3G back on, I can´t get a single call to work.
    So, to sum up, I bought a really good looking phone that won´t work with 3G ?
    And, by the way, I could use some work on my country´s website support, where it offers only the "Iphone Assistant".
    Thank you.

    Me too
    other reports on the message board here
    Help!!!

  • I keep getting an error warning pop-up message saying "uninstal set" which will clear when acknowledged but pops-up again with any change to the screen.

    When I upgraded to 4.0 I started getting an error message pop-up when I log on saying "uninstal set". I can acknowledge and clear it but it pops-up again whenever the screen changes. I have no idea what I need to "uninstal". If there is any more information needed please e-mail me.

    When I upgraded to 4.0 I started getting an error message pop-up when I log on saying "uninstal set". I can acknowledge and clear it but it pops-up again whenever the screen changes. I have no idea what I need to "uninstal". If there is any more information needed please e-mail me.

  • I keep getting a flag warning me that someone is trying to install an insecure update.

    this has been happening over the past month or so.

    It's a known bug, see this discussion: http://forums.mozillazine.org/viewtopic.php?f=38&t=2182955
    Reinstalling the latest Firefox should take care of it. Get it from http://www.getfirefox.com

  • I keep getting something called error 50 when I am trying to buy some music

    I need help regarding somethibg called error 50. I is stoping me buying music from itunes

    Check this Apple document out -> iTunes Store: "Error (-50)" when downloading purchased content
    Try reconfiguring the security software on your computer.
    You will need to configure the software to allow the following domains to send and receive data from the Internet.
    itunes.apple.com
    ax.itunes.apple.com
    albert.apple.com
    gs.apple.com

Maybe you are looking for

  • BPM Error in publishing webservice in service registry

    hi, i am getting following error when i try to publish webservice wsdl file in service registry. please let me know do i need to do any settings in nwa com.sap.esi.uddi.sr.api.exceptions.SRExceptionerror code: null detail message: com.sap.esi.uddi.sr

  • Creating Database Directory

    Hi Im unable to create a database directory to save my cubes in EIF file format. Should we create a database directory for each user or can create one and share it to many users? if so, then is there any formalities like providing grants to other use

  • Setting Qos for the Cisco C20plus codec endpoints.

    My company has implemented a cisco video conferencing system using the Cisco C20plus codecs as H323 endpoints. We currently utilise the Optus evolve network (MPLS) for our WAN Our network WAN utilises Qos per VLAN settings. For example, phones are in

  • Mouse slow after sleep

    Hello I have a 2009 2.8ghz IMAC with 2gb of RAM running 10.5.8 OS. The mac iteself seems to be of good performance generally, but after coming out of sleep mode, more and more frequently the mouse pointer performance is slow, not reponding quickly to

  • Using a localization in a different country

    Hi experts, I am trying to implement EA-PS (Public Sector) to a country which doesn't have any localization. However,  knowing that are several similarities (legislation, reporting, procedures,...) with this one (LOCPTFM – Portugal), is it possible t