Should I worry about the following warning?

I have the following:
public class Record
  private RecordMetadata                metadata;
  private List<Field<? extends Object>> data;
  (snip)
  public <T> void setValue( String fieldName, T value )
    int fieldIndex = this.metadata.getFieldIndex( fieldName );
    this.data.set( fieldIndex, new Field<T>( value ) );
  public <T> T getValue( Class<T> clazz, String fieldName )
    int fieldIndex = this.metadata.getFieldIndex( fieldName );
    Field<? extends Object> field = this.data.get( fieldIndex );
    return (T) field.getValue( );
  }In the last line (return in getValue) I'm getting the following warning (as reported by Eclipse):
Type safety: The cast from capture-of ? extends Object to T is actually checking against the erased type Object
What does this exactly mean? Should I worry about it? Should I do what I'm trying to do in another way?
Thanks in advance, best regards
Jose

public <T> T getValue( Class<T> clazz, String
ng fieldName )
int fieldIndex = this.metadata.getFieldIndex(
dex( fieldName );
Field<? extends Object> field = this.data.get(
get( fieldIndex );
return (T) field.getValue( );
You are not making use of the Class object that you're passing to
getValue. You could use it to get rid of the warning:
return clazz.cast(field.getValue());

Similar Messages

  • Macbook Pro C2D 15,4" on order - Should I worry about the display?

    I have ordered the new Macbook Pro C2D 15,4" and I read the numerous threads here about the display quality. I have just selled my CD Macbook Pro 15,4" so I want to ask you all here, is there a difference between the new and the previous model, or do you think that both are grainy?
    I personally found the display of the Macbook Pro CD very good and I hope that the new is at least as good as that one.

    My advice to you is check it out before you buy it. I've gone to 4 different apple stores or resellers and all the ones I've seen on display have unevenly back lit displays. You can tell the cd from the cd2 from the lighting. Its very obvious as you take a look at them side by side. You'll notice what i mean if you look at the very bottom corners of the display. There is more light coming through than the rest of the screen and this is very annoying. There also seems to be burn marks at the very corners, they are faint and gray but also noticable. In fact there seems to be a bar of light that looks like a reflection of the macbook pro, but is actually uneven lighting all the way across the bottom. Definately bad. I went through 3 17" macbook pros cd2 at the store and all 3 of them exhibited the same uneven lighting. So then i went with a 15" but that too had the same problems. I'm going to wait it out for another month or so. I love the macbook pros, but I want to spend my money on a good product.
    macbook pro 17" cd2   Mac OS X (10.4.8)  

  • When Firefox starts I get a msg "the instruction at "0 x 000000000 referenced memory at 0 x 000000000" The memory could not be "written" click on OK to terminate program. I x out of message and firefox seems to work. Should I worry about the message?

    I don't click on OK, just x out

    You can o a malware check with a few malware scan programs.<br />
    You need to use all programs because each detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • I got chagred 1 USD while created AppleID .. Why ??.. I am worry about the security ... is this safe ..or should I raise this issue to my credit card bank ??

    I got chagred 1 USD while created AppleID .. Why ??.. I am worry about the security ... is this safe ..or should I raise this issue to my credit card bank ??

    Relax.  This is completely normal and is not unusual at all.
    It will be reversed.
    Read the following.
    iTunes Store & Mac App Store: About credit-card authorization holds

  • With the following warning "ligheroom encountered an error when reading form its preview cache and n

    with the following warning "ligheroom encountered an error when reading form its preview cache and needs to quit.  lightroom will attempt to fix this problem the next time it lanuchse "
    ligheroom progrem 5.4 64-bit is stopped
    i can't use the Lightroom Progrem
    and want to solve the problem As soon as possible

    Delete preview cache - that should solve the problem.
    It's the .lrdata folder in with your catalog, named something like "My Catalog Previews.lrdata".
    Delete entire .lrdata folder, making sure you get the one in the same folder as the catalog you're opening. Do not delete anything else, and if you have something like "My Catalog Smart Previews.lrdata" - that's not it.
    http://helpx.adobe.com/lightroom/kb/preference-file-locations-lightroom-41.html
    When Lr comes up, consider initiating whole-catalog building of standard previews (Library -> Previews menu), lest you be "forever" greeted by temporarily gray thumbnails and "loupe loading" indicator in the future..

  • HT4623 I have an IPhone4 S which when using Outlook suddenly displays the following warning: CANNOT GET MAIL.THE CONNECTION TO THE SERVER FAILED

    Hello,
    I bought a used Apple IPHONE 4S about 6 weeks ago. For all this past period, it was working beautifully. This morning, I started having poblems with connecting JUST on OUTLOOK or Hotmail and on Microsoft Exchange. All other programs, such as Gmail, Yahoo as well as other apps, such as Facebook, Whatsapp, Facetime, are ALL working properly.
    the One problem I am having is when I try to log onto my Outlook ( ex Hotmail) account, I get a window with the following warning:
    "CANNOT GET MAIL. THE CONNECTION TO THE SERVER FAILED"
    I have done everything to solve it from taking out the card to switching it off to resetting the network to deleting my account to re-starting ..NOTHING worked.
    PLEASE can you advise me what to do? The Network server was working great. So what happened and how can i fix it?
    Thank you
    Nina ...

    The issue isn't with Apple/iphone or your network.
    The issue is with Hotmail, there have been a ton of threads on this already with other user having issues.
    You'll have to wait until hotmail resolves the issue.
    link http://status.live.com/

  • If I use my BIONIC as a mobile hotspot, should I worry about malware/viruses?

    >Post will be deleted as it is duplicated in another thread. Should I worry about my phone's security when using a laptop through Mobile Hotspot?
    Thread will be locked<
    Message was edited by: Verizon Moderator

    The imac 24 can't be used as a monitor over a DVI connection or the like, Suzanne, but you may be able to achieve what you want to using "Screen Sharing" by networking the two computers. This lets your MBP effectively control what is running on the iMac.
    See HERE for the basic setup. For information about how to access the "shareable" screen from the MBP see HERE.
    One possible problem may be actually getting this set-up on the iMac if it is not already enabled, however, unless you can borrow a keyboard from someone (your password may have to be entered to enable it). You may be able to get around this, if necessary, using the "keyboard viewer" (which you can place in the menubar using System preferences > Keyboard, if you don't already have it there).
    Cheers
    Rod

  • Just removed vidx from my laptop and wondering if i should be worried about my privacy of emails, money etc?

    Just removed vidx from my laptop and wondering if i should be worried about my privacy of emails, money etc?

    jebba718 wrote:
    how'd you remove it?  i cant seem to figure out how to get rid of it.
    You could use my Adware Removal Guide.
    (Fair disclosure: The Safe Mac is my site, and contains a Donate button, so I may receive compensation for providing links to The Safe Mac. Donations are not required.)

  • I get the following: WARNING: at arch/x86/mm/ioremap.c:102 __ioremap_c

    I get the following warning when I boot in my my log..:
    WARNING: at arch/x86/mm/ioremap.c:102 __ioremap_caller+0x322/0x3a0()
    [ 55.891339] Hardware name: 428449G
    [ 55.891339] Modules linked in: rfcomm bnep nfs lockd fscache auth_rpcgss nfs_acl sunrpc ipv6 joydev cdc_ncm usbnet cdc_acm cdc_wdm mii uvcvideo videodev media v4l2_compat_ioctl32 snd_hda_codec_hdmi usbhid btusb hid bluetooth arc4 snd_hda_codec_conexant nvidia(P) coretemp vboxnetflt iwlagn vboxdrv mac80211 snd_hda_intel firewire_ohci sdhci_pci cfg80211 snd_hda_codec thinkpad_acpi firewire_core evdev iTCO_wdt snd_hwdep sdhci tpm_tis serio_raw tpm sg e1000e tpm_bios pcspkr psmouse mmc_core snd_pcm rfkill i2c_i801 crc_itu_t iTCO_vendor_support nvram ac battery snd_timer snd soundcore mei(C) thermal snd_page_alloc video wmi i2c_core intel_agp intel_gtt button acpi_cpufreq freq_table processor mperf vfat fat ext4 jbd2 crc16 ext2 mbcache ehci_hcd xhci_hcd usbcore sr_mod cdrom sd_mod ahci libahci libata scsi_mod
    [ 55.891380] Pid: 1174, comm: X Tainted: P C 3.0-ARCH #1
    [ 55.891381] Call Trace:
    [ 55.891385] [<ffffffff8105c7ef>] warn_slowpath_common+0x7f/0xc0
    [ 55.891388] [<ffffffff8105c84a>] warn_slowpath_null+0x1a/0x20
    [ 55.891389] [<ffffffff81039f22>] __ioremap_caller+0x322/0x3a0
    [ 55.891392] [<ffffffff81141a2f>] ? kfree+0x3f/0x180
    [ 55.891464] [<ffffffffa0c188d5>] ? os_map_kernel_space+0x85/0xf0 [nvidia]
    [ 55.891467] [<ffffffff81317f73>] ? pci_conf1_read+0xc3/0x120
    [ 55.891469] [<ffffffff81039fd4>] ioremap_cache+0x14/0x20
    [ 55.891515] [<ffffffffa0c188d5>] os_map_kernel_space+0x85/0xf0 [nvidia]
    [ 55.891566] [<ffffffffa0be3d57>] _nv023390rm+0xfb/0x11b [nvidia]
    [ 55.891610] [<ffffffffa05d31ce>] ? _nv025862rm+0x62/0x11b [nvidia]
    [ 55.891654] [<ffffffffa05d3320>] ? _nv022528rm+0x99/0xcb [nvidia]
    [ 55.891697] [<ffffffffa05d37b6>] ? _nv022591rm+0x58/0x9e [nvidia]
    [ 55.891740] [<ffffffffa05ce9f8>] ? _nv022548rm+0xcf/0x301 [nvidia]
    [ 55.891783] [<ffffffffa05cecd5>] ? _nv022598rm+0xab/0x174 [nvidia]
    [ 55.891826] [<ffffffffa05cedee>] ? _nv022547rm+0x50/0x5d [nvidia]
    [ 55.891868] [<ffffffffa05d5a5d>] ? _nv022539rm+0x6e/0x78 [nvidia]
    [ 55.891917] [<ffffffffa0bea134>] ? _nv019309rm+0x69/0x121 [nvidia]
    [ 55.891964] [<ffffffffa0bea0b2>] ? _nv019323rm+0xe8/0x101 [nvidia]
    [ 55.892014] [<ffffffffa0612421>] ? _nv004632rm+0x68/0x1f4 [nvidia]
    [ 55.892110] [<ffffffffa09b0387>] ? _nv015073rm+0x176/0x4c3 [nvidia]
    [ 55.892203] [<ffffffffa09aeeeb>] ? _nv015366rm+0xe9/0x165 [nvidia]
    [ 55.892243] [<ffffffffa0599748>] ? _nv015546rm+0xd/0x12 [nvidia]
    [ 55.892291] [<ffffffffa0be9e79>] ? _nv002297rm+0x19d/0x28a [nvidia]
    [ 55.892338] [<ffffffffa0beaee8>] ? _nv002291rm+0x4a5/0x684 [nvidia]
    [ 55.892385] [<ffffffffa0bf1c84>] ? rm_init_adapter+0x9e/0x1b6 [nvidia]
    [ 55.892387] [<ffffffff810c0f17>] ? __setup_irq+0x2e7/0x3f0
    [ 55.892432] [<ffffffffa0c116e4>] ? nv_kern_open+0x414/0x7a0 [nvidia]
    [ 55.892436] [<ffffffff8115bbab>] ? chrdev_open+0x1bb/0x2d0
    [ 55.892438] [<ffffffff811557ab>] ? __dentry_open+0x16b/0x390
    [ 55.892440] [<ffffffff8115b9f0>] ? cdev_put+0x30/0x30
    [ 55.892449] [<ffffffff81156c81>] ? nameidata_to_filp+0x71/0x80
    [ 55.892451] [<ffffffff81165aac>] ? do_last+0x26c/0x960
    [ 55.892459] [<ffffffff81166f7b>] ? path_openat+0xcb/0x3c0
    [ 55.892462] [<ffffffff81172b18>] ? setattr_copy+0xa8/0x140
    [ 55.892464] [<ffffffff811672b2>] ? do_filp_open+0x42/0xa0
    [ 55.892467] [<ffffffff81173afc>] ? alloc_fd+0xec/0x140
    [ 55.892469] [<ffffffff81156d87>] ? do_sys_open+0xf7/0x1d0
    [ 55.892471] [<ffffffff811624d2>] ? path_put+0x22/0x30
    [ 55.892474] [<ffffffff81156e80>] ? sys_open+0x20/0x30
    [ 55.892485] [<ffffffff813f4a42>] ? system_call_fastpath+0x16/0x1b
    Not sure what causes it?
    Regards,
    BTJ
    Last edited by bjorntj (2011-09-13 07:09:24)

    I looked for the code button but didn't find any but I see that I should just insert it manually... (A)
    Yes, the system boots ok and everything seems to work as it should...
    btw, the line before this is :
    NetworkManager[975]: <info> (wlan0): bringing up device.
    and the line after is:
    NetworkManager[975]: <info> (wlan0): preparing device.
    so it looks connected to enabling wlan but I am no expert... :-|
    BTJ
    Last edited by bjorntj (2011-09-13 07:12:59)

  • Since uninstalling / reinstalling iTunes I am not able to sync iPhotos with my Apple TV with the following warning message stating that this is due to a 'problem on your computer. The disk could not be read from or written to'. Please help!

    Since uninstalling / reinstalling iTunes I am not able to sync iPhotos with my Apple TV with the following warning message stating that this is due to a 'problem on your computer. The disk could not be read from or written to'. Please help!

    Welcome to Apple Discussions!
    Is all the software on your computer up to date?
    iTunes
    iPod Updater
    Also, try The Five R's
    btabz

  • Im worried about the battery percentage while play a game on my iphone 4s.so that,i decided to play a games and charging at the same time.is it problem on my battery ? im to worried.please give a conclusion.

    Im too worried about the battery percentage while playing a game on my iphone 4s.so that,i decided to play a games and charging at the same time.im too worried for my battery problem on the future.please give a conclusion.

    It is perfectly fine to use the phone while charging it.

  • What is the SAFEST SEQUENCE to convert from a Outlook/iPad/iPhone synced with MobileMe to syncing with iCloud (I have 10 years of calendar diary events and 3000 contacts) - I am worried about the data issues that have been posted about iCloud.

    What is the SAFEST SEQUENCE to convert from a Outlook/iPad/iPhone synced with MobileMe to syncing with iCloud (I have 10 years of calendar diary events and 3000 contacts) - I am worried about the data issues that have been posted about iCloud.
    This has worked fine with MobileMe with only a couple of minor glitches in the past.
    Any experience doing this the "right" way?

    The warranty entitles you to complimentary phone support for the first 90 days of ownership.

  • I am not able to open my Photoshop CS5 files due to the following warning, "Could not complete your

    I am not able to open my Photoshop CS5 files due to the following warning, "Could not complete your request because an unexpected end-of-file was encountered". Please help!

    That could be caused by truly damaged file/s.
    What format?
    How did you create or get the file/s?

  • Hi, I am worried about the old Iphones, couldn't we change them for another version? I have my Iphone 3, love it, but now I am feeling out of the picture. The phone works perfect...Is there any plan to do so? like recycling?

    I am worried about the old Iphones, couldn't we change them for another version? I have my Iphone 3, love it, but now I am feeling out of the picture. The phone works perfect...Is there any plan to do so? like recycling?

    You can purchase any model (currently sold) iPhone that you desire.
    What's the big deal or so complicated about figuring that out?

  • Every time I start up Firefox, I receive the following warning/message. Java Script Application. Type Error: Components.classes(cid) is undefined. How do I correct this?

    Question
    Every time I start up Firefox, I receive the following warning/message. Java Script Application. Type Error: Components.classes(cid) is undefined. How do I correct this?

    Do you see a Last 7 days folder?
    If not then older history has been deleted.<br />
    Firefox 5 doesn't use a time limit to store history like previous Firefox 3 versions did.

Maybe you are looking for

  • Bad adapter engine configuration - File Sender scenery doesn't work

    In file sender scenery, the adapter doesnu2019t pass any message to the Integration Engine. When I take a look to the communication channel monitoring it shows the channel with status OK (Green). But when I look into the audit log of the incoming mes

  • Globally turn off low-level diagnostic level

    Greetings, We went live on production with R12.1.1 last week. When we log in, we get the message: " Low-level diagnostic logging is turned on. This may temporarily reduce performance." How does one turn this off globally? I have found several notes a

  • How to set posting block in BIlling Doc type configuration

    Hi All, Can anybody tell me, How to set posting block in BIlling Doc type configuration.I need to do this to seperate billing creation from from FI/CO posting in my company. We right now run have the batch jobs which run VF06 & VFX3. Appreciate any i

  • Columns

    I am using one of the templates, Darkroom, Podcast. I would like to have a two column text table. Is that possible? I manually did one but only the template text box show up in podcast notes.

  • IPhone 4S not receiving some SMS since 5.0.1 update

    Hello, I've bought an iPhone 4S from Telus back in October. At the beginning, I was having a lot of trouble receiving SMS but after a while the problem disappeared. However, since I updated the phone to 5.0.1, the problem is back. I can have a conver