Stupid Question: Suppress Warnings vs Fixing What Ain't Broken

Hey all,
I'm getting about 70 warnings in my code, mostly because I'm using anonymous classes to set up Actions as shown in the code snip below. This generates the warning "The serializable class does not declare a static final serialVersionUID field of type long" every time I create an Action this way:
final Action defaultUpAction = am.get(im.get(KeyStroke.getKeyStroke("control UP")));
          Action upAction = new AbstractAction(){  //warning generated here
               public void actionPerformed(ActionEvent e){
                    defaultUpAction.actionPerformed(e);
                    lastAction = "UP";
          };I understand what's causing the warning, and I even know how to fix it (or ignore the warning).
My question is, which is less of a hack? Do I just throw in a few SuppressWarnings annotations, or should I add a default serialVersionUID in each anonymous class? I'm not using the serialization functionality, but I might want to sometime in the future in which case suppressing the warnings would be a bad idea. Both solutions (adding a field I don't need or suppressing warnings instead of fixing them) seem a bit kludgey to me. Am I just being too touchy, or is there a better way?
Thanks

Thanks for the input, that does make quite a bit of sense. I suppose my hesitation comes from the feeling that although I was told by the higher-ups to "fix those warnings", all I'm doing is concealing them. I guess I shouldn't look at it that way, especially since I don't use serialization at all in any of my code (nobody else does, either). So in this case, simply suppressing the warnings probably makes more sense than adding fixes that won't be used anyway (and in fact may mislead future developers into thinking I'm using serialization somewhere).

Similar Messages

  • Apple, what have you done? 8.01 makes my ipad seems like it is back on dial up. Don't fix what ain't broken, or is your policy break it so we have to fix it?

    Apple, what have you done? 8.01 makes my ipad seems like it is back on dial up. Don't fix what ain't broken, or is your policy break it so we have to fix it?

    Hi The best option is to do a factory Reset this will get rid of any bugs And set up iPad as new. Just use same Apple ID you will get all your Apps & Data back. Do this over Wifi Cheers Brian

  • Why fix what ain't broken?

    This is not just with Firefox but with software in general and heavily includes browsers. One can't help but notice that upgrading often causes immediate problems with both the program being upgraded and other, many times, unrelated, programs, already installed, causing them to have to be upgraded and/or modified in order to work also. This is not free, in time or money. Windows Vista and ME were the epitome of what can happen with upgrades - lots of expensive problems! MS Office is THE classic example of overkill - too many features.
    Upgrading Firefox is no different. Being forced to upgrade, however, is reprehensible, and this is the way many internet associated programs have done.
    Since I saw a store owner doing his daily business with an extinct late 80s DOS program and he told me "it works fine, does my job as I need it done, why upgrade?"
    There are a lot of new things happening in technology, on the web especially - What if we don't want to access them or take part in them - I have no Facebook or Twitter accounts, for instance. What happened to "customer being right". What happened to our right to choose? (My choices have been to use other products which most of the time are not as good but much less troublesome and "respectful".)

    That doesn't work. Some of the plug-ins have also been turned off and cannot be upgraded. Others require Firefox upgrade. It causes this nuisance tab to become my startup tab and will not allow it to be turned off. I've done a lot of homework on this to find many others who have this same issue, same frustration, in not being able to get rid of it and get back to the older working version.

  • Attachments - why fix what wasn't broken!

    Prior to OX Lion, when an email arrived with attachments you were able to select them individually (or more using command-click) and drag them to whichever folder you liked directly from mail. Now all you get is to save them individually or all at once and the process has increased from 1-click (and drag) to as many clicks as it takes to locate the folder you want them saved in ('recent folders' is cool if you only deal with a few folders - we use dozens of folders). We design and produce magazines and receive a lot of attachments and the new mail has increased our workflow by thousands of clicks - VERY DISAPPOINTING.
    You also were able to open attachments directly from mail as well (using right-click), you can't do that anymore either!
    Anyone know a work-around?
    I see THUNDERBIRD still allows you to select and drag attachments.
    Another example of some idiot fixing what ain't broken!

    Submit your feedback directly to Apple using the appropriate link on the Feedback page:
    http://www.apple.com/feedback

  • ITunes 7 is a joke stop trying to fix what isn't broken

    iTunes 7 is a joke stop trying to fix what isn't broken

    Between being still wet, and energized multiple times, it almost certainly has suffered permanent damage from shorting circuits.  I would just get a replacement at this point and be done with it.
    As mentioned, either an AppleCare+ accidental damage claim, if you can do so, or pay the out of warranty replacement for a like new service unit.

  • Firmware fun - why fix what ain't broke? Who pays?

    Recently my MacBook failed to recognise a portable Lacie firewire drive. My G5 PowerPC continues to recognise it. The drive is in excellent condition, has operated problem-free for many years and continue to work properly.
    After much testing (and posting to another part of this discussion forum) the general consensus seemed to be that it was likely to be a firmware issue.
    I wrote to the vendors: "The drive was purchased in 2002. That may sound 'old' to you, but it's in excellent condition, been well looked-after, and continues to perform perfectly. A pretty good ad for a product, no?"
    The vendors said, "Having checked with your device unfortunately we no longer have any updates for it... It is possible that updates would have been the issue here as they would provide additional support for newer versions of Windows and Mac OS including more support for firewire and USB."
    Does anyone know what the legal position is here? I have a perfectly good product that can no longer be used in the usual way. Do the vendors have a responsibility in storing firmware their clients may need in order to use their products? Or is it the responsibility of the computer vendors to ensure that their customers can continue to access the 3rd party devices they customarily use with the computer?
    The drive I purchased has been made redundant through no fault of my own. Can I ask the drive vendors to replace it?
    iHope

    JoeyR, thanks for your comments.
    JoeyR wrote:
    If your drive is being recognized by another machine, I can't see the firmware being the cause for it not working with your MacBook.
    The (Intel) MacBook doesn't recognise, the (PPC) G5 does.... Today the vendor wrote, saying there has never been a firmware update for this particular drive.
    When you say "recently my MacBook failed to recognize..." do you mean that it did work at some point on your MacBook or it never did?
    It's always been recognized by the MacBook until recently.
    Does it just not mount the drive or does it not see it at all? Meaning if you go into Disk Utility, can you see the drive there?
    Disk Utility doesn't see it.
    If you have any data on that external drive that you don't have stored elsewhere, you'll want to be sure it is backed up before the drive fails.
    The FW external drive is used in my workflow, but not for archiving.
    The issue began after installing the latest Apple security update (for Intel computers only). As I asked at the start, who pays for the fact that this device is no longer fully available to me?
    iHope
    Message was edited by: iHope

  • Droid DNA was a good phone - HTC please fix what you have broken

    I just got the latest update and I really don't care for the new interface.  I have talked to Verizon and HTC and both say the only way to get the older version is to root the phone which will take it out of warranty.   Not that I really care about the warranty however I will need to spend more time than I care to just go back to a version that worked properly.   Easier to just get a new phone, granted I will need to learn the new phone but at least it will be an upgrade so the investment of my time will seem worth it. 
    What upsets me the most is they will not let me go back to my previous version.  I would be perfectly happy with the version I was running before.  It had it's issues but I was used to them.  The latest upgrade has changed things that I used daily for fixes that I rarely or never use.  For example, the landscape keyboard is broken, I cannot see the P and L keys.  The person at HTC recommended I find another keyboard online and download it.  Not the answer I expected from the manufacturer but it does help me make a decision.
    I was planning on getting the HTC One next but after this I will be getting another phone (sooner than planned) and it will not be a phone from HTC.   It may not even be an Android phone, maybe Windows 8.  I have heard the latest iPhone upgrade was subpar as well. 

    See this discussion, https://discussions.apple.com/message/19779377#19779377

  • Apple, I have an iPhone 5 and the purple tint in pictures is real and is going to be the most costly mistake to have changed the lens to a sapphire crystal lens. This is HUGE! Why did you fix what is not broken?

    Why, because some clumsy, careless humans couldn't stop scratching a less that 1/4 inch wide lens?  That is no reason for replacing the lens and pandering to their inability to handle advanced technology is not going to push the technology forward. Tossing out cheap cases like you did for the imagined iPhone 4 antenna "problem" will not fix this VERY real problem. I have been a loyal customer since 2005 and this, as stated in the title, could be your most costly mistake. Either your software engineers are going to have to compensate for the purple tint appearing in photos or you're going to sacrifice massive profits to physically replace the lens in every iPhone 5 you have sold and continue to sell. I've read that Apple customer service has tried to sweep this away by falsely claiming that the purple tint is "normal". It is absolutely not normal by any stretch of the imagination. Do not be silent Apple customers! Let the complaints pour like Niagara Falls or settle for the garbage that has been sold.
    My former iPhone 4 took better pics.
    I hope Apple didn't do the same with the pending iPad mini or this could turn into a maelstrom that even Steve Jobs would not have tolerated.
    Signed,
    Extremely dissapointed

    Read: http://support.apple.com/kb/TS4436
    It is pretty short so here is the entire text:
    Symptoms
    A purplish or other colored flare, haze, or spot is imaged from out-of-scene bright light sources during still image or video capture.
    Resolution
    Most small cameras, including those in every generation of iPhone, may exhibit some form of flare at the edge of the frame when capturing an image with out-of-scene light sources. This can happen when a light source is positioned at an angle (usually just outside the field of view) so that it causes a reflection off the surfaces inside the camera module and onto the camera sensor. Moving the camera slightly to change the position at which the bright light is entering the lens, or shielding the lens with your hand, should minimize or eliminate the effect.
    Which is exactly what eelw wrote.
    No one on Apple Support Communities has authority to speak on behalf of Apple, unless their avatar is accompanied by this Apple image:
    ... identifying themselves as Apple employees.

  • SP1 fixes what isn't broken?

    Nice job Novell! I was working with ZfD 3.2 perfectly fine... without
    problems. One day, I decided I would like to upgrade to ZfD 3.2 SP1
    to
    see if the imaging boot cd perhaps had some new and improved network drivers (it didn't), and, lo and behold, my remote control no longer works! Any time I log into a workstation and do something such as
    launch
    Outlook Express or open the Control Panel, the remote agent freezes.
    Re-
    opening the workstation renders only a blank gray screen, or no
    response
    at all.
    Fantastic! I will be re-installing the original ZfD 3.2 files this
    afternoon after everyone goes home.

    I found the problem. For some reason a graphics file called
    hook16.dll
    was causing the freeze-ups. I deleted the file from all my computers,
    and
    it works fine.
    As for client-side installs, I haven't had the time to run that
    install on
    the 477 computers I am responsible for. Running the client-side
    install
    did not fix the problem when I tested it on an individual workstation.
    > Hi,
    >
    > [email protected] wrote:
    > >
    > > Nice job Novell! I was working with ZfD 3.2 perfectly fine...
    without
    > > problems. One day, I decided I would like to upgrade to ZfD 3.2
    SP1 to
    > > see if the imaging boot cd perhaps had some new and improved
    network
    > > drivers (it didn't),
    >
    > I don't know what SP1 you applied, but the SP1 imagin CD has
    literally
    > hundreds of additional or improved network drivers.
    >
    > > and, lo and behold, my remote control no longer
    > > works! Any time I log into a workstation and do something such as
    launch
    > > Outlook Express or open the Control Panel, the remote agent
    freezes.
    Re-
    > > opening the workstation renders only a blank gray screen, or no
    response
    > > at all.
    > >
    > > Fantastic! I will be re-installing the original ZfD 3.2 files
    this
    > > afternoon after everyone goes home.
    >
    > No problem at all here with RC after SP1. In fact, it works better
    than
    > ever. You did apply server and client parts, yes?
    >
    > CU,
    > --
    > Massimo Rosen
    > Novell Support Connection Sysop
    > No emails please!
    > http://www.cfc-it.de

  • Is 4.0 supposed to be an upgrade?Why the attempt to fix what isn't broken.

    If this is your new format you can keep it.I have been using firefox forever and always preferred it.There is not one thing I like or feel is an upgrade in 4.0.I won't list all the problems and issues myself and my family have found as there won't be room to list them all.I have reverted back to 3.6.You really need to rethink this.My biggest complaint is ease of use,which there isn't frankly.

    I also can't stand this new Firefox version. What was wrong with the previous version? Am seriously thinking of finding an alternative browser. Have tried reinstalling the previous version, but it just ended up with no Firefox at all. Any ideas of a good alternative please?

  • Bring back Firefox 3 why fix what isn't broken? I hate this firefox 4

    This latest upgrade is the pits, I can't stand all the tabs and the layout. Just let me have my old firefox back, those who want this can have it. In other words I prefer to use IE and I have NOT used it in years, I hate it because of it being microsofts junk. But it is better than this mess.

    I also can't stand this new Firefox version. What was wrong with the previous version? Am seriously thinking of finding an alternative browser. Have tried reinstalling the previous version, but it just ended up with no Firefox at all. Any ideas of a good alternative please?

  • Stupid question: my top 'dock' is not displayed on the screen. How do I get it back and what is it called?

    Stupid question: my top 'dock' is not displayed on the screen. How do I get it back and what is it called? It's just annoying that I have to reach high for it!

    Menu bar. Are you in Full Screen Mode?
    OS X Mavericks: Take apps full screen
    In all apps?

  • This is probably a stupid question, but what does the red circle with a number in it mean on iCal? It looks just like the emails notification. I do not have anything do or up in my cal.

    This is probably a stupid question, but what does the red circle with a number in it mean on iCal? It looks just like the emails notification. I do not have anything do or up in my cal.

    Actually, another person on the "more like this" had the right answer. It meant I had a notification for an invite that I needed to respond to.
    Hope this helps you as much as it helped me.
    D

  • What's Mobile Me? Forgive stupid question

    What's Mobile Me, and do I need it? Please forgive a stupid question.

    Not a stupid question at all.
    Do you need it? You decide. There's a 60 day free trial.
    http://www.apple.com/mobileme/pricing/
    Matt

  • I am not a knowledgeable user - have what may be a stupid question!  I just purchased a TV show series on iTunes and downloaded all episodes for the season.  But I believe i want them on my iCloud instead of my laptop.  How do I transfer them or dupl

    I am not a knowledgeable user - have what may be a stupid question!  I just purchased a TV show series on iTunes and downloaded all episodes for the season.  But I believe i want them on my iCloud instead of my laptop.  How do I transfer them to the Cloud or duplicate on the iCloud?

    You can't transfer any purchase to the cloud yourself, whether a TV programme/series will show in the cloud for redownloading in the future depends upon what country that you are in (TV programmes can't be redownloaded in all countries), whether you move countries (you can't redownload purchases made in another country) and if the rights-holder keeps them in the store (they occasionally remove their items).
    As you bought it on your laptop then you could turn Settings > iTunes & App Store > Videos (under 'show all') 'on' on your iPad and it might show in the Videos app on it with a cloud icon against it for streaming/redownloading (it might also show in the Purchased tab in the iTunes Store app for refownloading whether or not you turn that 'on') - but that depends upon your country and only whilst it remains in your country's store. Similarly if you delete it from your laptop and tick the 'show iTunes in the cloud purchases' tick box on the Store tab in Edit > Preferences it might show in the TV Shows part of your library for redownloading (and whether or not you tick that it might show in the Purchased link under Quick Links on the right-hand side of the iTunes store homepage for redownloading).
    But you should be taking a backup copy of it, and anything else that you download from the stores, there is no guarantee that you will be able to redownload any item.

Maybe you are looking for