diff options
author | Jooyung Han <jooyung@google.com> | 2022-01-28 14:57:13 +0900 |
---|---|---|
committer | Jooyung Han <jooyung@google.com> | 2022-02-02 00:13:17 +0000 |
commit | f08c15f417c49e4ffb170d6275613aec65a74c1e (patch) | |
tree | c1220634ef754c595414ca8a1713c5f81de46761 /aidl_language.cpp | |
parent | d06ac1913a3a8d16d0829d50d7eabb85b4220227 (diff) | |
download | aidl-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.cpp | 2 |
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), |