Skip to content

Commit ae1ad21

Browse files
authored
Change constructor to private for ProjectMetadata (#124060)
Similar to Metadata, the constructor should be private since we expect it to be created with the Builder.
1 parent 6646af0 commit ae1ad21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/cluster/metadata/ProjectMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public class ProjectMetadata implements Iterable<IndexMetadata>, Diffable<Projec
100100
private final IndexVersion oldestIndexVersion;
101101

102102
@SuppressWarnings("this-escape")
103-
public ProjectMetadata(
103+
private ProjectMetadata(
104104
ProjectId id,
105105
ImmutableOpenMap<String, IndexMetadata> indices,
106106
ImmutableOpenMap<String, Set<Index>> aliasedIndices,

0 commit comments

Comments
 (0)