summaryrefslogtreecommitdiffstats
path: root/build/android/gyp/javac.py
diff options
context:
space:
mode:
Diffstat (limited to 'build/android/gyp/javac.py')
-rwxr-xr-xbuild/android/gyp/javac.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/build/android/gyp/javac.py b/build/android/gyp/javac.py
index b22d05b..8a62e5f 100755
--- a/build/android/gyp/javac.py
+++ b/build/android/gyp/javac.py
@@ -47,16 +47,13 @@ def DoJavac(options):
'-source', '1.5',
'-target', '1.5',
'-classpath', ':'.join(classpath),
- '-d', output_dir]
+ '-d', output_dir,
+ '-Xlint:unchecked',
+ '-Xlint:deprecation',
+ ]
- # Only output Java warnings for chromium code
- if options.chromium_code:
- cmd += ['-Xlint:unchecked']
- else:
- cmd += [# Suppress "Sun proprietary API" warnings. See: goo.gl/OYxUM
- '-XDignore.symbol.file']
-
- build_utils.CheckCallDie(cmd + java_files)
+ suppress_output = not options.chromium_code
+ build_utils.CheckCallDie(cmd + java_files, suppress_output=suppress_output)
def main(argv):
parser = optparse.OptionParser()