Skip to content

Commit

Permalink
tidy up imports (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning authored Nov 4, 2024
1 parent 077b7d4 commit 017e70a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ abstract class AbstractGenerateMojo @Inject() (buildContext: BuildContext) exten
@BeanProperty
var generatePlayServer: Boolean = _

import scala.collection.JavaConverters._
@BeanProperty
var generatorSettings: java.util.Map[String, String] = _

Expand Down Expand Up @@ -179,6 +178,7 @@ abstract class AbstractGenerateMojo @Inject() (buildContext: BuildContext) exten
if (schemas.isEmpty) {
getLog.info("No changed or new .proto-files found in [%s], skipping code generation".format(generatedSourcesDir))
} else {
import scala.collection.JavaConverters._
val loadedExtraGenerators =
extraGenerators.asScala.map(cls =>
Class.forName(cls).getDeclaredConstructor().newInstance().asInstanceOf[CodeGenerator])
Expand Down

0 comments on commit 017e70a

Please sign in to comment.