Skip to content

Commit

Permalink
adapt to changes in KNIME 3.3 converter framework
Browse files Browse the repository at this point in the history
  • Loading branch information
dietzc committed Nov 21, 2016
1 parent fc2077a commit a674bd9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ private <I> JavaToDataCellConverter<?> addNewOutputConverter(
private <O> DataCellToJavaConverter<?, ?> addNewInputConverter(
final DataType inputType, final Class<O> outputType) {

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

if (!factory.isPresent()) {
throw new IllegalArgumentException("Can't convert from: "
+ inputType.getName() + " to :" + outputType.getName());
}
final DataCellToJavaConverter<DataValue, O> conv = factory.get().create();
final DataCellToJavaConverter<? extends DataValue, O> conv = factory.get().create();
m_inConverters.put(createInputKey(inputType, outputType), conv);
return conv;
}
Expand Down

0 comments on commit a674bd9

Please sign in to comment.