Skip to content

Commit 857da16

Browse files
Use the Import Sorting Feature of the Formatter (#190)
1 parent 6ae1eb5 commit 857da16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ object JavaFormatter {
146146
sources.map { file =>
147147
val input = IO.read(file)
148148
try {
149-
val output = formatter.formatSource(input)
149+
val output = formatter.formatSourceAndFixImports(input)
150150
Some(onFormat(file, input, output))
151151
} catch {
152152
case e: Exception => Some(onFormat(file, input, input))

0 commit comments

Comments
 (0)