aboutsummaryrefslogtreecommitdiff
path: root/aidl_to_java.cpp
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2019-08-21 17:23:11 -0700
committerSteven Moreland <smoreland@google.com>2019-08-21 18:07:09 -0700
commit3dc29d83d4af7a029a42e1b4c917f6010f6a8a8c (patch)
tree549b386c1e45ed58ba8fec2d578a0130a9246ffe /aidl_to_java.cpp
parentda8c693f4ab4f235fe169e8c6d33a7b15425f19b (diff)
downloadaidl-3dc29d83d4af7a029a42e1b4c917f6010f6a8a8c.tar.gz
Move Java array prints into aidl_to_java.
Since it is annoying to try to remember to print them. I've found ast_java is one of the big sources of leaks in AIDL, so I'm trying to rewrite it, and I noticed this. Bug: N/A Test: ./runtests.sh Change-Id: Ibf80fa58e922b522d2e39b3e259c2a166ce61ea7
Diffstat (limited to 'aidl_to_java.cpp')
-rw-r--r--aidl_to_java.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/aidl_to_java.cpp b/aidl_to_java.cpp
index f1ba2281..298b25af 100644
--- a/aidl_to_java.cpp
+++ b/aidl_to_java.cpp
@@ -63,8 +63,6 @@ const string& JavaNameOf(const AidlTypeSpecifier& aidl, bool instantiable = fals
if (instantiable_m.find(aidl_name) != instantiable_m.end()) {
return instantiable_m[aidl_name];
}
- CHECK(!AidlTypenames::IsBuiltinTypename(aidl_name));
- return aidl_name;
}
// map from AIDL built-in type name to the corresponding Java type name
@@ -113,7 +111,7 @@ string JavaSignatureOfInternal(const AidlTypeSpecifier& aidl, bool instantiable,
} // namespace
string JavaSignatureOf(const AidlTypeSpecifier& aidl) {
- return JavaSignatureOfInternal(aidl, false, true);
+ return JavaSignatureOfInternal(aidl, false, false);
}
string InstantiableJavaSignatureOf(const AidlTypeSpecifier& aidl) {