◐ Shell
reader mode source ↗
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
18 changes: 18 additions & 0 deletions src/main/java/org/scijava/Context.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
import org.scijava.event.EventHandler;
import org.scijava.event.EventService;
import org.scijava.log.LogService;
import org.scijava.plugin.Parameter;
import org.scijava.plugin.PluginIndex;
import org.scijava.service.Service;
import org.scijava.service.ServiceHelper;
Expand Down Expand Up @@ -495,6 +497,22 @@ else if (Context.class.isAssignableFrom(type) && type.isInstance(this)) {
// populate Context parameter
ClassUtils.setValue(f, o, this);
}
else if (!type.isPrimitive()) {
// the parameter is some other object; if it is non-null, we recurse
final Object value = ClassUtils.getValue(f, o);
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/org/scijava/log/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

package org.scijava.log;

import static org.scijava.log.LogLevel.DEBUG;
import static org.scijava.log.LogLevel.ERROR;
import static org.scijava.log.LogLevel.INFO;
Expand All @@ -49,7 +51,7 @@
* @see LogService
*/
@IgnoreAsCallingClass
public interface Logger {

default void debug(final Object msg) {
log(DEBUG, msg);
Expand Down
78 changes: 0 additions & 78 deletions src/main/java/org/scijava/module/process/LoggerPreprocessor.java
Toggle all file notes Toggle all file annotations