XLint

F

Francois Lionet

Hello all,

I have a big project with more than 700 files. I work under Netbeans. When I
compile them I get a message saying that "Some input files use unchecked or
unsafe operations." and I am told to recompile with the "-XLint:unchecked"
to know more.
OK, but I cannot find where to put this operator, I have looked in the ant
file properties and no success. Can someone tell me where I can use this
operator and findout what is wrong with my source code?
Thanks in advance,

Francois
 
E

Eric Sosman

Francois Lionet wrote On 04/24/07 13:14,:
Hello all,

I have a big project with more than 700 files. I work under Netbeans. When I
compile them I get a message saying that "Some input files use unchecked or
unsafe operations." and I am told to recompile with the "-XLint:unchecked"
to know more.
OK, but I cannot find where to put this operator, I have looked in the ant
file properties and no success. Can someone tell me where I can use this
operator and findout what is wrong with my source code?
Thanks in advance,

In the Projects view, right-click your project and
open its Properties. Expand the Build tree (if it isn't
already expanded) and click on Compiling. Add all your
favorite javac options in the box in the right-hand side.
Click OK. Recompile.
 
L

Lew

Eric said:
Francois Lionet wrote On 04/24/07 13:14,:

There is no such option. Do you mean the "-Xlint" option?

It's not an operator, it's a command-line option to the javac compiler.

It's not a file property, it's a command-line option to the javac compiler.

You have mixed generic and raw types in your code. Did you google for "Java
unhecked operations"?

You can either not mix raw types and generics, not always possible, or use
@SuppressWarnings to get rid of the message if you're doing it on purpose.
<http://mindprod.com/jgloss/annotations.html#SUPPRESSWARNINGS>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top