What is this? -- unchecked call to put(K,V)

unchecked call to put(K,V) as a member of the raw type java.util.HashMap
m.put( args[0], new Double( args[1]));
I have code that stores a string and a double value in a map like this:
String args[];
m.put( args[0], new Double( args[1]));
but I get this message when compiling with the Xlint option in javac. Why is this happening?

Yes. I got the same compile warning when I compile with jdk1.5[jdk-1_5_0_03-windows-i586-p.exe]
This:
Map map=new HashMap();
map.put("abc","def");Will get the warning like "unchecked ....."
====
This:
Map<Object,Object> map=new HashMap<Object,Object>();
map.put("abc","def");Will compile OK.
====
Is the compiler's responsible to set the default type to Object?

Similar Messages

  • "unchecked call to put(K, V)..."

    Hi, I was till recently using this passage -
    public static final Hashtable map = new Hashtable();
    static {
    map.put(TextAttribute.FONT, new Font("Serif", Font.PLAIN, 14));
    to enable me to pass map into an AttributedString constructor.
    On upgrading to j2se 1.5, I now get this warning from javac: "unchecked call to put(K, V) as a member of the raw type java.util.Hashtable"
    Can anyone explain to me what this means and what to do? (Can't find any of these words in the API).
    Thanks
    Tom

    try here:
    http://java.sun.com/j2se/1.5.0/docs/guide/language/generics.html
    In Java 1.5 you can type what goes into the collection to stay away from runtime casting errors.

  • The loading bar at the bottom of my browser has disappeared and I want to reinstall or reactivate it. How do I do this please and what is this bar called? I use the lastest version of Firefox 3.6.3 and Windows XP.

    The loading bar at the bottom of my Firefox browser has suddenly disappeared and I want to reinstall or reactivate it. How do I do this please and what is this bar called? I use the latest version of Firefox 3.6.3 and Windows XP. I have many add ons and I usually automatically install the recommended updates. This problem has never happened before and switching my browser on and off again does not solve the issue.
    == This happened ==
    Every time Firefox opened
    == I am not sure why this suddenly happened. I think it may have been after my usual updates but I am not sure if that has anything to do with it at all.

    Loading Bar? Maybe the URL/address bar where you type sites you want to go to (like www.google.com)? See Navigation Bar below. You may also need to see the first item "Can't see the Menu Bar".
    <u>'''Can't see the Menu Bar'''</u> (File, Edit, View, History, Bookmarks, Tools, Help)?
    Turning the Menu Bar on and off is a new feature in version 3.6.
    ''(Linux & OSX see: [[Menu bar is missing]] )''
    <u>''Windows'' Method 1.</u> '''''Hold down''''' the key and press the following letters in this exact order: V T M
    <u>''Windows'' Method 2.</u> Press and release the key. The Menu Bar will be displayed; then choose ~~red:V~~iew > ~~red:T~~oolbars and click on ~~red:M~~enu Bar.
    The Menu Bar should now be displayed permanently, unless you turn it off again using View > Toolbars. Check mark = displayed, NO check mark = not displayed.
    See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    <u>'''Navigation Toolbar, Bookmarks Toolbar and other Toolbars'''</u> under View > Toolbars. Clicking on one of them will place a check mark (display) or remove the check mark (not displayed).
    <u>'''To display the Status Bar'''</u>, View, then click Status bar to place a check mark (display) or remove the check mark (not displayed).
    <u>'''Full Screen mode'''</u>
    http://kb.mozillazine.org/Netbooks#Full_screen
    Also see:
    ''' [[Back and forward or other toolbar buttons are missing]]'''
    '''[[Navigation Toolbar items]]'''
    You can un-install the Mozilla ActiveX control as Firefox no longer uses it and hasn't since, as I recall, version 2. See: [[ActiveX]]
    To remove Tools > Add-ons > Extensions, click on the item, click Uninstall, click Restart Firefox in the Extensions window.
    <u>'''''Other Issues'''''</u>: ~~red:You have installed plug-ins with known security issues. You should update them immediately.~~
    <u>'''Install/Update Adobe Flash Player for Firefox (aka Shockwave Flash)'''</u>: your ver. 10.0 r45; current ver. 10.1 r53 ('''important security update 2010-06-10''')
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: '''[http://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash Updating Flash]'''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    -exit Firefox (File > Exit)
    -check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -double-click on the Adobe Flash installer you just downloaded to install/update Adobe Flash
    -when the Flash installation is complete, start Firefox, and test the Flash installation here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507&sliceId=1
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version of Flash. To install/update the IE ActiveX Adobe Flash Player, same instructions as above, except use IE to download the ActiveX Flash installer.
    *Also see: http://kb.mozillazine.org/Flash ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]

  • What is this process called in Elements?

    I purchased PE9 and inside the box cover they show that you can take two picture
    s and change the faces of a person if one looks better. What is this process called because I want to look up some tuto
    rials on how to use this great feature.
    Thank you

    Here is another approach to "open" a closed eye for example.
    Use the lasso to roughly select the good eye.
    Feather the selection a few pixels to soften the edges.
    Copy and paste the selection to a new layer.
    Flip the layer horizontally.
    Use the Move tool with arrow keys to position the copy eye over the closed eye.
    If some of the edges are visible (maybe due to not enough feathering) you can remove these with the Eraser tool and a soft brush.
    This method of course can be used to copy eyes between pictures. In this case resizing of the eye layer might be needed.
    Also it works well for things like camera flash on just one of the subject's eyeglass lens.

  • What is this phenomenon called??

    What is this phenomenon called?
    And is there a sollution for?
    We recorded a 1080i50 signal that was switched on a Black Magic ATEM switcher on a Atomos recorder.
    When importing this file in FCP all seems fine,.. but after exporting it.. these strange pictures appeare at some random moments in the export.
    Work around is to preview file in quicktime.. where this phenomenon is viewable... and then take out those frames that are corrupt.
    BR
    Sander

    Hello Tom,
    We recorded the feed in Apple Prores HD. During recording ( and live switching ) none of these phenomenon were visible. After viewing file in quicktime before editing... or after viewing FCP export in quicktime... it's visible.
    We use three cams that are set to 1080i50
    2x Sony pmw 350
    1x Sony Ex1
    Videofeeds are fed to Black Magic Design ATEM switcher. TVS.
    2x BM ATEM TVS sends feed to livestream encoder and to Atomos Ninja 2 and Atomos Samurai recorder, recording in Apple Prores HQ. ( all switchers and recorders are tested with several versions of software )
    The HDD's with the recordings are transfered to a few relative new Apple iMac's with FCP.
    Is this phenomenon also artifacts or is there an other name for it?
    I've also a movie posted with example https://vimeo.com/58436983/ and another pic:
    When connecting the two recorders to one source switcher... this phenomenon appears in both recordings...at exactely the same time.....
    Hope this info helps.... Thanks for helping me!!
    Sander

  • WHAT iS THIS EFFECT CALLED? OR HOW CAN I GET THIS EFFECT?

    WHAT'S THIS EFFECT CALLED? OR HOW CAN I GET THIS EFFECT?
    first of  all i don't know what's this kind of photo effect called, i just describe it as bright, clean and w/o lack of contrasts
    secondly, i wanna learn how to achieve this effect.....really don't know how
    need help here....
    btw i don't know where to post this post....so i just start from here  =)\

    For my part you are welcome, Lisa.
    then what about the color tone here? it's very pure and clean, a touch of blue i think, is it from the nature light or from photoshop effect?
    The colour tone is (hopefully) a result of the nature of the natural light faithfully reproduced by the high quality of the camera (and film if relevant).
    You will get quite different and sometimes rapidly changing tones of colour depending on the natural light; this is different for different times of day, different directions, different weather conditions.
    Just to mention a few comparisons, the warm light from the setting sun is quite different from the cool light from the clear bright sky through a (high) window to the north at noon, and the light of the sun can be changed immensely by the huge white (or grey) filter sometimes applied to (parts of) the sky.
    You may do many things in Photoshop, but photography is still an art form, not just cheating, at least for some.
    I believe one of the real provings of cameras/films is the ability to reproduce the delicate but profoundly different tinges in snow on a clear day.

  • What is this Symbol called and what does it mean?

    What is this symbol/icon called and what does it mean?  It goes away with it's "notification" and I would have no idea where to find it should I need to.
    Please.  And thank you.

    It did come from Apple as I had to deal with this.  But in speaking with another "Genius" I was trying to describe the symbol to him and never got an answer.

  • What is this design called?

    I apologize if this has been answered before, but I don't know what to search.
    I want to know what a design of this type is called.
    example www.hondahookup.com
    It has multiple columns that change size with the browser. It also "floats"? as in you can see the boxes slide apart slightly when the browser size is changed.
    Specifically, I'm just looking for a term or name to search so that I can figure out how to build my own.
    Optimistically, if anyone has a tutorial they can link me to (I run CS4), I would greatly appreciate it, but honestly I can deal with just what the layout is called.
    Thanks to all who respond.

    Various terms have been used over the years: liquid, fluid and elastic page design spring to mind.
    You'll find hundreds of tutorials if you search with those keywords.
    This kind of page layout was widely used a decade ago when nested tables, specified with % widths, were all the rage. CSS was in its infancy back then.
    Today's CSS driven layouts tend to lend themselves more to fixed width page layout.

  • What is this feature called?

    iTunes has this feature:
    http://i39.tinypic.com/abgj7m.jpg
    What I'd like to know is what that is called. I'm really curious and I'm unable to find out what it is called elsewhere.
    If you know what this is called, please reply.

    Thanks for your response. I managed to figure it out because of it - it's called a spectrum analyzer.

  • Can't locate a replacement part - what is this thing called exactly?

    Well, my laptop started refusing to accept a charge, and so as the last remaining battery life died out I quick turned it off and handed it to my father in law to diagnose - he's good with computers and electronics. After a few days he narrowed the problem down to what resembles a dc-in board - it wouldn't carry electricity anymore.
    Basically, I need to find a replacement for this part so I can start using my laptop again. I've scoured the internet using as many keywords as I can think of, but strangely can only find things that vaguely resemble what I need.
    Can anybody help pinpoint what this board is, so I can find a replacement? Thank you so much.
    Here is a link to a photo my husband took.
    http://img.photobucket.com/albums/v493/Sopo/IMG_3516.jpg

    Hello Marissa,
    From my research, I have come to the conclusion that the part in the picture is called a "DC-In Board". I believe that this is what it is officially called, but I am not 100% positive. I gave it my best shot considering you didn't specify the exact PowerBook model in your post. I assume that this part differers from model to model. I will be able to be more exact when I know the exact model. I hope this helps and gets you a step closer to being up and running again.
    Jason

  • What is this effect called/how can it be achieved?

    http://www.youtube.com/watch?v=AqS5SeJOrwU
    at 6:31 in this video it does it.It also does it a lot up until the 8 minute mark. I know that the video was put together with after effects. I need to know how i can do it in cs5 or at least what it is called so i can look up tutorials. Thanks

    Effects --> Time --> Echo and a million similar "accumulation" effects from third-party vendors, fancied up of course with some crazy coloring effects.
    Mylenium

  • What is this format called? How do I do it?

    Hey! I want to know how to format a site such that the content is on the middle column with a different background color as the main background, such as on bodybuilding.com
    I don't know what this type of thing is called so I couldn't search for any answers yet.
    Picture help in case I'm not making much sense:

    Hi nitro7,
    Welcome to the world of web designing. To get what you are trying to achieve, you will have to set the background color for the page (blue in this case), and then create a container DIV for the rest of the content with the background color white.
    Before you proceed,  I would suggest that you take up a tutorial on HTML and CSS. Later, use David Powers's tutorial Web page design | How to make and style a web page in Dreamweaver CC
    Thanks,
    Preran

  • What is this effect called?

    I was wondering if someone knows the name of this effect.
    http://vimeo.com/15402603
    Basically, see how throughout the entire movie there is this soft black fade in the background. Whats that called? Sometimes videos do the same thing but the surrounding halo is out of focus and inside is in focus. Anyone know the standard name of this.

    Vignetting - and it's easily acomplished by adding an adjustment layer on the top of your video, adding Exposure to the adjustment layer and then feathering an eliptical mask set to subtract. From a post earlier this morning:

  • What's this thing called?

    I want to buy this "thing", but I've no idea what it's called! I've tried Googling any number of search terms, but no luck:)
    It's basically similar to a surge protector, but it retains a few minutes charge, so in the event of a power cut your computer doesn't suddenly switch off, and you've got a few minutes to save your work and shut down properly. I've seen them, so I know they exist, but I just don't know what the proper name for them is.
    Anybody know?

    1500VA UPS from APC (RS is popular), or also CyberPower.
    http://www.amazon.com/Cyberpower-CP1500AVRLCD-UPS-Display-8-Outlet/dp/B000FBK3QK /

  • Defining when to charge the battery - what is this option called?

    Hi!
    I am owning a T500 and I can decide at which percentage my battery should start being charged and when it should end.
    Now other people are asking me if this is a particular feature of my model or if every new ThinkPad has this.
    Does anyone know the answer - is this a feature of every ThinkPad or maybe even of every new Lenovo-Laptop.
    Thanks!
    Cheers
    Dominik

    Hello mate,
    You need to switch to advanced mode to access the battery settings. After that click on the tab call battery, and there you can see a button call battery maintenance...
    Go there and you can modify what you want.
    Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information on it.
    ThinkPad T510 4313-CTO Windows 8 x64 - Intel Core i7-620M - NVIDIA NVS 3100M - 8GB RAM - 240GB SSD- Intel Centrino Ultimate-N 6300 - Gobi 2000.
    ThinkPad Helix 3697-CTO Windows 8.1 x64 - Intel Core i7-3667U - Intel HD Graphics 4000 - 8GB RAM- 256GB SSD - Intel Centrino Advanced-N 6205 - Ericsson C5621gw

Maybe you are looking for

  • I cannot install itunes on my computer

    After having itunes 7 and stupidly upgrading(IF ITS NOT BROKEN WHY FIX IT OR UPGRADE) now i cannot get itunes to install or delete the programs I deleted all the componets,Apple Mobile support ,Apple Upgrade, Quicktime,iTUNES STLL NO HELP. i HAVE BEE

  • My MacBook Pro overheats when connected to Thunderbolt Display

    I've had these since August 30 of this year.  I switch to Mac and brough home two Pro's and two Thunderbolts.  They have been doing fine, not a problem yet.  Until Friday, when mine started overheating.  My MacBook Pro Retina runs fine on it's own. 

  • Alv grid layout display in 2 pages

    Hi All, I am presently working in ALV programming. The client requierment is "GL line items and summary sheet will be listed in separate pages." i am dispalying the output using ALV grid layout display. Can you please conform that how to write logic

  • IOS 4.2.1 Bluetooth audio streaming problem

    My iPod touch paired & connect to bluetooth headset. but, every time I play a music I can only hear it for 1 second. After that? total silent. I tried forget the device and re-paired the device. But the problem still persist. Back when I used iOS 4.1

  • Shipping costs should effect at GR

    User not entered any shipping condition in PO Shipping costs automatically should trigger at GR This fright condition relavent to Shipping Vendor