diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2023-05-12 20:41:12 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2023-05-12 20:41:12 +0000 |
commit | d92e8a78b52420fea651b398bc207552d72bdba3 (patch) | |
tree | d802cf0a66503e77af13fc05924aad1b107e058c | |
parent | 97c6bac0c6a99ec0b292dc751fcc18b5fea90be1 (diff) | |
parent | 1796f8c57714a2824830a8ddfdd1eab0f67de4eb (diff) | |
download | doclava-d92e8a78b52420fea651b398bc207552d72bdba3.tar.gz |
Merge "Fix a concurrent modification exception when generating stubs" into udc-devandroid14-dev
-rw-r--r-- | src/com/google/doclava/Stubs.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/google/doclava/Stubs.java b/src/com/google/doclava/Stubs.java index 930d52c..a90ed6e 100644 --- a/src/com/google/doclava/Stubs.java +++ b/src/com/google/doclava/Stubs.java @@ -53,7 +53,7 @@ public class Stubs { boolean keepStubComments) { // figure out which classes we need final HashSet<ClassInfo> notStrippable = new HashSet<ClassInfo>(); - Collection<ClassInfo> all = Converter.allClasses(); + Collection<ClassInfo> all = List.copyOf(Converter.allClasses()); Map<PackageInfo, List<ClassInfo>> allClassesByPackage = null; PrintStream apiWriter = null; PrintStream dexApiWriter = null; |