Skip to content

Commit d287bc9

Browse files
committed
CodeRunner: migrate default method impl to iface
1 parent 1afbf42 commit d287bc9

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/main/java/org/scijava/run/AbstractCodeRunner.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ public abstract class AbstractCodeRunner extends
4646
AbstractHandlerPlugin<Object> implements CodeRunner
4747
{
4848

49-
// -- Typed methods --
50-
51-
@Override
52-
public Class<Object> getType() {
53-
return Object.class;
54-
}
55-
5649
// -- Internal methods --
5750

5851
protected <T> T waitFor(final Future<T> future)

src/main/java/org/scijava/run/CodeRunner.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,10 @@ public interface CodeRunner extends HandlerPlugin<Object> {
6868
void run(Object code, Map<String, Object> inputMap)
6969
throws InvocationTargetException;
7070

71+
// -- Typed methods --
72+
73+
@Override
74+
default Class<Object> getType() {
75+
return Object.class;
76+
}
7177
}

0 commit comments

Comments
 (0)