Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Nov 3, 2024
1 parent 481c7b5 commit d25a439
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import protocbridge.{ JvmGenerator, ProtocRunner, Target }
import scalapb.ScalaPbCodeGenerator

import scala.beans.BeanProperty
import scala.collection.JavaConverters._
import scala.util.control.NoStackTrace

object AbstractGenerateMojo {
Expand Down Expand Up @@ -87,7 +88,6 @@ object AbstractGenerateMojo {
* e.g. { "flatPackage": "true", "serverPowerApis": "false" } -> ["flat_package"]
*/
def parseGeneratorSettings(generatorSettings: java.util.Map[String, String]): Seq[String] = {
import scala.collection.JavaConverters._
generatorSettings.asScala.filter(_._2.toLowerCase() != "false").keys.toSeq.map { params =>
"[A-Z]".r.replaceAllIn(params, s => s"_${s.group(0).toLowerCase()}")
}
Expand Down Expand Up @@ -120,7 +120,6 @@ abstract class AbstractGenerateMojo @Inject() (buildContext: BuildContext) exten
@BeanProperty
var generatePlayServer: Boolean = _

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ package org.apache.pekko.grpc.internal

import java.util

import org.apache.pekko.grpc.GrpcServiceException
import org.apache.pekko
import pekko.grpc.GrpcServiceException
import io.grpc.{ Attributes, EquivalentAddressGroup, NameResolver, Status }

import scala.concurrent.Promise
Expand Down

0 comments on commit d25a439

Please sign in to comment.