Closed skiwi2 closed 9 years ago
I highly doubt calling a bunch of getters causes any side-effects. I think you can safely remove that line.
Speaking of this part of the code, I believe there's a method call around there that is deprecated. Perhaps time to find a newer, more recommended solution? (I think it is the method call that creates the anonymous inner class that calls the method you show here)
Nothing is deprecated as far as I know, can you investigate this more and open a new issue on that?
In StackExchangeChatBot there is a snippet with the following:
Why is there a
httpRequest.getRequestLine().getProtocolVersion().getProtocol();
call when the result is not saved? Are there any side effects produced by it?