diff options
author | Ruchir Rastogi <ruchirr@google.com> | 2020-05-08 15:58:56 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-05-08 15:58:56 +0000 |
commit | 0bb978de88e5a9267c849a1d7afba9a151b897e2 (patch) | |
tree | f00f16dfc341f22ec9cab68befb1ba6cad5aa2ed /tools/stats_log_api_gen/java_writer.cpp | |
parent | 5e980bfd8bad6ee63b4c32ca1f66fdf7d1bc3ee3 (diff) | |
parent | c480dd54bafe7b24e0b67f69c11f05c81d3163b2 (diff) |
Merge "Use proper platform version checks (apigen)" into rvc-dev
Diffstat (limited to 'tools/stats_log_api_gen/java_writer.cpp')
-rw-r--r-- | tools/stats_log_api_gen/java_writer.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tools/stats_log_api_gen/java_writer.cpp b/tools/stats_log_api_gen/java_writer.cpp index 556cf5e12d01..f4c937c3f599 100644 --- a/tools/stats_log_api_gen/java_writer.cpp +++ b/tools/stats_log_api_gen/java_writer.cpp @@ -124,13 +124,7 @@ static int write_java_methods(FILE* out, const SignatureInfoMap& signatureInfoMa // Print method body. string indent(""); if (supportQ) { - // TODO(b/146235828): Use just SDK_INT check once it is incremented from - // Q. - fprintf(out, " if (Build.VERSION.SDK_INT > Build.VERSION_CODES.Q\n"); - fprintf(out, - " || (Build.VERSION.SDK_INT == " - "Build.VERSION_CODES.Q\n"); - fprintf(out, " && Build.VERSION.PREVIEW_SDK_INT > 0)) {\n"); + fprintf(out, " if (Build.VERSION.SDK_INT > Build.VERSION_CODES.Q) {\n"); indent = " "; } |