Re: RFR: 8345075: java.lang.module.ModuleDescriptor constructor could be made private

2024-11-28 Thread Alan Bateman
On Tue, 26 Nov 2024 20:48:24 GMT, Eirik Bjørsnøs wrote: > Please consider this cleanup PR which makes the now package-protected > `ModuleDescriptor` constructor private. > > This constructor is only accessed by the class itself via > JavaLangModuleAccess. Making it private would express the in

RFR: 8345075: java.lang.module.ModuleDescriptor constructor could be made private

2024-11-26 Thread Eirik Bjørsnøs
Please consider this cleanup PR which makes the now package-protected `ModuleDescriptor` constructor private. This constructor is only accessed by the class itself via JavaLangModuleAccess. Making it private would express the intent of this class as being non-subclassable. Marking this class f