Commit 596813c
Do runtime type checking in Typed.supports method
There are situations where we cannot solely rely on the compiler.
For example, with DataHandle plugins, the generic parameter L is
heterogeneous, so we need to actually check the type of the data.
I tried to make this the default implementation of the Typed interface
itself, but ran into problems with calling super.supports in downstream
classes; apparently, you cannot directly reference default interface
methods by writing e.g. Typed.super.supports(...)? Strange.1 parent 7cccfac commit 596813c
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
47 | 57 | | |
0 commit comments