From 9120d86573bd6fe3a3548d87331087fe610d90b8 Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Mon, 17 Aug 2020 11:43:20 +0200 Subject: [PATCH] [MNG-6977] Use hyphen when creating builder threads (names) --- .../apache/maven/lifecycle/internal/BuildThreadFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildThreadFactory.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildThreadFactory.java index 01545078e4..bf6e637f73 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildThreadFactory.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/BuildThreadFactory.java @@ -34,6 +34,6 @@ public class BuildThreadFactory public Thread newThread( Runnable r ) { - return new Thread( r, String.format( "%s %d", PREFIX, id.getAndIncrement() ) ); + return new Thread( r, String.format( "%s-%d", PREFIX, id.getAndIncrement() ) ); } -} \ No newline at end of file +}