RFR: 8300177 : URISyntaxException fields can be final
Jaikiran Pai
jpai at openjdk.org
Mon Feb 6 07:19:50 UTC 2023
On Fri, 3 Feb 2023 18:10:13 GMT, Darragh Clarke <duke at openjdk.org> wrote:
> Made the two fields `input` and `index` final, this didn't need any test changes as far as I could tell so this PR is longer than the diff
This looks fine to me.
Adding a `final` to a field of a `Serializable` type can change the auto-generated value of `serialVersionUID`. In this case (like all other `Serializable` types in the JDK), the class explicitly specifies a `serialVersionUID` value, so this change won't impact that value.
-------------
Marked as reviewed by jpai (Reviewer).
PR: https://git.openjdk.org/jdk/pull/12415
More information about the net-dev
mailing list