[Bluej-discuss] BlueJ 2.1.2 Compiler warnings
Todd O'Bryan
toddobryan at mac.com
Mon Mar 6 11:20:50 GMT 2006
You're using a collection class without declaring what kind of stuff
it holds. In other words,
ArrayList l = new ArrayList();
should become, in Java 1.5.0,
ArrayList<String> l = new ArrayList<String>();
with String, of course, replaced by whatever type the ArrayList is
going to hold. The last preference in the Miscellaneous tab lets you
turn off those warnings if you don't want to specify the contents of
your collections.
Todd
On Mar 6, 2006, at 5:41 AM, Luis Moreira wrote:
> Hi Guys,
>
> I have just upgraded to BlueJ 2.1.2 and every time I compile I get
> the message: “Note: filename.java uses unchecked or unsafe
> operations.”
>
>
> “ Note: Recompile with
> –Xlint unchecked for details.”
>
>
> Do you know what is this all about?
>
>
> Best regards
>
> Luis
>
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bluej.org/pipermail/bluej-discuss/attachments/20060306/05a7b85f/attachment.html
More information about the bluej-discuss
mailing list