Commit 30291c5
Remove unnecessary code from DefaultConverter
This also fixes the corresponding test. Since the NullConverter now
handles both null src and dest, the null logic was unnecessary.
Additionally, the casting logic was unnecessary due to the
CastingConverter. The array and number logic is still necessary, since
there's no converters for List to arrays and the number converters only
handle widening conversions.1 parent 2574a4e commit 30291c5
File tree
2 files changed
+3
-16
lines changed- src
- main/java/org/scijava/convert
- test/java/org/scijava/convert
2 files changed
+3
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 83 | | |
87 | 84 | | |
88 | 85 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 86 | | |
94 | 87 | | |
95 | 88 | | |
| |||
302 | 295 | | |
303 | 296 | | |
304 | 297 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | 298 | | |
309 | 299 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
| 300 | + | |
314 | 301 | | |
315 | 302 | | |
316 | 303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
0 commit comments