RFR: 8277572: ImageStorage should correctly handle MIME types for images encoded in data URIs [v6]
Michael Strauß
mstrauss at openjdk.java.net
Mon Feb 7 17:07:21 UTC 2022
On Mon, 7 Feb 2022 15:03:07 GMT, yosbits <duke at openjdk.java.net> wrote:
> At least the following method do not need to remove the static modifier, but they do. Is there any benefit?
>
> ```java
> public int getNumBands(ImageType type) {
> ```
I think the fact that the method doesn't access any instance fields is an arbitrary implementation detail. Making the method non-static aligns its usage with all other methods, which can only be called on a instance reference.
-------------
PR: https://git.openjdk.java.net/jfx/pull/676
More information about the openjfx-dev
mailing list