Page 1 of 1

How to compile with -Xlint:deprecation?

Posted: Thu May 23, 2013 8:03 pm
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.

Re: How to compile with -Xlint:deprecation?

Posted: Thu May 23, 2013 8:29 pm
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>

Re: How to compile with -Xlint:deprecation?

Posted: Thu May 23, 2013 8:45 pm
by JMD
Thanks.