Skip to content

Commit

Permalink
Added javadoc for the function
Browse files Browse the repository at this point in the history
Signed-off-by: adarsh-intel <[email protected]>
  • Loading branch information
adarshan-intel committed Oct 27, 2023
1 parent 193ccdc commit 894102f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ public ManufacturingInfoDeserializer(Class<?> t) {
super(t);
}

/**
* Checks whether string contains only alphanumberic characters along with '_' and '-'.
* @param deviceString The string to be validated as a device string.
* @return True if the string is a valid device string, false otherwise.
*/
public boolean isValidString(String deviceString) {
String[] invalidStrings = { "", "null", "none", "true", "false", "undefined", "undef",
"NaN", "nil",
Expand Down

0 comments on commit 894102f

Please sign in to comment.