1 /*
2 * MIT License
3 * Copyright (c) 2006-2025 JMockit developers
4 * See LICENSE file for full license text.
5 */
6 package integration.tests;
7
8 /**
9 * The Class MultiThreadedCode.
10 */
11 public final class MultiThreadedCode {
12
13 /**
14 * Non blocking operation.
15 *
16 * @return the thread
17 */
18 public static Thread nonBlockingOperation() {
19 Thread worker = new Thread(() -> new Object() // NPE only happened with this line break
20 {
21 });
22
23 worker.start();
24 return worker;
25 }
26 }