Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: How to turn off those warning messages during ant build? Date: Wed, 4 Apr 2012 18:24:20 -0700 (PDT) Organization: http://groups.google.com Lines: 29 Message-ID: <15429764.10.1333589060953.JavaMail.geo-discussion-forums@pbae2> References: <32649009.2052.1333546152596.JavaMail.geo-discussion-forums@vbsf4> NNTP-Posting-Host: 69.28.149.29 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1333589061 15549 127.0.0.1 (5 Apr 2012 01:24:21 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 5 Apr 2012 01:24:21 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 X-Received-Bytes: 2242 Xref: csiph.com comp.lang.java.programmer:13405 Roedy Green wrote: > zyng quoted or indirectly quoted someone who said : >> When I run ant, a lot of warnings are printed out on the screen. It is very >> daunting. It makes new people to feel, as first response, this is broken. >> But actually, the build is successful. I pasted a few warning messages below. >> In our real code, there are hundreds of them. > > Read up on javac.exe. You can give it an option to turn them off. > see http://mindprod.com/jgloss/javacexe.html > > I am not going to tell you what it is because is unwise to ignore > those warning messages. Too late. As you have read earlier, I already let the "-Xlint:-rawtypes" cat out of the bag. Oops! Oh, no, I did it again. > I use a "lint" program in IntelliJ to find even pickier warnings. > These are often indicative of bugs. Fixing them helps prevent bugs, > in particular generifying your code to specify just what you intend to > go inside each collection. See > http://mindprod.com/jgloss/generics.html Go, go, Findbugs. Findbugs is great for finding picky warnings. OP, Roedy is right - fix the generics. -- Lew