Skip to content

Commit ab629cc

Browse files
committed
Add AuthorizationGrantType.toString()
This adds AuthorizationGrantType.toString() which makes debuging easier. In particular, it will help when performing unit tests which validate the AuthorizationGrantType. Issue gh-16382
1 parent b0a4dcb commit ab629cc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/AuthorizationGrantType.java

+5
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,9 @@ public int hashCode() {
111111
return this.getValue().hashCode();
112112
}
113113

114+
@Override
115+
public String toString() {
116+
return "AuthorizationGrantType{" + "value='" + this.value + '\'' + '}';
117+
}
118+
114119
}

0 commit comments

Comments
 (0)