Skip to content

Commit 755742f

Browse files
committed
Clarify typical behavior of Typed#supports method
1 parent 3a5e8aa commit 755742f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/main/java/org/scijava/Typed.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ public interface Typed<T> {
4242
/**
4343
* Gets whether this object is compatible with the given data object.
4444
* <p>
45-
* Typically, this will be the case when {@code data.getClass()} is assignable
46-
* to the type associated with the object (i.e., the one returned by
47-
* {@link #getType()}). But individual implementations may have other
45+
* By default, this method will return {@code true} always, since the type is
46+
* known to be compatible. But individual implementations may have other
4847
* requirements beyond class assignability.
4948
* </p>
5049
*/

0 commit comments

Comments
 (0)