Skip to content

Commit e4ec62a

Browse files
committed
add deprecation note for TokenTypeHint::toString method
1 parent d67a7a6 commit e4ec62a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scribejava-core/src/main/java/com/github/scribejava/core/revoke/TokenTypeHint.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,15 @@ public String getValue() {
2121
return value;
2222
}
2323

24+
/**
25+
* @return value
26+
* @deprecated use {@link #getValue() } to get a lower-cased value as in reference (RFC7009), otherwise you can
27+
* continue using this method. Note, that returned value will be UPPER-cased (not overrided toString method) in the
28+
* next release.
29+
*/
30+
@Override
31+
@Deprecated
32+
public String toString() {
33+
return value;
34+
}
2435
}

0 commit comments

Comments
 (0)