Skip to content

Commit

Permalink
[UNDERTOW-2499] Review anonymous classes in Undertow io.undertow.webs…
Browse files Browse the repository at this point in the history
…ockets.jsr.test.annotated
  • Loading branch information
lvydra committed Oct 23, 2024
1 parent c5281bf commit 6e52849
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,9 @@ public void onOpen(final Session session) {
s = session;
for (int i = 0; i < NUM_THREADS; ++i) {
final int tnum = i;
Thread t = new Thread(new Runnable() {
@Override
public void run() {
for (int j = 0; j < NUM_MESSAGES; ++j) {
session.getAsyncRemote().sendText("t" + tnum + "-m" + j);
}
Thread t = new Thread(() -> {
for (int j = 0; j < NUM_MESSAGES; ++j) {
session.getAsyncRemote().sendText("t" + tnum + "-m" + j);
}
});
t.start();
Expand Down

0 comments on commit 6e52849

Please sign in to comment.