Skip to content

Commit 43000a3

Browse files
author
Eirik Bjørsnøs
committed
8345075: java.lang.module.ModuleDescriptor constructor could be made private
Reviewed-by: alanb
1 parent fd742af commit 43000a3

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/java.base/share/classes/java/lang/module/ModuleDescriptor.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2009, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -1312,18 +1312,18 @@ private ModuleDescriptor(String name,
13121312
* Creates a module descriptor from its components.
13131313
* The arguments are pre-validated and sets are unmodifiable sets.
13141314
*/
1315-
ModuleDescriptor(String name,
1316-
Version version,
1317-
Set<Modifier> modifiers,
1318-
Set<Requires> requires,
1319-
Set<Exports> exports,
1320-
Set<Opens> opens,
1321-
Set<String> uses,
1322-
Set<Provides> provides,
1323-
Set<String> packages,
1324-
String mainClass,
1325-
int hashCode,
1326-
boolean unused) {
1315+
private ModuleDescriptor(String name,
1316+
Version version,
1317+
Set<Modifier> modifiers,
1318+
Set<Requires> requires,
1319+
Set<Exports> exports,
1320+
Set<Opens> opens,
1321+
Set<String> uses,
1322+
Set<Provides> provides,
1323+
Set<String> packages,
1324+
String mainClass,
1325+
int hashCode,
1326+
boolean unused) {
13271327
this.name = name;
13281328
this.version = version;
13291329
this.rawVersionString = null;

0 commit comments

Comments
 (0)