Skip to content

Commit 1538e37

Browse files
authored
add using clause
1 parent da513c0 commit 1538e37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/src/main/scala/com/github/sbt/javaformatter/JavaFormatter.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ object JavaFormatter {
3333
cacheStoreFactory: CacheStoreFactory,
3434
options: JavaFormatterOptions): Unit = {
3535
val files = sourceDirectories.descendantsExcept(includeFilter, excludeFilter).get().toList
36-
cachedFormatSources(cacheStoreFactory, files, streams.log)(new Formatter(options))
36+
cachedFormatSources(cacheStoreFactory, files, streams.log)(using new Formatter(options))
3737
}
3838

3939
def check(
@@ -45,7 +45,7 @@ object JavaFormatter {
4545
cacheStoreFactory: CacheStoreFactory,
4646
options: JavaFormatterOptions): Boolean = {
4747
val files = sourceDirectories.descendantsExcept(includeFilter, excludeFilter).get().toList
48-
val analysis = cachedCheckSources(cacheStoreFactory, baseDir, files, streams.log)(new Formatter(options))
48+
val analysis = cachedCheckSources(cacheStoreFactory, baseDir, files, streams.log)(using new Formatter(options))
4949
trueOrBoom(analysis)
5050
}
5151

0 commit comments

Comments
 (0)