Skip to content

Commit

Permalink
Makes NamedRoute builder private
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Jun 30, 2023
1 parent 356da3e commit e752075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/main/java/org/opensearch/rest/NamedRoute.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public NamedRoute build() {
}
}

public NamedRoute(Builder builder) {
private NamedRoute(Builder builder) {
super(builder.method, builder.path);
if (!isValidRouteName(builder.uniqueName)) {
throw new OpenSearchException(
Expand Down

0 comments on commit e752075

Please sign in to comment.