Re: JDom and Java5
Victor Toni <[email protected]>
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <[email protected]> |
Mattias Jiderhamn wrote: > Rolf Lear wrote (2008-02-26 16:16): >> ... the @suppress would remove the warning like you said. >> Unfortunately, I don't believe that is enough for an API. >> > (Would you care to explain why compiler warnings must be avoided at > all costs?) > "Avoiding warnings at all costs" sounds a bit strong. When writing a new API (library, whatever) it's not alway possible to create warning-less code. In these cases I tend to inspect the code section thoroughly and add such annotations if possible. It gives a warm fuzzy feeling if the counter goes down ;-) And it saves time because 3 months later I don't have to check the same code again to see if it's just a warning or maybe a WARNING. _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected]