Skip to content

Commit 02d28ae

Browse files
committed
Actual hasText assertion in SockJsFrame
Issue: SPR-13019
1 parent 71c3e4e commit 02d28ae

File tree

1 file changed

+3
-3
lines changed
  • spring-websocket/src/main/java/org/springframework/web/socket/sockjs/frame

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
1818

1919
import java.nio.charset.Charset;
2020

21-
import org.springframework.util.StringUtils;
21+
import org.springframework.util.Assert;
2222

2323
/**
2424
* Represents a SockJS frame. Provides factory methods to create SockJS frames.
@@ -49,7 +49,7 @@ public class SockJsFrame {
4949
* @param content the content, must be a non-empty and represent a valid SockJS frame
5050
*/
5151
public SockJsFrame(String content) {
52-
StringUtils.hasText(content);
52+
Assert.hasText(content);
5353
if ("o".equals(content)) {
5454
this.type = SockJsFrameType.OPEN;
5555
this.content = content;

0 commit comments

Comments
 (0)