Files
openide/plugins/devkit/devkit-java-tests/testData/threadingModelHelper/BothAnnotationAndAssertion.java
Moncef Slimani 08fe7ab2bc [threading] IJPL-179707 Create initial Analyzer, Action, and Service classes for locking requirements analysis
GitOrigin-RevId: 97f4331731dca7808eddbe403789719c911c3523
2025-11-17 13:31:32 +00:00

12 lines
408 B
Java

import testutils.RequiresReadLock;
import testutils.ThreadingAssertions;
import test.ExpectedPath
@ExpectedPath("BothAnnotationAndAssertion.testMethod -> @RequiresReadLock")
@ExpectedPath("BothAnnotationAndAssertion.testMethod -> ThreadingAssertions.assertReadAccess()")
class BothAnnotationAndAssertion {
@RequiresReadLock
void testMethod() {
ThreadingAssertions.assertReadAccess();
}
}