Commit dda72d0
committed
Move Types.isApplicable* methods to MatchingUtils
The isApplicable methods are *almost* not used at all anymore...
only the inputsMatch method of RuntimeSafeMatchingRoutine calls it as
part of a final check to evaluate input suitability of op candidates,
as part of its typesMatch(OpCandidate) method.
But according to @gselzer, it's actually the *other* typesMatch method,
typesMatch(Type, Type, Map<TypeVariable<?>, Type>), which is the real
workhorse of the system, performing the primary type matching check.
In lieu of fully cleaning up this mess, this commit moves the
almost-obsolete methods from the Types class, where they were public
and exported, to the MatchingUtils class, where they are internal and
encapsulated. Later, we can tweak the internal scijava-ops-engine code
to fully eliminate these methods. But in the meantime, at least they
won't become permanent public API of the scijava-types module.1 parent 82166ff commit dda72d0
File tree
6 files changed
+931
-905
lines changed- scijava-ops-engine
- src
- main/java/org/scijava/ops/engine/matcher/impl
- test/java/org/scijava/ops/engine/matcher/impl
- scijava-types/src
- main/java/org/scijava/types
- test/java/org/scijava/types
6 files changed
+931
-905
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
197 | 203 | | |
198 | 204 | | |
199 | 205 | | |
| |||
0 commit comments