Skip to content

Commit

Permalink
add javadoc to a method
Browse files Browse the repository at this point in the history
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
  • Loading branch information
kaushalmahi12 committed Jun 20, 2024
1 parent 214feba commit becc022
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/src/main/java/org/opensearch/search/ResourceType.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ public enum ResourceType {
this.name = name;
}

/**
* The string match here is case-sensitive
* @param s
* @return a {@link ResourceType}
*/
public static ResourceType fromName(String s) {
for (ResourceType resourceType : values()) {
if (resourceType.getName().equals(s)) {
Expand Down

0 comments on commit becc022

Please sign in to comment.