final StringBuffer requestURLBuffer = request.getRequestURL();
final String requestUrl = request.getRequestURL().toString();
Hi,
Sorry, but it is not clear foot me why you expect warning in the second case. Can you elaborate?
Thanks,
Michal
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/95a6d78f-6e9c-46e4-8349-f286a40aae64%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
StringBuffer requestURL = request.getRequestURL(); <-- this line has the warning
String requestUrlString = requestURL.toString();String requestUrlString = request.getRequestURL().toString();final CharSequence requestURL = request.getRequestURL(); <-- this is actually a StringBuffer instance
final String requestUrl = requestURL.toString();final CharSequence requestURL = request.getRequestURL(); <-- this is actually a StringBuffer instance
final String requestUrl = requestURL.toString();
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/846a1c04-511e-417c-9c94-b9fe5a6a166a%40googlegroups.com.
Hello, i forced the same error (request.getRequestURL()) using HttpServletRequest
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/90afdfd8-5580-4935-9241-8399b7892ac5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Senior Developer