How to compile with -Xlint:deprecation?

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

How to compile with -Xlint:deprecation?

Post by JMD »

I get this when i compile my server and i'd like to know how i can do that so i can spot what needs fixing.

P.S: its for a custom mod.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: How to compile with -Xlint:deprecation?

Post by jurchiks »

http://stackoverflow.com/questions/4134 ... into-javac

Code: Select all

<javac srcdir="${src}" classpathref="classpath" destdir="${build.bin}" compiler="javac1.7" debug="true" debuglevel="lines,vars,source" includeantruntime="false" source="1.7" target="1.7">    <compilerarg line="-Xlint:unchecked" /><!-- can add more flags, space separated --></javac>
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

Re: How to compile with -Xlint:deprecation?

Post by JMD »

Thanks.
Post Reply