Commit acf48c1
committed
WrapperService: fix create method return type
It will -- and should -- always return an instance of PT specifically.
That is the point of the generic typing on plugin type: to define and
guarantee use of that specific type. Not just "WrapperPlugin<D>".
This change will eliminate a few hacky casts downstream, too.1 parent 4221e12 commit acf48c1
File tree
2 files changed
+3
-6
lines changed- src/main/java/org/scijava/plugin
2 files changed
+3
-6
lines changedLines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 59 | + | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
0 commit comments