Browse Source

Actual hasText assertion in SockJsFrame

Issue: SPR-13019
pull/763/merge
Juergen Hoeller 11 years ago
parent
commit
02d28ae9ee
  1. 6
      spring-websocket/src/main/java/org/springframework/web/socket/sockjs/frame/SockJsFrame.java

6
spring-websocket/src/main/java/org/springframework/web/socket/sockjs/frame/SockJsFrame.java

@ -1,5 +1,5 @@ @@ -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; @@ -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 { @@ -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;

Loading…
Cancel
Save