Skip to content

Commit a674bd9

Browse files
committed
adapt to changes in KNIME 3.3 converter framework
1 parent fc2077a commit a674bd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org.knime.scijava.commands/src/org/knime/scijava/commands/converter/DefaultConverterCacheService.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ private <I> JavaToDataCellConverter<?> addNewOutputConverter(
9999
private <O> DataCellToJavaConverter<?, ?> addNewInputConverter(
100100
final DataType inputType, final Class<O> outputType) {
101101

102-
final Optional<DataCellToJavaConverterFactory<DataValue, O>> factory = m_inRegister.getPreferredConverterFactory(inputType, outputType);
102+
final Optional<DataCellToJavaConverterFactory<? extends DataValue, O>> factory = m_inRegister.getPreferredConverterFactory(inputType, outputType);
103103

104104
if (!factory.isPresent()) {
105105
throw new IllegalArgumentException("Can't convert from: "
106106
+ inputType.getName() + " to :" + outputType.getName());
107107
}
108-
final DataCellToJavaConverter<DataValue, O> conv = factory.get().create();
108+
final DataCellToJavaConverter<? extends DataValue, O> conv = factory.get().create();
109109
m_inConverters.put(createInputKey(inputType, outputType), conv);
110110
return conv;
111111
}

0 commit comments

Comments
 (0)