Skip to content

Commit 318bda4

Browse files
committed
lint
Signed-off-by: KNU-K <knukang334@gmail.com>
1 parent b8ccc8d commit 318bda4

File tree

1 file changed

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

1 file changed

+25
-25
lines changed

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

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -82,31 +82,6 @@ else if (content.charAt(0) == 'c') {
8282
}
8383
}
8484

85-
public static SockJsFrame openFrame() {
86-
return OPEN_FRAME;
87-
}
88-
89-
public static SockJsFrame heartbeatFrame() {
90-
return HEARTBEAT_FRAME;
91-
}
92-
93-
public static SockJsFrame messageFrame(SockJsMessageCodec codec, String... messages) {
94-
String encoded = codec.encode(messages);
95-
return new SockJsFrame(encoded);
96-
}
97-
98-
public static SockJsFrame closeFrameGoAway() {
99-
return CLOSE_GO_AWAY_FRAME;
100-
}
101-
102-
public static SockJsFrame closeFrameAnotherConnectionOpen() {
103-
return CLOSE_ANOTHER_CONNECTION_OPEN_FRAME;
104-
}
105-
106-
public static SockJsFrame closeFrame(int code, @Nullable String reason) {
107-
return new SockJsFrame("c[" + code + ",\"" + (reason != null ? reason : "") + "\"]");
108-
}
109-
11085
/**
11186
* Return the SockJS frame type.
11287
*/
@@ -177,4 +152,29 @@ public String toString() {
177152
return "SockJsFrame content='" + sb + "'";
178153
}
179154

155+
public static SockJsFrame openFrame() {
156+
return OPEN_FRAME;
157+
}
158+
159+
public static SockJsFrame heartbeatFrame() {
160+
return HEARTBEAT_FRAME;
161+
}
162+
163+
public static SockJsFrame messageFrame(SockJsMessageCodec codec, String... messages) {
164+
String encoded = codec.encode(messages);
165+
return new SockJsFrame(encoded);
166+
}
167+
168+
public static SockJsFrame closeFrameGoAway() {
169+
return CLOSE_GO_AWAY_FRAME;
170+
}
171+
172+
public static SockJsFrame closeFrameAnotherConnectionOpen() {
173+
return CLOSE_ANOTHER_CONNECTION_OPEN_FRAME;
174+
}
175+
176+
public static SockJsFrame closeFrame(int code, @Nullable String reason) {
177+
return new SockJsFrame("c[" + code + ",\"" + (reason != null ? reason : "") + "\"]");
178+
}
179+
180180
}

0 commit comments

Comments
 (0)