RFR: 8160000: Runtime.version() cause startup regressions in 9+119

Mandy Chung mandy.chung at oracle.com
Mon Jun 27 16:14:02 UTC 2016


> On Jun 27, 2016, at 9:10 AM, Claes Redestad <claes.redestad at oracle.com> wrote:
> 
> 
> 
> On 2016-06-27 17:22, Mandy Chung wrote:
>> 
>>> On Jun 27, 2016, at 7:16 AM, Claes Redestad <claes.redestad at oracle.com> wrote:
>>> 
>>> http://cr.openjdk.java.net/~redestad/8160000/webrev.4/
>> 
>> Looks good in general.
> 
> Thanks Mandy,
> 
>> I suggest VersionProps::build to return Optional<Integer> rather than Optional<String> and make the methods in VersionProps package-private.
> 
> Sure, but not sure public vs package-private matters much since the class is package-private?

The class and methods are intended for package private use only.  Making them explicit in the declaration to show the clear intention is a plus to the reader.

Mandy



More information about the core-libs-dev mailing list