You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/08/21 18:32:02 UTC
[commons-lang] branch master updated: Format
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 60884907a Format
new cf8b7edbe Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git
60884907a is described below
commit 60884907a7965fcbc09af5b04d1e265015e6664b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Aug 21 11:22:37 2022 -0400
Format
---
.../java/org/apache/commons/lang3/ThreadUtilsTest.java | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/src/test/java/org/apache/commons/lang3/ThreadUtilsTest.java b/src/test/java/org/apache/commons/lang3/ThreadUtilsTest.java
index 60e61302d..5b0891db5 100644
--- a/src/test/java/org/apache/commons/lang3/ThreadUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/ThreadUtilsTest.java
@@ -56,7 +56,7 @@ public class ThreadUtilsTest extends AbstractLangTest {
public void run() {
latch.countDown();
try {
- synchronized(this) {
+ synchronized (this) {
this.wait();
}
} catch (final InterruptedException e) {
@@ -95,7 +95,8 @@ public class ThreadUtilsTest extends AbstractLangTest {
final ThreadGroup threadGroup6 = new ThreadGroup(threadGroup4, "thread_group_6__");
final ThreadGroup threadGroup7 = new ThreadGroup(threadGroup4, "thread_group_7__");
final ThreadGroup threadGroup7Doubled = new ThreadGroup(threadGroup4, "thread_group_7__");
- final List<ThreadGroup> threadGroups = Arrays.asList(threadGroup1, threadGroup2, threadGroup3, threadGroup4, threadGroup5, threadGroup6, threadGroup7, threadGroup7Doubled);
+ final List<ThreadGroup> threadGroups = Arrays.asList(threadGroup1, threadGroup2, threadGroup3, threadGroup4, threadGroup5, threadGroup6, threadGroup7,
+ threadGroup7Doubled);
final Thread t1 = new TestThread("thread1_X__");
final Thread t2 = new TestThread(threadGroup1, "thread2_X__");
@@ -250,7 +251,7 @@ public class ThreadUtilsTest extends AbstractLangTest {
final ThreadGroup threadGroup = new ThreadGroup("thread_group_DDZZ99__");
final Thread t1 = new TestThread(threadGroup, "thread1_XXOOPP__");
final Thread t2 = new TestThread(threadGroup, "thread2_XXOOPP__");
- final long nonExistingId = t1.getId()+t2.getId();
+ final long nonExistingId = t1.getId() + t2.getId();
try {
t1.start();
@@ -270,15 +271,12 @@ public class ThreadUtilsTest extends AbstractLangTest {
@Test
public void testThreadGroupsByIdFail() {
- assertThrows(NullPointerException.class,
- () -> ThreadUtils.findThreadById(Thread.currentThread().getId(), (String) null));
+ assertThrows(NullPointerException.class, () -> ThreadUtils.findThreadById(Thread.currentThread().getId(), (String) null));
}
-
@Test
public void testThreadgroupsNullParent() {
- assertThrows(NullPointerException.class,
- () -> ThreadUtils.findThreadGroups(null, true, ThreadUtils.ALWAYS_TRUE_PREDICATE));
+ assertThrows(NullPointerException.class, () -> ThreadUtils.findThreadGroups(null, true, ThreadUtils.ALWAYS_TRUE_PREDICATE));
}
@Test
@@ -346,7 +344,6 @@ public class ThreadUtilsTest extends AbstractLangTest {
}
}
-
@Test
public void testThreadsByIdWrongGroup() throws InterruptedException {
final Thread t1 = new TestThread("thread1_XXOOLL__");