Permalink
Browse files

Incorporate review feedback

  • Loading branch information...
1 parent 40e0e2d commit fedad955c8170998d9bf2b5ee798456203260b1a Raghavendra Prabhu committed Mar 14, 2012
@@ -8,7 +8,7 @@ class DaemonThreadFactory(nameSuffix : String) extends ThreadFactory {
val threadNumber = new AtomicInteger(1)
def newThread(r: Runnable) = {
- val thread = new Thread(group, r, "querulous-" + nameSuffix + "-" + threadNumber.getAndIncrement())
+ val thread = new Thread(group, r, "querulous-%s-%d".format(nameSuffix, threadNumber.getAndIncrement()))
if (!thread.isDaemon) {
thread.setDaemon(true)
}

0 comments on commit fedad95

Please sign in to comment.