Skip to content

Commit 7704f17

Browse files
committed
DefaultOpEnvironment: move opify
It is now grouped with the other public (overridden) methods
1 parent 569bfc1 commit 7704f17

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎scijava/scijava-ops/src/main/java/org/scijava/ops/impl/DefaultOpEnvironment.java‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,14 @@ public Type genericType(Object obj) {
153153
return typeService.reify(obj);
154154
}
155155

156+
@Override
157+
public <T> T opify(final T op, Type reifiedType) {
158+
if (wrappers == null) initWrappers();
159+
@SuppressWarnings("unchecked")
160+
final OpWrapper<T> wrapper = (OpWrapper<T>) wrappers.get(Types.raw(reifiedType));
161+
return wrapper.wrap(op, reifiedType);
162+
}
163+
156164
@SuppressWarnings("unchecked")
157165
private <T> T findOpInstance(final String opName, final Nil<T> specialType, final Nil<?>[] inTypes,
158166
final Nil<?> outType) throws OpMatchingException {
@@ -291,14 +299,6 @@ private Class<?> getWrapperClass(Object op, OpInfo info) {
291299
return suitableWrappers[0];
292300
}
293301

294-
@Override
295-
public <T> T opify(final T op, Type reifiedType) {
296-
if (wrappers == null) initWrappers();
297-
@SuppressWarnings("unchecked")
298-
final OpWrapper<T> wrapper = (OpWrapper<T>) wrappers.get(Types.raw(reifiedType));
299-
return wrapper.wrap(op, reifiedType);
300-
}
301-
302302
private List<Object> resolveOpDependencies(OpCandidate candidate) throws OpMatchingException {
303303
return resolveOpDependencies(candidate.opInfo(), candidate.typeVarAssigns());
304304
}

0 commit comments

Comments
 (0)