From 1538e375e79cde6594e06752c0a71c004ac143bf Mon Sep 17 00:00:00 2001 From: kenji yoshida <6b656e6a69@gmail.com> Date: Wed, 13 Aug 2025 16:44:33 +0900 Subject: [PATCH] add `using` clause --- .../scala/com/github/sbt/javaformatter/JavaFormatter.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/scala/com/github/sbt/javaformatter/JavaFormatter.scala b/plugin/src/main/scala/com/github/sbt/javaformatter/JavaFormatter.scala index 73576e2..5cc1964 100644 --- a/plugin/src/main/scala/com/github/sbt/javaformatter/JavaFormatter.scala +++ b/plugin/src/main/scala/com/github/sbt/javaformatter/JavaFormatter.scala @@ -33,7 +33,7 @@ object JavaFormatter { cacheStoreFactory: CacheStoreFactory, options: JavaFormatterOptions): Unit = { val files = sourceDirectories.descendantsExcept(includeFilter, excludeFilter).get().toList - cachedFormatSources(cacheStoreFactory, files, streams.log)(new Formatter(options)) + cachedFormatSources(cacheStoreFactory, files, streams.log)(using new Formatter(options)) } def check( @@ -45,7 +45,7 @@ object JavaFormatter { cacheStoreFactory: CacheStoreFactory, options: JavaFormatterOptions): Boolean = { val files = sourceDirectories.descendantsExcept(includeFilter, excludeFilter).get().toList - val analysis = cachedCheckSources(cacheStoreFactory, baseDir, files, streams.log)(new Formatter(options)) + val analysis = cachedCheckSources(cacheStoreFactory, baseDir, files, streams.log)(using new Formatter(options)) trueOrBoom(analysis) }