How to add -Xlint:unchecked to build.xml

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to add -Xlint:unchecked to build.xml

Felipe Sánchez Martínez
Hi all,

After compiling I receive the following message:

[javac] Note: file.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.

But I haven't found how to do it. Could you help me on that?

thanks in advance
--
Felipe.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: How to add -Xlint:unchecked to build.xml

Uwe Schindler
I have this form my project "panFMP" in my build.xml, which uses heavy java
5 features:

<javac srcdir="${src}" destdir="${build}" source="1.5" target="1.5"
classpathref="classpath" deprecation="on" debug="${debug}">
        <compilerarg line="-Xlint:unchecked"/>
</javac>

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: [hidden email]

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]]
> Sent: Tuesday, April 15, 2008 7:08 PM
> To: [hidden email]
> Subject: How to add -Xlint:unchecked to build.xml
>
> Hi all,
>
> After compiling I receive the following message:
>
> [javac] Note: file.java uses unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
>
> But I haven't found how to do it. Could you help me on that?
>
> thanks in advance
> --
> Felipe.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]