You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2023/05/25 07:06:52 UTC
[lucene] branch main updated: Refactor loop to not addAll set to itsself on initial round (followup of #12311)
This is an automated email from the ASF dual-hosted git repository.
uschindler pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new cf7245e38e7 Refactor loop to not addAll set to itsself on initial round (followup of #12311)
cf7245e38e7 is described below
commit cf7245e38e77b677cd6ba916676d908098c4097b
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Thu May 25 09:06:45 2023 +0200
Refactor loop to not addAll set to itsself on initial round (followup of #12311)
---
gradle/generation/extract-jdk-apis/ExtractJdkApis.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gradle/generation/extract-jdk-apis/ExtractJdkApis.java b/gradle/generation/extract-jdk-apis/ExtractJdkApis.java
index 973a12bd03c..be8741db366 100644
--- a/gradle/generation/extract-jdk-apis/ExtractJdkApis.java
+++ b/gradle/generation/extract-jdk-apis/ExtractJdkApis.java
@@ -99,8 +99,8 @@ public final class ExtractJdkApis {
}
}
// recursively add all superclasses / interfaces of visible classes to classesToInclude:
- for (Set<String> a = classesToInclude; !a.isEmpty();
- a = a.stream().map(references::get).filter(Objects::nonNull).flatMap(Arrays::stream).collect(Collectors.toSet())) {
+ for (Set<String> a = classesToInclude; !a.isEmpty();) {
+ a = a.stream().map(references::get).filter(Objects::nonNull).flatMap(Arrays::stream).collect(Collectors.toSet());
classesToInclude.addAll(a);
}
// remove all non-visible or not referenced classes: