From 633d13ffab0dcafb6baeed6420b8104021aa9801 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 13 May 2015 14:54:36 +0200 Subject: [PATCH] Actual hasText assertion in SockJsFrame Issue: SPR-13019 (cherry picked from commit 02d28ae) --- .../web/socket/sockjs/frame/SockJsFrame.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/frame/SockJsFrame.java b/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/frame/SockJsFrame.java index 99888fcdd5..50ba29f3c3 100644 --- a/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/frame/SockJsFrame.java +++ b/spring-websocket/src/main/java/org/springframework/web/socket/sockjs/frame/SockJsFrame.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2013 the original author or authors. + * Copyright 2002-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,7 @@ package org.springframework.web.socket.sockjs.frame; import java.nio.charset.Charset; -import org.springframework.util.StringUtils; +import org.springframework.util.Assert; /** * Represents a SockJS frame. Provides factory methods to create SockJS frames. @@ -49,7 +49,7 @@ public class SockJsFrame { * @param content the content, must be a non-empty and represent a valid SockJS frame */ public SockJsFrame(String content) { - StringUtils.hasText(content); + Assert.hasText(content); if ("o".equals(content)) { this.type = SockJsFrameType.OPEN; this.content = content; -- GitLab