Skip to content

Commit e5a5e32

Browse files
committed
DefaultModuleService: fix bug in conditional order
This makes 1e046ce work as intended... almost. There is still a problem with the PrefService's remove method, which will be fixed in the subsequent series of commits.
1 parent 1e046ce commit e5a5e32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,6 @@ private Class<?> prefClass(final ModuleItem<?> item) {
521521
private String prefKey(final ModuleItem<?> item) {
522522
final String persistKey = item.getPersistKey();
523523
return persistKey == null || persistKey.isEmpty() ? //
524-
persistKey : item.getName();
524+
item.getName() : persistKey;
525525
}
526526
}

0 commit comments

Comments
 (0)