Skip to content

Commit d0439fb

Browse files
committed
PromptPane: fix deprecated method usage
1 parent c9cf31e commit d0439fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/scijava/ui/swing/script/PromptPane.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
import org.scijava.script.ScriptREPL;
4848
import org.scijava.thread.ThreadService;
4949
import org.scijava.util.ClassUtils;
50+
import org.scijava.util.Types;
5051
import org.scijava.widget.UIComponent;
5152

5253
/**
@@ -189,7 +190,7 @@ private ThreadService threadService() {
189190
// HACK: Get the SciJava context from the REPL.
190191
// This can be fixed if/when the REPL offers a getter for it.
191192
final Context ctx = (Context) ClassUtils.getValue(//
192-
ClassUtils.getField(repl.getClass(), "context"), repl);
193+
Types.field(repl.getClass(), "context"), repl);
193194
return ctx.service(ThreadService.class);
194195
}
195196

0 commit comments

Comments
 (0)