Permalink
Browse files

add -Xlint:unchecked to improve quality

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1410065 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 32104d7 commit e242a96ae3582aaca8a5407211f05a6a6ea78ceb @bufferoverflow bufferoverflow committed Nov 15, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 lib/java/build.xml
View
@@ -93,7 +93,7 @@
<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build.dir}" source="1.5" target="1.5"
debug="true" classpathref="compile.classpath" includeantruntime="false">
- <compilerarg value="-Xlint:deprecation"/>
+ <compilerarg value="-Xlint:unchecked"/>
</javac>
</target>
@@ -157,13 +157,16 @@
<target name="compile-test" description="Build the test suite classes" depends="generate,dist">
<javac debug="true" srcdir="${gen}" destdir="${build.test.dir}" classpathref="test.classpath" includeantruntime="false">
- <compilerarg value="-Xlint:deprecation"/>
+ <compilerarg value="-Xlint:deprecation"/>
+ <!--<compilerarg value="-Xlint:unchecked"/>-->
</javac>
<javac debug="true" srcdir="${genbean}" destdir="${build.test.dir}" classpathref="test.classpath" includeantruntime="false">
- <compilerarg value="-Xlint:deprecation"/>
+ <compilerarg value="-Xlint:deprecation"/>
+ <!--<compilerarg value="-Xlint:unchecked"/>-->
</javac>
<javac debug="true" srcdir="${src.test}" destdir="${build.test.dir}" classpathref="test.classpath" includeantruntime="false">
- <compilerarg value="-Xlint:deprecation"/>
+ <compilerarg value="-Xlint:deprecation"/>
+ <!--<compilerarg value="-Xlint:unchecked"/>-->
</javac>
<copy todir="${build.test.dir}">
<fileset dir="${src.test}" includes="log4j.properties"/>

0 comments on commit e242a96

Please sign in to comment.