masecla22 / Reddit4J

A library which aims to attain full coverage of the Reddit API
MIT License
48 stars 21 forks source link

Fix calling the toString() method instead of build() of UserAgentBuilder #3

Closed FRKJ closed 2 years ago

FRKJ commented 2 years ago

I've replaced this toString() call with build() so it works as intended. UserAgentBuilder doesn't override toString() so it would just return Object.toString() which isn't useful in this context.

masecla22 commented 2 years ago

Yep, this was indeed an issue, I apologise for the tomfoolery I pulled here 😅

It might be appropriate in the future to perhaps override the .toString method, for now though, this will do.