Skip to content

Commit 3ba3bbb

Browse files
committed
AbstractSingletonService: fix bug in initInstances
The last commit introduced a logic error: it missed one usage of the "instances" variable.
1 parent 4c2aa4e commit 3ba3bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/plugin/AbstractSingletonService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private synchronized void initInstances() {
118118
final HashMap<Class<? extends PT>, PT> map =
119119
new HashMap<Class<? extends PT>, PT>();
120120

121-
for (final PT plugin : instances) {
121+
for (final PT plugin : list) {
122122
@SuppressWarnings("unchecked")
123123
final Class<? extends PT> ptClass =
124124
(Class<? extends PT>) plugin.getClass();

0 commit comments

Comments
 (0)