We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ae1eb5 commit 857da16Copy full SHA for 857da16
plugin/src/main/scala/com/lightbend/sbt/javaformatter/JavaFormatter.scala
@@ -146,7 +146,7 @@ object JavaFormatter {
146
sources.map { file =>
147
val input = IO.read(file)
148
try {
149
- val output = formatter.formatSource(input)
+ val output = formatter.formatSourceAndFixImports(input)
150
Some(onFormat(file, input, output))
151
} catch {
152
case e: Exception => Some(onFormat(file, input, input))
0 commit comments