Skip to content

Commit 9840e74

Browse files
authored
Update Claim#asString documentation (#615)
1 parent 1e9072d commit 9840e74

File tree

1 file changed

+3
-2
lines changed
  • lib/src/main/java/com/auth0/jwt/interfaces

1 file changed

+3
-2
lines changed

lib/src/main/java/com/auth0/jwt/interfaces/Claim.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ public interface Claim {
6262

6363
/**
6464
* Get this Claim as a String.
65-
* If the value isn't of type String or it can't be converted to a String, {@code null} will be returned.
65+
* If the value isn't of type String, {@code null} will be returned. For a String representation of non-textual
66+
* claim types, clients can call {@code toString()}.
6667
*
67-
* @return the value as a String or null.
68+
* @return the value as a String or null if the underlying value is not a string.
6869
*/
6970
String asString();
7071

0 commit comments

Comments
 (0)