This is an automated email from the ASF dual-hosted git repository. He-Pin pushed a commit to branch fix/state-store-plugin-imports in repository https://gitbox.apache.org/repos/asf/pekko.git
commit ad838ec9e4ebd440b4c8d00d868293e253dacd56 Author: 虎鸣 <[email protected]> AuthorDate: Wed Jul 1 21:28:18 2026 +0800 docs: fix import order in state store plugin examples 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]
