[Bluej-discuss] BlueJ 2.1.2 Compiler warnings

Luis Moreira Luis.Moreira at jet.uk
Tue Mar 7 08:41:22 GMT 2006


Thanks Todd,
I will try it.
Best regards
		Luis



-----Original Message-----
From: bluej-discuss-bounces at bluej.org
[mailto:bluej-discuss-bounces at bluej.org] On Behalf Of Todd O'Bryan
Sent: 07 March 2006 01:45
To: General discussion for users of BlueJ
Subject: Re: [Bluej-discuss] BlueJ 2.1.2 Compiler warnings

Sorry, I was at school all day where I can't get my home email (one  
definite problem of addressing questions to a single person on a  
mailing list)...

ArrayList<BouncingBall> balls = new ArrayList<BouncingBall>();

And I bet you thought there was something tricky about it... :-)

Todd

On Mar 6, 2006, at 8:19 AM, Luis Moreira wrote:

> Hi Todd,
>
> I understand what you are saying but as a example if balls is an  
> ArrayList of BouncingBall objects, how would you write it?
>
> Thanks.
>
> Best regards
>
>                     Luis
>
>
>
>
>
> -----Original Message-----
> From: bluej-discuss-bounces at bluej.org [mailto:bluej-discuss- 
> bounces at bluej.org] On Behalf Of Todd O'Bryan
> Sent: 06 March 2006 11:21
> To: General discussion for users of BlueJ
> Subject: Re: [Bluej-discuss] BlueJ 2.1.2 Compiler warnings
>
>
> 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
>
>
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss

_______________________________________________
mailing list bluej-discuss at bluej.org
To unsubscribe or change your preferences, go to
http://lists.bluej.org/mailman/listinfo/bluej-discuss


More information about the bluej-discuss mailing list