Skip to content

Commit 45d4851

Browse files
Treiblesschorlectrueden
authored andcommitted
Rename method
1 parent b33ea4f commit 45d4851

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/main/java/org/scijava/ops/OpService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public <T> StructInstance<T> findOpInstance(final String opName, final Nil<T> sp
162162
OpCandidate match = findTypeMatch(ref);
163163

164164
@SuppressWarnings("unchecked")
165-
final StructInstance<T> opInst = (StructInstance<T>) match.createOp();
165+
final StructInstance<T> opInst = (StructInstance<T>) match.createOpInstance();
166166

167167
// Inject the secondary args if there are any
168168
if (Inject.Structs.isInjectable(opInst)) {

src/main/java/org/scijava/ops/matcher/DefaultOpTypeMatchingService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public List<OpCandidate> filterMatches(final List<OpCandidate> candidates) {
125125
public StructInstance<?> match(final OpCandidate candidate) {
126126
if (checkCandidates(Collections.singletonList(candidate)).isEmpty() || !typesMatch(candidate))
127127
return null;
128-
return candidate.createOp();
128+
return candidate.createOpInstance();
129129
}
130130

131131
/**

src/main/java/org/scijava/ops/matcher/OpCandidate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,12 @@ public String toString() {
196196
return info.toString();
197197
}
198198

199-
public StructInstance<?> createOp() {
199+
public StructInstance<?> createOpInstance() {
200200
if (!getStatusCode().equals(StatusCode.MATCH)) {
201201
throw new IllegalArgumentException(
202202
"Status of candidate to create op " + "from indicates a problem: " + getStatus());
203203
}
204204

205-
return opInfo().createOp();
205+
return opInfo().createOpInstance();
206206
}
207207
}

src/main/java/org/scijava/ops/matcher/OpClassInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public String implementationName() {
100100
}
101101

102102
@Override
103-
public StructInstance<?> createOp() {
103+
public StructInstance<?> createOpInstance() {
104104
final Object object;
105105
try {
106106
// TODO: Consider whether this is really the best way to

src/main/java/org/scijava/ops/matcher/OpFieldInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public String implementationName() {
109109
}
110110

111111
@Override
112-
public StructInstance<?> createOp() {
112+
public StructInstance<?> createOpInstance() {
113113
// 1. Can we create another instance of the same function by calling
114114
// clone()?
115115
// 2. _SHOULD_ we do that? Or can we simply reuse the same function

src/main/java/org/scijava/ops/matcher/OpInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ default List<Member<?>> outputs() {
4141
String implementationName();
4242

4343
/** Create a StructInstance using the Struct metadata backed by an object of the op itself. */
44-
StructInstance<?> createOp();
44+
StructInstance<?> createOpInstance();
4545

4646
// TODO Consider if we really want to keep the following methods.
4747
boolean isValid();

0 commit comments

Comments
 (0)