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.git
The following commit(s) were added to refs/heads/main by this push:
new 5120ec6e48 docs: fix import order in state store plugin examples
(#3278)
5120ec6e48 is described below
commit 5120ec6e480a4e723724a7f816170dfa886829b1
Author: He-Pin(kerr) <[email protected]>
AuthorDate: Wed Jul 1 22:26:32 2026 +0800
docs: fix import order in state store plugin examples (#3278)
Motivation:
pjfanning noted on PR #3274 that com.typesafe.config imports were placed
after pekko imports, breaking the visual grouping of pekko imports.
Modification:
Move com.typesafe.config imports before org.apache.pekko in
MyStateStore.scala and PersistenceStatePluginDocSpec.scala so that all
pekko imports are grouped together, consistent with the convention in
other persistence doc files.
Result:
Import order follows the established convention: scala → com.* →
org.apache.pekko/pekko.* → org.*
Tests:
- sbt docs/compile → success
- sbt "docs/Test/testOnly
docs.persistence.state.PersistenceStatePluginDocSpec" → 2/2 passed
References:
Refs #3274
---
docs/src/main/scala/docs/persistence/state/MyStateStore.scala | 4 ++--
.../docs/persistence/state/PersistenceStatePluginDocSpec.scala | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/docs/src/main/scala/docs/persistence/state/MyStateStore.scala
b/docs/src/main/scala/docs/persistence/state/MyStateStore.scala
index c5f585f838..30b378f732 100644
--- a/docs/src/main/scala/docs/persistence/state/MyStateStore.scala
+++ b/docs/src/main/scala/docs/persistence/state/MyStateStore.scala
@@ -13,6 +13,8 @@
package docs.persistence.state
+import com.typesafe.config.Config
+
import org.apache.pekko
import pekko.Done
import pekko.actor.ExtendedActorSystem
@@ -20,8 +22,6 @@ import pekko.persistence.state.{ DurableStateStoreProvider,
DurableStateStoreReg
import pekko.persistence.state.javadsl.{ DurableStateStore =>
JDurableStateStore }
import pekko.persistence.state.scaladsl.{ DurableStateStore,
DurableStateUpdateStore, GetObjectResult }
-import com.typesafe.config.Config
-
import scala.concurrent.Future
//#plugin-provider
diff --git
a/docs/src/test/scala/docs/persistence/state/PersistenceStatePluginDocSpec.scala
b/docs/src/test/scala/docs/persistence/state/PersistenceStatePluginDocSpec.scala
index 44ae411b4e..b5d3b0aa86 100644
---
a/docs/src/test/scala/docs/persistence/state/PersistenceStatePluginDocSpec.scala
+++
b/docs/src/test/scala/docs/persistence/state/PersistenceStatePluginDocSpec.scala
@@ -13,6 +13,9 @@
package docs.persistence.state
+import com.typesafe.config._
+import docs.persistence
+
import org.apache.pekko
import pekko.Done
import pekko.actor.{ ActorSystem, ExtendedActorSystem }
@@ -23,9 +26,6 @@ import pekko.persistence.state.scaladsl.GetObjectResult
import pekko.persistence.Persistence
import pekko.persistence.state.DurableStateStoreRegistry
import pekko.testkit.TestKit
-
-import com.typesafe.config._
-import docs.persistence
import org.scalatest.wordspec.AnyWordSpec
import scala.concurrent.Future
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]