This is an automated email from the ASF dual-hosted git repository.
He-Pin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-grpc.git
The following commit(s) were added to refs/heads/main by this push:
new 641d969e Remove private[this] from Maven plugin (#771)
641d969e is described below
commit 641d969ecbd468e223749f9645bd81c5c65bfe82
Author: He-Pin(kerr) <[email protected]>
AuthorDate: Fri Jul 3 11:13:00 2026 +0800
Remove private[this] from Maven plugin (#771)
Motivation:
Avoid using private[this] in Scala sources.
Modification:
Replace the remaining Maven plugin private[this] method modifiers with
ordinary private modifiers.
Result:
The repository no longer contains private[this] usages.
Tests:
- rg -n "private\[this\]" . / no matches
- scalafmt --mode diff-ref=origin/main / passed
- scalafmt --list --mode diff-ref=origin/main / passed
- sbt "maven-plugin / Compile / compile" / passed
- git diff --check / passed
References:
None - cleanup requested separately from #766
---
.../main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala
b/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala
index ea7c0a06..61c7475c 100644
---
a/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala
+++
b/maven-plugin/src/main/scala/org/apache/pekko/grpc/maven/AbstractGenerateMojo.scala
@@ -221,7 +221,7 @@ abstract class AbstractGenerateMojo @Inject()
(buildContext: BuildContext) exten
}
}
- private[this] def executeProtoc(
+ private def executeProtoc(
protocCommand: Seq[String] => Int,
schemas: Set[File],
protocOptions: Seq[String],
@@ -242,7 +242,7 @@ abstract class AbstractGenerateMojo @Inject()
(buildContext: BuildContext) exten
throw new RuntimeException("error occurred while compiling protobuf
files: %s".format(e.getMessage), e)
}
- private[this] def compile(
+ private def compile(
protocCommand: Seq[String] => Int,
schemas: Set[File],
protoDir: File,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]