summaryrefslogtreecommitdiffstats
path: root/tools/aidl
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-08-07 13:20:50 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-08-07 13:20:50 -0700
commitb14c215eb2dd617214d867d38449eb1d1214d41c (patch)
tree7d29a2b19aab3b7d5a8f49e080f394535f90ff10 /tools/aidl
parent53bec9af8b415af87cc51c065c8bec02e26759a6 (diff)
parent4b4b44381b133e9ab7418806c046774b7fd31393 (diff)
downloadframeworks_base-b14c215eb2dd617214d867d38449eb1d1214d41c.zip
frameworks_base-b14c215eb2dd617214d867d38449eb1d1214d41c.tar.gz
frameworks_base-b14c215eb2dd617214d867d38449eb1d1214d41c.tar.bz2
am 4b4b4438: am 33c5670b: Merge "Fewer warnings in aidl generated code."
* commit '4b4b44381b133e9ab7418806c046774b7fd31393': Fewer warnings in aidl generated code.
Diffstat (limited to 'tools/aidl')
-rw-r--r--tools/aidl/generate_java_binder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/aidl/generate_java_binder.cpp b/tools/aidl/generate_java_binder.cpp
index 2e459a8..f80a388 100644
--- a/tools/aidl/generate_java_binder.cpp
+++ b/tools/aidl/generate_java_binder.cpp
@@ -54,7 +54,7 @@ StubClass::StubClass(Type* type, Type* interfaceType)
// asBinder
Method* asBinder = new Method;
- asBinder->modifiers = PUBLIC;
+ asBinder->modifiers = PUBLIC | OVERRIDE;
asBinder->returnType = IBINDER_TYPE;
asBinder->name = "asBinder";
asBinder->statements = new StatementBlock;
@@ -117,7 +117,7 @@ StubClass::make_as_interface(Type *interfaceType)
queryLocalInterface->arguments.push_back(new LiteralExpression("DESCRIPTOR"));
IInterfaceType* iinType = new IInterfaceType();
Variable *iin = new Variable(iinType, "iin");
- VariableDeclaration* iinVd = new VariableDeclaration(iin, queryLocalInterface, iinType);
+ VariableDeclaration* iinVd = new VariableDeclaration(iin, queryLocalInterface, NULL);
m->statements->Add(iinVd);
// Ensure the instance type of the local object is as expected.
@@ -181,7 +181,7 @@ ProxyClass::ProxyClass(Type* type, InterfaceType* interfaceType)
// IBinder asBinder()
Method* asBinder = new Method;
- asBinder->modifiers = PUBLIC;
+ asBinder->modifiers = PUBLIC | OVERRIDE;
asBinder->returnType = IBINDER_TYPE;
asBinder->name = "asBinder";
asBinder->statements = new StatementBlock;
@@ -384,7 +384,7 @@ generate_method(const method_type* method, Class* interface,
// == the proxy method ===================================================
Method* proxy = new Method;
proxy->comment = gather_comments(method->comments_token->extra);
- proxy->modifiers = PUBLIC;
+ proxy->modifiers = PUBLIC | OVERRIDE;
proxy->returnType = NAMES.Search(method->type.type.data);
proxy->returnTypeDimension = method->type.dimension;
proxy->name = method->name.data;