glencoesoftware / bioformats2raw

Bio-Formats image file format to raw format converter
GNU General Public License v2.0
82 stars 36 forks source link

Fix a couple of compile warnings #247

Closed melissalinkert closed 6 months ago

melissalinkert commented 7 months ago

Noticed while looking at #245. This is in the same spirit as https://github.com/ome/bioformats/pull/4177 (and other PRs linked from there).

melissalinkert commented 7 months ago

The semantics of new Double() are quite different than DataTools.parseDouble(). Was that also intended or desired here?

That was intentional, as using DataTools.parseDouble handles the possibility of a , decimal separator. I can switch it to Double.parseDouble if you prefer, though.