A couple of trivial simplifications

This commit is contained in:
stsypanov
2019-05-16 22:53:01 +03:00
committed by Juergen Hoeller
parent 02850f357f
commit 6f07a504b8
4 changed files with 4 additions and 8 deletions

View File

@@ -354,7 +354,7 @@ public abstract class AbstractSockJsService implements SockJsService, CorsConfig
String requestInfo = (logger.isDebugEnabled() ? request.getMethod() + " " + request.getURI() : null);
try {
if (sockJsPath.equals("") || sockJsPath.equals("/")) {
if (sockJsPath.isEmpty() || sockJsPath.equals("/")) {
if (requestInfo != null) {
logger.debug("Processing transport request: " + requestInfo);
}