提交 02d28ae9 编写于 作者: J Juergen Hoeller

Actual hasText assertion in SockJsFrame

Issue: SPR-13019
上级 71c3e4e4
/*
* 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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册