Skip to content

Commit d1d525b

Browse files
committed
Refactor populateInputs method
* Now accepts Collection instead of just Set * Renamed to populateInputCandidates for clarity
1 parent c934d13 commit d1d525b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/org/scijava/convert/AbstractConverter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
package org.scijava.convert;
3333

34-
import java.util.Set;
34+
import java.util.Collection;
3535

3636
import org.scijava.plugin.AbstractHandlerPlugin;
3737

@@ -83,7 +83,7 @@ public Object convert(final ConversionRequest request) {
8383
}
8484

8585
@Override
86-
public void populateInputs(Set<Object> objects) {
86+
public void populateInputCandidates(final Collection<Object> objects) {
8787
// No-op
8888
}
8989

src/main/java/org/scijava/convert/DefaultConvertService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public Collection<Object> getCompatibleInputs(Class<?> dest) {
107107

108108
for (final Converter c : getInstances()) {
109109
if (dest.isAssignableFrom(c.getOutputType())) {
110-
c.populateInputs(objects);
110+
c.populateInputCandidates(objects);
111111
}
112112
}
113113

0 commit comments

Comments
 (0)