View Javadoc
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   import java.util.concurrent.locks.ReentrantReadWriteLock;
9   
10  /**
11   * The Class ClassWithReferenceToNestedClass.
12   */
13  public final class ClassWithReferenceToNestedClass {
14  
15      /**
16       * Instantiates a new class with reference to nested class.
17       */
18      ClassWithReferenceToNestedClass() {
19          new ReentrantReadWriteLock().readLock();
20      }
21  
22      /**
23       * Do something.
24       *
25       * @return true, if successful
26       */
27      public static boolean doSomething() {
28          return true;
29      }
30  }