Autogenerated links truncate a final closing bracket
Let's say there's a question about how to get a character from a String at a certain index (just an example). I say, "Oh, I'll just link to the Javadocs!" So I go merrily along to the Javadocs and I find the page for the
String class, here. I scroll down to the
So I copy and paste it and don't realize the inevitable doom of the link not jumping down to the specified method because of this:
Which Stack Overflow treats like this:
Simple fix: just don't omit the close parenthesis from the link if the link contains an open parenthesis after the last slash.