Skip to content

Commit 0dfbe65

Browse files
committed
Update comments for readability
1 parent 19d9c53 commit 0dfbe65

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test/java/org/apache/commons/jxpath/util/ValueUtilsTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,8 @@ void testGetValueFromSetTooSmall() {
9898

9999
@Test
100100
void testGetDynamicPropertyHandlerConcurrently() throws InterruptedException, ExecutionException {
101-
// This test is to ensure that the dynamic property handler can be accessed concurrently
102-
// without throwing any exceptions. It does not assert any specific behavior, but rather
103-
// ensures that no exceptions are thrown during concurrent access.
101+
// This test ensures that ValueUtils::getDynamicPropertyHandler can be accessed concurrently
102+
// It does not assert any specific behavior, but rather ensures that no exceptions are thrown on concurrent access
104103
int nThreads = 200; // Number of threads to simulate concurrent access
105104
List<Future<?>> futures = new ArrayList<>();
106105
ExecutorService threadPool = Executors.newFixedThreadPool(nThreads);
@@ -112,7 +111,7 @@ void testGetDynamicPropertyHandlerConcurrently() throws InterruptedException, Ex
112111
threadPool.awaitTermination(1, TimeUnit.SECONDS);
113112

114113
for (Future<?> future : futures) {
115-
future.get(); // This will throw an exception if any thread encountered an issue
114+
future.get(); // This will throw if any thread threw
116115
}
117116
}
118117

0 commit comments

Comments
 (0)