aboutsummaryrefslogtreecommitdiff
path: root/aidl_language.cpp
diff options
context:
space:
mode:
authorJooyung Han <jooyung@google.com>2022-01-28 14:57:13 +0900
committerJooyung Han <jooyung@google.com>2022-02-02 00:13:17 +0000
commitf08c15f417c49e4ffb170d6275613aec65a74c1e (patch)
treec1220634ef754c595414ca8a1713c5f81de46761 /aidl_language.cpp
parentd06ac1913a3a8d16d0829d50d7eabb85b4220227 (diff)
downloadaidl-f08c15f417c49e4ffb170d6275613aec65a74c1e.tar.gz
Lint: Redundant imports
Following the Java language, redundant imports are allowed and just ignored. But now the linter detects and complains about it as violating "unique-import". Bug: 215566892 Test: aidl_unittests Change-Id: Ibe575fa73f8e47c8646f1807f7c9df94f2a9ce7a
Diffstat (limited to 'aidl_language.cpp')
-rw-r--r--aidl_language.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/aidl_language.cpp b/aidl_language.cpp
index 50b07394..2d8886b7 100644
--- a/aidl_language.cpp
+++ b/aidl_language.cpp
@@ -1738,7 +1738,7 @@ std::string AidlInterface::GetDescriptor() const {
}
AidlDocument::AidlDocument(const AidlLocation& location, const Comments& comments,
- std::set<string> imports,
+ std::vector<string> imports,
std::vector<std::unique_ptr<AidlDefinedType>> defined_types,
bool is_preprocessed)
: AidlCommentable(location, comments),