Skip to content

Commit 3e110e9

Browse files
committed
DefaultModuleService: fix ConvertService var name
1 parent ef3f1a0 commit 3e110e9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/scijava/module/DefaultModuleService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public class DefaultModuleService extends AbstractService implements
9292
private PrefService prefService;
9393

9494
@Parameter
95-
private ConvertService conversionService;
95+
private ConvertService convertService;
9696

9797
/** Index of registered modules. */
9898
private ModuleIndex moduleIndex;
@@ -269,7 +269,7 @@ public <T> void save(final ModuleItem<T> item, final T value) {
269269
final String sValue = value == null ? "" : value.toString();
270270

271271
// do not persist if object cannot be converted back from a string
272-
if (!conversionService.supports(sValue, item.getType())) return;
272+
if (!convertService.supports(sValue, item.getType())) return;
273273

274274
final String persistKey = item.getPersistKey();
275275
if (persistKey == null || persistKey.isEmpty()) {
@@ -297,7 +297,7 @@ public <T> T load(final ModuleItem<T> item) {
297297
// if persisted value has never been set before return null
298298
if (sValue == null) return null;
299299

300-
return conversionService.convert(sValue, item.getType());
300+
return convertService.convert(sValue, item.getType());
301301
}
302302

303303
// -- Service methods --
@@ -399,7 +399,7 @@ private void assignInputs(final Module module,
399399
}
400400
else {
401401
final Class<?> type = input.getType();
402-
converted = conversionService.convert(value, type);
402+
converted = convertService.convert(value, type);
403403
if (value != null && converted == null) {
404404
log.error("For input " + name + ": incompatible object " +
405405
value.getClass().getName() + " for type " + type.getName());

0 commit comments

Comments
 (0)