Skip to content

Commit abbfa66

Browse files
authored
fix metadata ordering (#876)
thinking about it, I don't know what possessed me to make them regular while loops
1 parent 6b7c6df commit abbfa66

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

inject-generator/src/main/java/io/avaje/inject/generator/MetaDataOrdering.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,15 @@ int processQueue() {
6767
// first run without external dependencies from other modules
6868
count = processQueueRound(false, false);
6969
} while (count > 0);
70-
71-
while (count > 0) {
70+
do {
7271
// run again including externally provided dependencies from other modules
7372
count = processQueueRound(true, false);
74-
}
73+
} while (count > 0);
7574

76-
while (count > 0) {
75+
do {
7776
// Last ditch effort, match any bean available
7877
count = processQueueRound(true, true);
79-
}
78+
} while (count > 0);
8079

8180
int remaining = queue.size();
8281
if (remaining != 0) {

0 commit comments

Comments
 (0)