Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
henningandersen committed May 28, 2024
1 parent 82f4fe0 commit 3f0e62b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,10 @@ public static String executorName(String threadName) {
// subtract 2 to avoid the `]` of the thread number part.
int executorNameEnd = threadName.lastIndexOf(']', threadName.length() - 2);
int executorNameStart = threadName.lastIndexOf('[', executorNameEnd);
if (executorNameStart == -1 || executorNameEnd - executorNameStart <= 1 || threadName.startsWith("TEST-") || threadName.startsWith("LuceneTestCase")) {
if (executorNameStart == -1
|| executorNameEnd - executorNameStart <= 1
|| threadName.startsWith("TEST-")
|| threadName.startsWith("LuceneTestCase")) {
return null;
}
return threadName.substring(executorNameStart + 1, executorNameEnd);
Expand Down

0 comments on commit 3f0e62b

Please sign in to comment.