Problem with Warning message

I use TableSorter from java web and when I run it gave me these warning. How can I fix this thank heaps.
C:\Project>javac -Xlint *.java
TableSorter.java:76: warning: [unchecked] unchecked call to compareTo(T) as a member of the raw type java.lang.Comparable
return ((Comparable) o1).compareTo(o2);
^
TableSorter.java:185: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
sortingColumns.add(new Directive(column, status));
^
TableSorter.java:207: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Map
columnComparators.put(type, comparator);
^
TableSorter.java:312: warning: [unchecked] unchecked call to compare(T,T) as a member of the raw type java.util.Comparator
comparison = getComparator(column).compare(o1, o2);
^
4 warnings
Appreciate
Love

I am still relatively new to java and have a similar issue. I wanted to leverage Vector to create a self-sorting list (imposing a specific object type in the process).
public class FooList extends Vector {
    public boolean add(FooNode node){
        boolean result = true;
        int iInsertionPoint = 0, iListLength = 0;
        iListLength = this.size();
        switch(MyIndexType){
            case IndexByDouble:
                iInsertionPoint = find(node.lfKey);
                break;
            case IndexByLongInt:
                iInsertionPoint = find(node.iKey);
                break;
            case IndexByString:
                iInsertionPoint = find(node.sKey);
                break;
            default:
                result = false;
        } // switch
        if(iInsertionPoint >= iListLength)
            addElement(node);
        else
            add(iInsertionPoint, node);
        return result;
    } // FooList.add()
} // class FooListthe two add calls are methods inherited from Vector and produce the following warnings:
Compiling 1 source file to ...\build\classes
...\util\FooList.java:75: warning: [unchecked] unchecked call to addElement(E) as a member of the raw type java.util.Vector
            addElement(node);
...\util\FooList.java:77: warning: [unchecked] unchecked call to add(int,E) as a member of the raw type java.util.Vector
            add(iInsertionPoint, node);
2 warningsEspecially with my novice status, I really dislike warnings. Can anyone provide any suggestions on how to do this better or at least eliminate the warnings?

Similar Messages

  • Problem with Warning Message in Financial Transactions eg. F-02

    Hello Experts,
    I have implemented a BTE - SAMPLE_INTERFACE_00001025 as a Z_SAMPLE_INTERFACE_00001025 for Account related transactions say for eg. F-02.
    I had to implement 2 scenarios :
    1)     In which system should display Error Message and stop the user to post FI transaction.
    2)     In which system displays a Warning message but allows the user to continue with the posting of FI transaction.
    The Error message worked successfully as it halted the transaction. But the warning message is not appearing. System is directly posting the FI transaction without showing any warning message.
    I also tried using a status message, but it did not work. Neither did Information message work.
    Here is what I have used,
    I have created a Message class zbudget in which I have specified the messages.
    Message E000(zbudget) with var1 var2 var3. ............. This is working successfully.
    Message W000(zbudget) with var1 var2 var3.............. This has failed.
    Can you please help me out in this.

    Yes, you are correct Deepak.
    The warning message is getting overwritten by the final message "Document Number XXXX is posted in company code YYY".
    Is there any way to display this warning message for some time limit. I tried to use Wait for '2' seconds. But this also did not work.
    Please help me out as I am not getting any workaround for this problem.
    Thanks,
    Danish.

  • I have two Iphones with different email addresses sharing one Apple ID. Will that cause problems with using messaging and FaceTime?

    I have two Iphones 5 with different email addresses sharing one Apple ID account.Both are using IOS 8.
    I would like to set up a new Apple Id for one of the phones and remove it from the old account.
    If I do that, can I move all of the purchased apps and songs to the new Apple account?
    Also, will sharing one Apple ID account with two devices cause problems with using messaging and FaceTime?

    Sharing an iCloud account between two devices can be done without causing issues with iMessage and FaceTime, just go into Settings for each of these functions and designate separate points of contact (i.e. phone number only, or phone number and unique email address).  While that works, you'll then face the problem where a phone call to one iPhone will ring both if on the same Wi-Fi network -- but again, that can be avoided by changing each phone's settings.
    Rather than do all that, don't fight it -- use separate IDs for iCloud.  You can still use a common ID for iTunes purchases (the ID for purchases and iCloud do not have to be the same) or you can use Family Sharing to share purchases from a primary Apple account.

  • Problem with Nokia Messaging on my N97 (V22)

    Since afew weeks I have a strange problem with Nokia Messaging on my N97.
    I receive emails using Nokia Messaging (V10.2.26) with a date shown incorrect as 01.01.0000 and the email then can’t be opened/read.
    This happens either on 3G connection as well as WLAN and it seems to be by random, not only HTML-emails or emails with text only.
    I have uninstalled Nokia messaging already and reinstalled V10.1.24 but the problem still remains.
    Is there any idea how to fix this issue because it is quite annoying and I can’t use the full functionality of my cell phone?

    millic wrote:
    ceroberts75,  I remember from your other posts somehow server thinks you already have an account with the email you are trying to configure and you/nokia support is not able to get access to it. Different people have resolved this issue in different ways. For me it was just another way. Thought it might help someone.
    absolutely m8.  thats why i gave you a kudos.
    the challenge is that NM has been unruly as of late...and believe when i say that i have literally been on the phone teching nokias support up to tier 2 and creating, canceling, trying new acounts with different email, different ways of creating them, with wifi, gprs...and praying for hours accross mutliple phone calls
    but to no avail, are the devices we are using connecting and syncing...even with thier n900 specialist which i had to help him!   lmao. 
    another option for a solution is alwayhs welcome as there are more then one way to skin a cat.
    i hope it works for him and others as i kno9w thesome that are just giving up on it.

  • Problem with instant message in clustered environment

    Hello, I have some problem with Instant Message service.
    We need to use it in our Production Environment (a clustered emvironment with a central instance, two dialog instances and two web dispatchers), some months ago we tested it in Development Environment (not clustered emvironment, just a single system) and it worked fine.
    So I did the same configurations on Production Environment but it did not work.
    But if I access on my portal (Production Env.) by the central instance (avoiding the dispatchers) the instant message service works.
    I think it can be a web dispatcher's configuration problem, in its logs I found the message :
    "<i>[Thr 3700] *** ERROR => htmlEncode: called with empty string [icpif.cpp 847]</i>"
    I' ve repeated the same configuration done in Dev.Env. (no dispatcher) on the Prod.Env. (with 2 dispatcher), is possible that I'm missing some configurations??
    Could someone helps me?
    Best Regard
    null

    Hi Alessandro,
    unfortunately I got the same problem but I haven't found the solution yet.
    Hoping someone will help us.
    Regards  Nicola

  • When attempting to use Firefox email, I get a yellow background popup headed ' There is a problem with this message.

    when i attempt to open Firefox Mail, I get a popup (yellow background) with the heading "There is a problem with this message". We are sorry, but Yahoo Mail has encountered a temporary problem, referring to Temporary Error 4. It goes on to suggest that I might solve the problem by going to Yahoo Help Page. I tried this to no avail. Can you help? Please keep it simple as I am sort of computer impaired. Thanks, Bob Mayfield

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    *https://support.mozilla.org/kb/clear-cache-history-and-personal-information

  • I keep having the same problem with my messages over and over again. My number is not checked in my message settings it just unchecks itself

    I keep having the same problem with my messages over and over again. My number is not checked in my message settings it just unchecks itself

    Dear Tomarshe
    I had the same problem a couple of weeks back.
    What I did was that I restarted that Ipad of mine and voila!
    Problem solved!
    hope this helped!
    - DASHdotDASHdot

  • TS3276 Does anyone have problems with sent messages not showing in their Mail? I have two sent folders when really I only want one. Any tips?

    Does anyone have problems with sent messages not showing in their Mail? I have two sent folders when really I only want one. Any tips?

    Not sure if this is a fix, but I tried sending myself a test email from only  the Bcc field, and lo and behold it now shows the Bcc field in all sent item previews;
    ...maybe leaving the 'To' field blank on purpose forced Mail to show it.
    Rebooted the Mail program, still there - rebooted the machine, still there. Hope this is still relevant and it works for you too - J.

  • Having problems with a message saying a script in this movie is causing adobe to run slowly if it continues to run, your computer may become unresponsive

    Having problems with a message saying,A script in this movie is causing adobe flash player to run slowly if it continues to run, your computer may become unresponsive. Do you want to abort script. And my system seems to freeze. What can I do

    Here is the download page for Click-to-PlugIn:
    http://hoyois.github.com/safariextensions/clicktoplugin/

  • PROBLEM with iMessage (Messages) on iPod touch HELPPP

    We had a problem with iMessage. We're both using iPod touch with iOS5 version.
    but we can't send messages. It says our emails/apple ids are not registered on iMessage.
    I checked it on already on the Settings>iMessage> ON .
    but still we cant use it. HELP PLEASE THANKS

    Same isue when tryn to change advanced setting :
    +Mon Jul 5 15:51:39 iPhone profiled[266] <Warning>: profiled|Service starting...+
    +Mon Jul 5 15:51:39 iPhone profiled[266] <Warning>: MC|Profile MCConfigurationProfile 0x113b30 has no friendly name.+
    +Mon Jul 5 15:51:41 iPhone ReportCrash[267] <Notice>: Formulating crash report for process profiled[266]+
    +Mon Jul 5 15:51:42 iPhone com.apple.launchd[1] (com.apple.managedconfiguration.profiled[266]) <Warning>: (com.apple.managedconfiguration.profiled) Job appears to have crashed: Bus error+
    +Mon Jul 5 15:51:42 iPhone ReportCrash[267] <Error>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/profiled2010-07-05-155139iPhone.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0+
    Did you solved this issue ?
    Message was edited by: lbarbisan

  • BI Publisher report ends with Warning Message for Pivot  type reports..

    Hi,
    I had used BI reporting(xml publisher) to develop our all reports and registered in R12 and works fine for all the tabular/forms type reports but it fails with the warning message(colored in yellow) for Pivot type reports. The output comes in xml..
    When I changed the pivot table type report to tabular it comes with pdf. No issues.I do not know how to solve this issue...
    Please help me on this..
    Thanks
    Imran

    Welcome to the forums !
    Pl post details of OS, database and EBS versions, along with the complete error message.
    HTH
    Srini

  • Problem with Text Messages

    Hi,
    I have a 5530 XpressMusic phone with around 4000+ text messages saved on the memory card.
    Whenever the number of text messages increases above approximately 3500+ messages, the new text message alert stops appearing, no tone or vibration alerts. Even delivery reports refuse to appear. 
    Nokia PC Suite (Latest version) has a lot of trouble displaying those texts as well (So that I could backup the data) and nothing appears in Communication Center.
    I had the exact same problem with the older N70 ME and had to delete texts to get back to normal. Its going to be very cumbersome to go through all those messages and pick and prune to a size that the phone/Suite can handle.
    I have the latest firmware. Any help with this? 

    ok this isn't any help sorry,but can't find anywhere to post a new thread,so this is the closest post i've found so hopefully i can get some help here :robotmad:
       when i have "backed up" my messages from the phone to my memory card AND picked my memory card as the place where my messages are stored,i put the memory card into my pc to browse the memory card i cannot find anything on there relating to the back up or my messages,i've gone through all the folders i can see,even the empty ones(btw do i need keep the empty folders or can i delete them),now this is really "bugging" me as my little lad sent me a merry christmas text message so i wanted to do the above action so i could save the message on my pc as a keeps sake
             hope you guys can help
              thanx a lot

  • Problem with information message in User exit

    Hi All,
    Iam using the below code in MV45FZZ to check the customer(sold to party) entered in VA31 with a Ztable and popup a message if it exist in the Ztable.
    select single * from zcust into zcust where kunnr = kuagv-kunnr.      
    if sy-subrc = 0.                                                      
    call function 'POPUP_TO_INFORM'                                       
         exporting                                                        
    titel   = 'INFORMATION'                                               
    txt1    = 'Calender day orders for this customer have been blocked'   
    txt2    = 'Please contact [someone] if this block should be removed'  
            TXT3    = ' '                                               
            TXT4    = ' '                                               
         exceptions                                                       
              others  = 1.                                                
    if sy-subrc = 0.                                                      
    leave to screen 101.                                                  
    endif.                                                                
    endif.                                                                
    <b>The problem is, the message needs to be in logon language based.</b>
    I tried to give it in a text element, however it is asking me a access key to enter it in a text element. Also I tried to give just a information message box like this message I088(z2). But this is comming like a success message .  Letme know how to overcome this.
    Regards,
    Senthil

    Hello,
    I have gave similar kind of info message in the same exit like this
    <b>          message i082(Z48SD) with l_r_xvbap-posnr
                                       l_r_xvbap-matnr
                                       text-302.</b>
    <b>Text-302 is created for the same program SAPMV45A</b>
    U could try like this.
    If useful reeward.
    Vasanth

  • Problem with seeing messages received on msn messe...

    Hi,
    I've had the nokia X6 for 3 months now (my future father in law sent it to me as a gift! ) and i absolutely love it, but i have a problem with msn messenger. After i start a conversation with someone, i'm not able to see messages received until AFTER i send a message again, so my messages end up being a delayed response. I don't get any sort of message alert (like i do on my laptop) to make me aware i've been sent a message.
    It really annoyed me a few days ago because I was trying to talk to my fiance via msn on my phone, but my responses were slow as i had to send him a message first in order to read his one. He suggested i join this forum, so please can someone help me?!
    I know it may sound silly trying to get it solved now, considering i've had it for 3 months, but i wasn't really using msn on my phone till recently. This is the first time i'm able to use the internet on my phone, so i'm extra excited, but this msn problem has been bugging me. Please, please, please can someone help me solve this?
    Thanks.
    Solved!
    Go to Solution.

    LOL yeah, i've got a cool future father in law No, it's not on WLAN or gprs, but yeah, i need to check msn settings and probably call nokia support as well.
    Sorry for the late reply. I was subscribed to get an email when someone replies, but i didn't! It's good i decided to check today if there were any responses to my question!

  • Anyone else having problems with group messages in iOS 7?

    Upgrade to iOS7 went fine. Everything worked smoothly up until about 6:30pm Central time. Can't send/receive group messages in iMessage. Anyone else?
    Not sure if this is a problem with my phone or iMessage.

    It has failed to work on two of my iOS devices. I am using air 2.6.
    This is my code:
    Bookmark = SharedObject.getLocal("bookmarkData", "/");
    if (Bookmark.data == undefined){
         Bookmark.data['lessonIndex'] = 0;
    lessonIndex = Bookmark.data['lessonIndex'];
    LessonIndex is always 0 at the start of the program. This is a product killing problem. If I cannot resolve this 3 years of work has just been flushed down the toilet.

Maybe you are looking for

  • My iTunes will only play one song and then stops.

    In a playlist, my iTunes will play only one track and then it stops. Won't move to the next song, won't work in shuffle mode, just plays once and that's it! Any ideas? This just started a few days ago, maybe with a recent iTunes update? I'm in 11.0.3

  • How do i alphabetize a list of items in pages

    I need to alphabetize a list of item sin pages

  • When saving MHTML files I get the IE icon instead of Mozilla.

    When using Mozilla/Firefox, I cannot save new MHTML files with Firefox icon-the icon appears to be the same as "Text icon". Also, I cannot use the "Opens With" to change existing MHTML files from IE icons to the Firefox icon. Some FF icons are correc

  • "Purchase-to-Stock" Or "Purchase-to-Sell/Drop" Scenerios

    Hi My clients scenario: Client is making a finished product with some fabric. Now that the due to heavy in-flow of Sales Orders, client has decided to buy(from other manufacturer) the same finished product in order to make it as "Purchase-to-Stock" O

  • Adding page actions by javascript

    Hi, I know that acrobat holds the option to add "open/close page event", it can be done manually, like in this guide: http://acrobatusers.com/tutorials/print/entering-page-actions but i want something else, i want to know if there is a JavaScript com